FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
Core::FMToutputsource Class Reference

#include <FMToutputsource.hpp>

Inheritance diagram for Core::FMToutputsource:
[legend]
Collaboration diagram for Core::FMToutputsource:
[legend]

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)
 
FMToutputsourceoperator= (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 FMTmaskgetmask () 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 FMTotargettarget () 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)
 
FMTspecoperator= (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 FMTyldboundsgetyieldbound (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< FMTyldboundsyieldbounds
 the yields bounds vector lower>=y1<=upper,lower>=y2<=upper
 

Constructor & Destructor Documentation

◆ FMToutputsource() [1/5]

Core::FMToutputsource::FMToutputsource ( )

◆ ~FMToutputsource()

Core::FMToutputsource::~FMToutputsource ( )
default

◆ FMToutputsource() [2/5]

Core::FMToutputsource::FMToutputsource ( const FMTotar  ltarget,
double  lvalue = 0,
std::string  lyield = "",
std::string  laction = "",
int  origin = -1,
int  ttarget = -1 
)

◆ FMToutputsource() [3/5]

Core::FMToutputsource::FMToutputsource ( const FMTotar  ltarget,
std::vector< double >  lvalues,
int  origin = -1,
int  ttarget = -1,
std::string  llevelname = "" 
)

◆ FMToutputsource() [4/5]

Core::FMToutputsource::FMToutputsource ( const FMTspec spec,
const FMTmask lmask,
const FMTotar  ltarget,
std::string  lyield = "",
std::string  laction = "",
int  origin = -1,
int  ttarget = -1 
)

◆ FMToutputsource() [5/5]

Core::FMToutputsource::FMToutputsource ( const FMToutputsource rhs)

Member Function Documentation

◆ canbededucedtoconstant()

bool Core::FMToutputsource::canbededucedtoconstant ( ) const

◆ fillhashmask()

void Core::FMToutputsource::fillhashmask ( Core::FMTmask basemask) const

◆ fillhashspec()

void Core::FMToutputsource::fillhashspec ( Core::FMTmask basemask) const

◆ getaction()

const std::string & Core::FMToutputsource::getaction ( ) const
inline

◆ getcoef()

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

◆ getconstantvalue()

double Core::FMToutputsource::getconstantvalue ( const std::vector< Core::FMTactualdevelopment > &  area,
const std::vector< Core::FMTaction > &  actions,
const FMTyields yields 
) const

◆ getlevel()

const std::string & Core::FMToutputsource::getlevel ( ) const
inline

◆ getmask()

const FMTmask & Core::FMToutputsource::getmask ( ) const
inline

◆ getoutputorigin()

int Core::FMToutputsource::getoutputorigin ( ) const
inline

◆ gettarget()

const FMTotar & Core::FMToutputsource::gettarget ( ) const
inline

◆ getthemetarget()

int Core::FMToutputsource::getthemetarget ( ) const
inline

◆ getvalue()

double Core::FMToutputsource::getvalue ( int  period = 0) const

◆ getvalues()

const std::vector< double > & Core::FMToutputsource::getvalues ( ) const
inline

◆ getyield()

const std::string & Core::FMToutputsource::getyield ( ) const
inline

◆ hash()

size_t Core::FMToutputsource::hash ( int  period = -1,
bool  withyield = false 
) const

◆ isaction()

bool Core::FMToutputsource::isaction ( ) const
inline

◆ isaverage()

bool Core::FMToutputsource::isaverage ( ) const
inline

◆ isconstant()

bool Core::FMToutputsource::isconstant ( ) const
inline

◆ isequalbyvalue()

bool Core::FMToutputsource::isequalbyvalue ( const FMToutputsource rhs) const

◆ isinaggregate()

bool Core::FMToutputsource::isinaggregate ( const FMToutputsource rhs,
const std::vector< Core::FMTaction > &  actions 
) const

◆ isinventory()

bool Core::FMToutputsource::isinventory ( ) const
inline

◆ islevel()

bool Core::FMToutputsource::islevel ( ) const
inline

◆ isnextperiod()

bool Core::FMToutputsource::isnextperiod ( ) const
inline

◆ isnull()

bool Core::FMToutputsource::isnull ( const FMTyields ylds) const

◆ issamebutdifferentaction()

bool Core::FMToutputsource::issamebutdifferentaction ( const FMToutputsource rhs) const

◆ issubsetof() [1/2]

bool Core::FMToutputsource::issubsetof ( const FMToutputsource rhs) const

◆ issubsetof() [2/2]

bool Core::FMToutputsource::issubsetof ( const FMToutputsource rhs,
const std::vector< Core::FMTaction > &  actions 
) const

◆ issum()

bool Core::FMToutputsource::issum ( ) const
inline

◆ istimeyield()

bool Core::FMToutputsource::istimeyield ( ) const
inline

◆ isvariable()

bool Core::FMToutputsource::isvariable ( ) const
inline

◆ isvariablelevel()

bool Core::FMToutputsource::isvariablelevel ( ) const
inline

◆ operator std::string()

Core::FMToutputsource::operator std::string ( ) const
overridevirtual

Returns the string reprensentation of the FMTspec like _age >= lower and _Age <= upper and ....

Reimplemented from Core::FMTspec.

◆ operator!=()

bool Core::FMToutputsource::operator!= ( const FMToutputsource rhs) const

◆ operator<()

bool Core::FMToutputsource::operator< ( const FMToutputsource rhs) const

◆ operator=()

FMToutputsource & Core::FMToutputsource::operator= ( const FMToutputsource rhs)

◆ operator==()

bool Core::FMToutputsource::operator== ( const FMToutputsource rhs) const

◆ presolve()

FMToutputsource Core::FMToutputsource::presolve ( const FMTmaskfilter filter,
const std::vector< FMTtheme > &  newthemes 
) const

◆ resetvalues()

void Core::FMToutputsource::resetvalues ( const FMToperator op,
const FMToutputsource other 
)

◆ setaction()

void Core::FMToutputsource::setaction ( const std::string &  actionname)

◆ setaverage()

void Core::FMToutputsource::setaverage ( )

◆ setmask()

void Core::FMToutputsource::setmask ( const FMTmask newmask)

◆ setoutputorigin()

void Core::FMToutputsource::setoutputorigin ( const int &  neworigin)

◆ setsum()

void Core::FMToutputsource::setsum ( )

◆ settarget()

void Core::FMToutputsource::settarget ( const FMTotar newtype)

◆ setthemetarget()

void Core::FMToutputsource::setthemetarget ( const int &  newttarget)

◆ targets()

std::vector< const FMTaction * > Core::FMToutputsource::targets ( const std::vector< FMTaction > &  actions) const

◆ targetsset()

std::unordered_set< int > Core::FMToutputsource::targetsset ( const std::vector< FMTaction > &  actions) const

◆ use()

bool Core::FMToutputsource::use ( const FMTdevelopment development,
const FMTyields ylds,
const Graph::FMTgraphvertextoyield graphinfo = nullptr 
) const
inline

◆ useinedges()

bool Core::FMToutputsource::useinedges ( ) const
inline

◆ useoutedges()

bool Core::FMToutputsource::useoutedges ( ) const
inline

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

◆ Parser::FMToutputparser

friend class Parser::FMToutputparser
friend

The documentation for this class was generated from the following file: