Public Member Functions

HAPI::BooleanDCNode Class Reference

Boolean discrete chance node. The node has two states, true and false. More...

Inheritance diagram for HAPI::BooleanDCNode:
HAPI::DiscreteChanceNode HAPI::DiscreteNode HAPI::Node

List of all members.

Public Member Functions

 BooleanDCNode (NetworkModel *nm)
 Create a new BooleanDCNode in the given NetworkModel.
 BooleanDCNode (DiscreteNode *node)
 Construct a new BooleanDCNode object corresponding to the given DiscreteNode object node.
BooleanDCNodeclone () const
 Clone this BooleanDCNode object.
BooleanDCNodecreateTemporalClone ()
 Construct a temporal clone of this BooleanDCNode object.

Detailed Description

Boolean discrete chance node. The node has two states, true and false.


Constructor & Destructor Documentation

HAPI::BooleanDCNode::BooleanDCNode ( DiscreteNode node )

Construct a new BooleanDCNode object corresponding to the given DiscreteNode object node.

(node must be a chance or a decision node.) The new object will be identical to node (that is, same parents, same table, etc.) except for its type.

As a side-effect, the object node is deleted. And if node is an output node, then all output clone objects associated with the node are also deleted.


Member Function Documentation

BooleanDCNode* HAPI::BooleanDCNode::clone (  ) const [virtual]

Clone this BooleanDCNode object.

Implements HAPI::Node.

BooleanDCNode* HAPI::BooleanDCNode::createTemporalClone (  ) [virtual]

Construct a temporal clone of this BooleanDCNode object.

Implements HAPI::Node.


Copyright Hugin Expert A/S 1993-2024