DISPLACE
1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
|
A templated class that evaluates constant-valued variable. More...
#include <commonstateevaluators.h>
Public Member Functions | |
ConstStateEvaluator (const T &var) | |
double | evaluate (int, Vessel *) const |
evaluate the state/variable, and returns the selected output, as double. Client can decide what to do with the value, for example, it can round it and use it as an index to select the proper output in a node. It is a client responsibility, in particular, to handle special cases, for example, if the index is outside the range of expected outputs. A decorator class can eventually remap outputs. More... | |
![]() | |
StateEvaluator () | |
virtual | ~StateEvaluator () |
A templated class that evaluates constant-valued variable.
|
inline |
|
inlinevirtual |
evaluate the state/variable, and returns the selected output, as double. Client can decide what to do with the value, for example, it can round it and use it as an index to select the proper output in a node. It is a client responsibility, in particular, to handle special cases, for example, if the index is outside the range of expected outputs. A decorator class can eventually remap outputs.
Implements dtree::StateEvaluator.