Class LabelledDCNode
Labelled discrete chance node. This is the kind of DiscreteChanceNode most often used.
Implements
Inherited Members
Namespace: HAPI
Assembly: hugincs-9.4-netstandard2.0-x64.dll
Syntax
public class LabelledDCNode : DiscreteChanceNode, ICloneable
Constructors
LabelledDCNode(DiscreteNode)
Constructs a new LabelledDCNode object corresponding to the given DiscreteNode object node
.
Declaration
public LabelledDCNode(DiscreteNode node)
Parameters
Type | Name | Description |
---|---|---|
DiscreteNode | node | the DiscreteNode to be converted. |
Remarks
The new object is identical to node
except that it will be a "labelled" chance node.
As a side-effect, node
dies (that is, becomes "not-alive"). And if node
is an output node, then all output clones associated with the node also die.
Exceptions
Type | Condition |
---|---|
ExceptionHugin |
LabelledDCNode(NetworkModel)
Constructs a new LabelledDCNode.
Declaration
public LabelledDCNode(NetworkModel belongsTo)
Parameters
Type | Name | Description |
---|---|---|
NetworkModel | belongsTo |
Exceptions
Type | Condition |
---|---|
ExceptionHugin |
Methods
ReorderStates(string[])
Reorders the list of states of this node. The order list must contain the state labels of this node in the desired order.
Declaration
public void ReorderStates(string[] order)
Parameters
Type | Name | Description |
---|---|---|
string[] | order | the new order (which must be a permutation of the current order) of the state labels of this node. |
Remarks
In addition to reordering the state labels of this node, the contents of all tables and models containing this node, and case data associated with this node, are updated to match the new ordering of the states.
Exceptions
Type | Condition |
---|---|
ExceptionHugin |