Numbered discrete chance node. More...
Public Member Functions | |
| NumberedDCNode * | clone () const |
| Clone this NumberedDCNode 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. | |
| NumberedDCNode (NetworkModel *nm) | |
| Create a new NumberedDCNode in the given NetworkModel. | |
| void | setStateValue (size_t state, double value) |
| Set the value associated with state. | |
Numbered discrete chance node.
Each state represents a number.
| NumberedDCNode* HAPI::NumberedDCNode::clone | ( | ) | const [virtual] |
Clone this NumberedDCNode object.
Implements HAPI::Node.
| Index HAPI::NumberedDCNode::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 |