![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Node of an output representing a set of developments in the graph, holding a source, a factor and a constant. More...
#include <FMTOutputNode.h>
Public Member Functions | |
| FMTOutputNode () | |
| Default constructor for FMTOutputNode. | |
| FMTOutputNode (const FMTOutputSource &lsource, const FMTOutputSource &lfactor, const double &lconstant) | |
| Construct an output node from a source, a factor and a constant. | |
| FMTOutputNode (const FMTOutputNode &rhs) | |
| Copy constructor for FMTOutputNode. | |
| FMTOutputNode (const Core::FMTMask &generalmask, const std::string &actionaggregate) | |
| Construct a general node targeting an action name or actions aggregate, for use with the scheduler heuristic. | |
| size_t | hash () const |
| Return the hash of the output node. | |
| size_t | hashForValue () const |
| Return the hash of the output node for its value. | |
| bool | allowCashDeduction () const |
| Return true if the output node allows cache deduction. | |
| bool | singlePeriod () const |
| Return true if the output node covers a single period. | |
| bool | multiPeriod () const |
| Return true if the output node covers multiple periods. | |
| bool | isPastPeriod () const |
| Return true if the output node targets a past period. | |
| bool | isNull () const |
| Return true if the output node is null. | |
| bool | operator< (const FMTOutputNode &rhs) const |
| Less than comparison operator of FMTOutputNode. | |
| bool | operator== (const FMTOutputNode &rhs) const |
| Equality comparison operator of FMTOutputNode. | |
| bool | isSubsetOf (const FMTOutputNode &rhs) const |
| Return true if this output node is a subset of another. | |
| bool | isSubsetOf (const FMTOutputNode &rhs, const std::vector< Core::FMTAction > &actions) const |
| Return true if this output node is a subset of another considering the actions. | |
| bool | isSameButDifferentAction (const FMTOutputNode &rhs) const |
| Return true if this output node is the same as another but with a different action. | |
| int | getOutputId () const |
| Return the output id of the output node. | |
| bool | isActionBased () const |
| Return true if the output node is action based. | |
| bool | isSameValues (const FMTOutputNode &rhs) const |
| Return true if this output node has the same values as another. | |
| operator std::string () const | |
| Return the string representation of the output node. | |
| std::string | getHashString () const |
| Return the hash string of the output node. | |
| Core::FMTMask | getHashMask () const |
| Return the hash mask of the output node. | |
| void | fillHashMaskSpec (Core::FMTMask &baseMask) const |
| Fill a base mask with the hash mask specification of the output node. | |
| FMTOutputNode | setPeriod (int period) const |
| Return a copy of the output node set to a given period. | |
| FMTOutputNode & | operator= (const FMTOutputNode &rhs) |
| Copy assignment operator for FMTOutputNode. | |
| int | setToGraph (std::vector< int > &targetedperiods, int period, int max_period) |
| Set the output node to the graph for the targeted periods. | |
| ~FMTOutputNode ()=default | |
| Default destructor for FMTOutputNode. | |
| void | fillUpEquation (std::map< std::string, std::vector< std::string > > &allequations, const std::map< std::string, double > &graphvalues, const std::vector< std::string > &equation, const size_t &nodeid) const |
| Fill up the equation of the output node. | |
Public Attributes | |
| FMTOutputSource | source |
| FMTOutputSource | factor |
| double | constant |
Node of an output representing a set of developments in the graph, holding a source, a factor and a constant.
| Core::FMTOutputNode::FMTOutputNode | ( | ) |
Default constructor for FMTOutputNode.
| Core::FMTOutputNode::FMTOutputNode | ( | const FMTOutputSource & | lsource, |
| const FMTOutputSource & | lfactor, | ||
| const double & | lconstant | ||
| ) |
Construct an output node from a source, a factor and a constant.
| [in] | lsource | the output source. |
| [in] | lfactor | the factor. |
| [in] | lconstant | the constant. |
| Core::FMTOutputNode::FMTOutputNode | ( | const FMTOutputNode & | rhs | ) |
Copy constructor for FMTOutputNode.
| [in] | rhs | the FMTOutputNode to copy. |
| Core::FMTOutputNode::FMTOutputNode | ( | const Core::FMTMask & | generalmask, |
| const std::string & | actionaggregate | ||
| ) |
Construct a general node targeting an action name or actions aggregate, for use with the scheduler heuristic.
| [in] | generalmask | the general mask. |
| [in] | actionaggregate | the action name or aggregate. |
|
default |
Default destructor for FMTOutputNode.
| bool Core::FMTOutputNode::allowCashDeduction | ( | ) | const |
Return true if the output node allows cache deduction.
| void Core::FMTOutputNode::fillHashMaskSpec | ( | Core::FMTMask & | baseMask | ) | const |
Fill a base mask with the hash mask specification of the output node.
| [in,out] | baseMask | the base mask to fill. |
| void Core::FMTOutputNode::fillUpEquation | ( | std::map< std::string, std::vector< std::string > > & | allequations, |
| const std::map< std::string, double > & | graphvalues, | ||
| const std::vector< std::string > & | equation, | ||
| const size_t & | nodeid | ||
| ) | const |
Fill up the equation of the output node.
| [in,out] | allequations | the equations. |
| [in] | graphvalues | the graph values. |
| [in] | equation | the equation. |
| [in] | nodeid | the node id. |
| Core::FMTMask Core::FMTOutputNode::getHashMask | ( | ) | const |
Return the hash mask of the output node.
| std::string Core::FMTOutputNode::getHashString | ( | ) | const |
Return the hash string of the output node.
|
inline |
Return the output id of the output node.
| size_t Core::FMTOutputNode::hash | ( | ) | const |
Return the hash of the output node.
| size_t Core::FMTOutputNode::hashForValue | ( | ) | const |
Return the hash of the output node for its value.
|
inline |
Return true if the output node is action based.
| bool Core::FMTOutputNode::isNull | ( | ) | const |
Return true if the output node is null.
| bool Core::FMTOutputNode::isPastPeriod | ( | ) | const |
Return true if the output node targets a past period.
| bool Core::FMTOutputNode::isSameButDifferentAction | ( | const FMTOutputNode & | rhs | ) | const |
Return true if this output node is the same as another but with a different action.
| [in] | rhs | the other output node. |
| bool Core::FMTOutputNode::isSameValues | ( | const FMTOutputNode & | rhs | ) | const |
Return true if this output node has the same values as another.
| [in] | rhs | the other output node. |
| bool Core::FMTOutputNode::isSubsetOf | ( | const FMTOutputNode & | rhs | ) | const |
Return true if this output node is a subset of another.
| [in] | rhs | the other output node. |
| bool Core::FMTOutputNode::isSubsetOf | ( | const FMTOutputNode & | rhs, |
| const std::vector< Core::FMTAction > & | actions | ||
| ) | const |
Return true if this output node is a subset of another considering the actions.
| [in] | rhs | the other output node. |
| [in] | actions | the actions. |
| bool Core::FMTOutputNode::multiPeriod | ( | ) | const |
Return true if the output node covers multiple periods.
| Core::FMTOutputNode::operator std::string | ( | ) | const |
Return the string representation of the output node.
| bool Core::FMTOutputNode::operator< | ( | const FMTOutputNode & | rhs | ) | const |
Less than comparison operator of FMTOutputNode.
| [in] | rhs | the output node to compare with. |
| FMTOutputNode & Core::FMTOutputNode::operator= | ( | const FMTOutputNode & | rhs | ) |
Copy assignment operator for FMTOutputNode.
| [in] | rhs | the FMTOutputNode to copy. |
| bool Core::FMTOutputNode::operator== | ( | const FMTOutputNode & | rhs | ) | const |
Equality comparison operator of FMTOutputNode.
| [in] | rhs | the output node to compare with. |
| FMTOutputNode Core::FMTOutputNode::setPeriod | ( | int | period | ) | const |
Return a copy of the output node set to a given period.
| [in] | period | the period. |
| int Core::FMTOutputNode::setToGraph | ( | std::vector< int > & | targetedperiods, |
| int | period, | ||
| int | max_period | ||
| ) |
Set the output node to the graph for the targeted periods.
| [in,out] | targetedperiods | the targeted periods. |
| [in] | period | the period. |
| [in] | max_period | the maximum period. |
| bool Core::FMTOutputNode::singlePeriod | ( | ) | const |
Return true if the output node covers a single period.
| double Core::FMTOutputNode::constant |
| FMTOutputSource Core::FMTOutputNode::factor |
| FMTOutputSource Core::FMTOutputNode::source |