Class LabelledDFNode
Labelled discrete function node.
Implements
Inherited Members
Namespace: HAPI
Assembly: hugincs-9.7-netstandard2.0-x64.dll
Syntax
public class LabelledDFNode : DiscreteFunctionNode, ICloneable
Constructors
LabelledDFNode(DiscreteFunctionNode)
Constructs a new LabelledDFNode object corresponding to the given DiscreteFunctionNode object node.
Declaration
public LabelledDFNode(DiscreteFunctionNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscreteFunctionNode | node | the DiscreteFunctionNode to be converted. |
Remarks
The new object is identical to node except that it will be a "labelled" 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 |
LabelledDFNode(NetworkModel)
Constructs a new LabelledDFNode.
Declaration
public LabelledDFNode(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 |