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