![]() |
FMT 0.9.8
Forest management tools for forest planning
|
#include <FMToutputsource.hpp>
Public Member Functions | |
| FMToutputsource () | |
| ~FMToutputsource ()=default | |
| FMToutputsource (const FMTotar ltarget, double lvalue=0, std::string lyield="", std::string laction="", int origin=-1, int ttarget=-1) | |
| FMToutputsource (const FMTotar ltarget, std::vector< double >lvalues, int origin=-1, int ttarget=-1, std::string llevelname="") | |
| FMToutputsource (const FMTspec &spec, const FMTmask &lmask, const FMTotar ltarget, std::string lyield="", std::string laction="", int origin=-1, int ttarget=-1) | |
| FMToutputsource (const FMToutputsource &rhs) | |
| FMToutputsource & | operator= (const FMToutputsource &rhs) |
| operator std::string () const override | |
| bool | operator== (const FMToutputsource &rhs) const |
| bool | operator!= (const FMToutputsource &rhs) const |
| bool | operator< (const FMToutputsource &rhs) const |
| int | getoutputorigin () const |
| int | getthemetarget () const |
| bool | isinaggregate (const FMToutputsource &rhs, const std::vector< Core::FMTaction > &actions) const |
| bool | issubsetof (const FMToutputsource &rhs, const std::vector< Core::FMTaction > &actions) const |
| bool | issubsetof (const FMToutputsource &rhs) const |
| bool | issamebutdifferentaction (const FMToutputsource &rhs) const |
| const FMTmask & | getmask () const |
| void | setmask (const FMTmask &newmask) |
| void | setaction (const std::string &actionname) |
| void | settarget (const FMTotar &newtype) |
| void | setthemetarget (const int &newttarget) |
| void | setoutputorigin (const int &neworigin) |
| void | resetvalues (const FMToperator &op, const FMToutputsource &other) |
| const std::string & | getaction () const |
| const std::string & | getyield () const |
| const FMTotar & | gettarget () const |
| double | getvalue (int period=0) const |
| bool | isvariable () const |
| bool | islevel () const |
| bool | isconstant () const |
| bool | isvariablelevel () const |
| const std::string & | getlevel () const |
| const std::vector< double > & | getvalues () const |
| bool | isnull (const FMTyields &ylds) const |
| bool | istimeyield () const |
| std::vector< const FMTaction * > | targets (const std::vector< FMTaction > &actions) const |
| std::unordered_set< int > | targetsset (const std::vector< FMTaction > &actions) const |
| bool | isinventory () const |
| bool | useinedges () const |
| bool | isnextperiod () const |
| bool | useoutedges () const |
| double | getcoef (const FMTdevelopment &development, const FMTyields &yields, const Graph::FMTgraphvertextoyield *graphinfo=nullptr, std::vector< FMTdevelopmentpath > const *paths=nullptr, FMTaction const *action=nullptr) const |
| bool | use (const FMTdevelopment &development, const FMTyields &ylds, const Graph::FMTgraphvertextoyield *graphinfo=nullptr) const |
| FMToutputsource | presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &newthemes) const |
| void | setaverage () |
| bool | isaverage () const |
| void | setsum () |
| bool | issum () const |
| bool | canbededucedtoconstant () const |
| double | getconstantvalue (const std::vector< Core::FMTactualdevelopment > &area, const std::vector< Core::FMTaction > &actions, const FMTyields &yields) const |
| size_t | hash (int period=-1, bool withyield=false) const |
| void | fillhashmask (Core::FMTmask &basemask) const |
| void | fillhashspec (Core::FMTmask &basemask) const |
| bool | isequalbyvalue (const FMToutputsource &rhs) const |
| bool | isaction () const |
Public Member Functions inherited from Core::FMTspec | |
| FMTspec () | |
| virtual | ~FMTspec ()=default |
| FMTspec (const FMTspec &rhs) | |
| FMTspec & | operator= (const FMTspec &rhs) |
| bool | add (const FMTspec &rhs) |
| bool | setbounds (const FMTperbounds &bound) |
| bool | addbounds (const FMTagebounds &bound) |
| bool | addbounds (const FMTyldbounds &bound) |
| bool | addbounds (const FMTlockbounds &bound) |
| bool | allowwithoutyield (const int &tperiod, const int &tage, const int &tlock) const |
| const FMTyldbounds & | getyieldbound (const std::string &name) const |
| bool | allowyields (const std::vector< double > &values) const |
| bool | allow (const int &tperiod, const int &tage, const int &tlock, const std::vector< double > &values) const |
| const std::vector< std::string > & | getylds () const |
| const std::vector< FMTyldbounds > & | getyldbounds () const |
| virtual | operator std::string () const |
| bool | operator== (const FMTspec &rhs) const |
| bool | operator< (const FMTspec &rhs) const |
| size_t | hash () const |
| bool | empty () const |
| bool | emptyage () const |
| bool | emptyylds () const |
| bool | emptyperiod () const |
| bool | emptylock () const |
| int | getageupperbound () const |
| int | getagelowerbound () const |
| int | getperiodupperbound () const |
| int | getperiodlowerbound () const |
| int | getlockupperbound () const |
| int | getlocklowerbound () const |
| bool | issubsetof (const FMTspec &rhs) const |
Friends | |
| class | boost::serialization::access |
| class | Parser::FMToutputparser |
Additional Inherited Members | |
Protected Attributes inherited from Core::FMTspec | |
| FMTperbounds | per |
| Period bounds so lower >= period <= upper. | |
| FMTagebounds | age |
| Age bounds so lower >= age <= upper. | |
| FMTlockbounds | lock |
| Lock bounds so lower >= lock <= upper. | |
| std::vector< std::string > | yieldnames |
| The names of each yield in the vector of yieldbounds. | |
| std::vector< FMTyldbounds > | yieldbounds |
| the yields bounds vector lower>=y1<=upper,lower>=y2<=upper | |
| Core::FMToutputsource::FMToutputsource | ( | ) |
|
default |
| Core::FMToutputsource::FMToutputsource | ( | const FMTotar | ltarget, |
| double | lvalue = 0, |
||
| std::string | lyield = "", |
||
| std::string | laction = "", |
||
| int | origin = -1, |
||
| int | ttarget = -1 |
||
| ) |
| Core::FMToutputsource::FMToutputsource | ( | const FMTotar | ltarget, |
| std::vector< double > | lvalues, | ||
| int | origin = -1, |
||
| int | ttarget = -1, |
||
| std::string | llevelname = "" |
||
| ) |
| Core::FMToutputsource::FMToutputsource | ( | const FMTspec & | spec, |
| const FMTmask & | lmask, | ||
| const FMTotar | ltarget, | ||
| std::string | lyield = "", |
||
| std::string | laction = "", |
||
| int | origin = -1, |
||
| int | ttarget = -1 |
||
| ) |
| Core::FMToutputsource::FMToutputsource | ( | const FMToutputsource & | rhs | ) |
| bool Core::FMToutputsource::canbededucedtoconstant | ( | ) | const |
| void Core::FMToutputsource::fillhashmask | ( | Core::FMTmask & | basemask | ) | const |
| void Core::FMToutputsource::fillhashspec | ( | Core::FMTmask & | basemask | ) | const |
|
inline |
| double Core::FMToutputsource::getcoef | ( | const FMTdevelopment & | development, |
| const FMTyields & | yields, | ||
| const Graph::FMTgraphvertextoyield * | graphinfo = nullptr, |
||
| std::vector< FMTdevelopmentpath > const * | paths = nullptr, |
||
| FMTaction const * | action = nullptr |
||
| ) | const |
| double Core::FMToutputsource::getconstantvalue | ( | const std::vector< Core::FMTactualdevelopment > & | area, |
| const std::vector< Core::FMTaction > & | actions, | ||
| const FMTyields & | yields | ||
| ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| double Core::FMToutputsource::getvalue | ( | int | period = 0 | ) | const |
|
inline |
|
inline |
| size_t Core::FMToutputsource::hash | ( | int | period = -1, |
| bool | withyield = false |
||
| ) | const |
|
inline |
|
inline |
|
inline |
| bool Core::FMToutputsource::isequalbyvalue | ( | const FMToutputsource & | rhs | ) | const |
| bool Core::FMToutputsource::isinaggregate | ( | const FMToutputsource & | rhs, |
| const std::vector< Core::FMTaction > & | actions | ||
| ) | const |
|
inline |
|
inline |
|
inline |
| bool Core::FMToutputsource::isnull | ( | const FMTyields & | ylds | ) | const |
| bool Core::FMToutputsource::issamebutdifferentaction | ( | const FMToutputsource & | rhs | ) | const |
| bool Core::FMToutputsource::issubsetof | ( | const FMToutputsource & | rhs | ) | const |
| bool Core::FMToutputsource::issubsetof | ( | const FMToutputsource & | rhs, |
| const std::vector< Core::FMTaction > & | actions | ||
| ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Returns the string reprensentation of the FMTspec like _age >= lower and _Age <= upper and ....
Reimplemented from Core::FMTspec.
| bool Core::FMToutputsource::operator!= | ( | const FMToutputsource & | rhs | ) | const |
| bool Core::FMToutputsource::operator< | ( | const FMToutputsource & | rhs | ) | const |
| FMToutputsource & Core::FMToutputsource::operator= | ( | const FMToutputsource & | rhs | ) |
| bool Core::FMToutputsource::operator== | ( | const FMToutputsource & | rhs | ) | const |
| FMToutputsource Core::FMToutputsource::presolve | ( | const FMTmaskfilter & | filter, |
| const std::vector< FMTtheme > & | newthemes | ||
| ) | const |
| void Core::FMToutputsource::resetvalues | ( | const FMToperator & | op, |
| const FMToutputsource & | other | ||
| ) |
| void Core::FMToutputsource::setaction | ( | const std::string & | actionname | ) |
| void Core::FMToutputsource::setaverage | ( | ) |
| void Core::FMToutputsource::setmask | ( | const FMTmask & | newmask | ) |
| void Core::FMToutputsource::setoutputorigin | ( | const int & | neworigin | ) |
| void Core::FMToutputsource::setsum | ( | ) |
| void Core::FMToutputsource::settarget | ( | const FMTotar & | newtype | ) |
| void Core::FMToutputsource::setthemetarget | ( | const int & | newttarget | ) |
| std::vector< const FMTaction * > Core::FMToutputsource::targets | ( | const std::vector< FMTaction > & | actions | ) | const |
| std::unordered_set< int > Core::FMToutputsource::targetsset | ( | const std::vector< FMTaction > & | actions | ) | const |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |