Class LabelledDDNode
Labelled discrete decision node. This is the kind of DiscreteDecisionNode most oftenly used.
Implements
Inherited Members
Namespace: HAPI
Assembly: hugincs-9.4-netstandard2.0-x64.dll
Syntax
public class LabelledDDNode : DiscreteDecisionNode, ICloneable
Constructors
LabelledDDNode(DiscreteNode)
Constructs a new LabelledDDNode object corresponding to the given DiscreteNode object node
.
Declaration
public LabelledDDNode(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" decision 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 |
LabelledDDNode(NetworkModel)
Constructs a new LabelledDDNode.
Declaration
public LabelledDDNode(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 |