Numbered discrete decision node. More...
Public Member Functions | |
NumberedDDNode * | clone () const |
Clone this NumberedDDNode object. | |
Index | getStateIndex (double value) const |
Return the index of the state matching the specified value. | |
double | getStateValue (size_t state) const |
Return the value associated with state. | |
NumberedDDNode (NetworkModel *nm) | |
Create a new NumberedDDNode in the given NetworkModel. | |
void | setStateValue (size_t state, double value) |
Set the value associated with state. |
Numbered discrete decision node.
Each state of an NumberedDDNode represents a number.
NumberedDDNode* HAPI::NumberedDDNode::clone | ( | ) | const [virtual] |
Clone this NumberedDDNode object.
Implements HAPI::Node.
Index HAPI::NumberedDDNode::getStateIndex | ( | double | value | ) | const |
Return the index of the state matching the specified value.
If there is no (unique) state with the specified state value, -1 is returned.
value | the state value of the state to be searched for |