8#ifndef FMTbaseedgeproperties_Hm_included
9#define FMTbaseedgeproperties_Hm_included
12#include <boost/serialization/serialization.hpp>
13#include <boost/serialization/nvp.hpp>
14#include <boost/serialization/export.hpp>
64 const int& lvariableID,
65 const double& lproportion);
97 return static_cast<int>(
action);
121 bool isAction(
const std::vector<Core::FMTAction>& actions,
160 template<
class Archive>
161 void serialize(Archive& ar,
const unsigned int version)
163 ar & BOOST_SERIALIZATION_NVP(
action);
List of specifications dictating the operability of a subset of developments to this action.
Definition: FMTAction.h:43
Base edge properties of a FMTGraph, holding the action of the edge.
Definition: FMTBaseEdgeProperties.h:31
FMTBaseEdgeProperties()=default
Default constructor for FMTBaseEdgeProperties.
bool operator<(const FMTBaseEdgeProperties &rhs) const
Less than operator for FMTBaseEdgeProperties.
bool operator==(const FMTBaseEdgeProperties &rhs) const
Comparison operator for FMTBaseEdgeProperties.
FMTBaseEdgeProperties(const FMTBaseEdgeProperties &rhs)=default
Copy constructor for FMTBaseEdgeProperties.
FMTBaseEdgeProperties(const int &laction, const int &lvariableID, const double &lproportion)
Construct a FMTBaseEdgeProperties from an action, a variable id and a proportion.
FMTBaseEdgeProperties & operator=(const FMTBaseEdgeProperties &rhs)=default
Copy assignment operator for FMTBaseEdgeProperties.
void setActionID(const int &newid)
Set the action id of the edge.
int getActionID() const
Return the action id of the edge.
Definition: FMTBaseEdgeProperties.h:95
virtual int getVariableID() const
Return the variable id of the edge.
Definition: FMTBaseEdgeProperties.h:77
constexpr FMTBaseEdgeProperties(const int &laction)
Construct a FMTBaseEdgeProperties from an action.
Definition: FMTBaseEdgeProperties.h:71
int8_t getShortActionID() const
Return the short (int8) action id of the edge.
Definition: FMTBaseEdgeProperties.h:104
int8_t action
Definition: FMTBaseEdgeProperties.h:150
virtual ~FMTBaseEdgeProperties()=default
Default virtual destructor for FMTBaseEdgeProperties.
friend class boost::serialization::access
Definition: FMTBaseEdgeProperties.h:152
bool operator!=(const FMTBaseEdgeProperties &rhs) const
Comparison operator for FMTBaseEdgeProperties.
virtual double getProportion() const
Return the proportion of the edge.
Definition: FMTBaseEdgeProperties.h:86
bool isAction(const std::vector< Core::FMTAction > &actions, const Core::FMTAction &rhsaction) const
Return true if the edge action matches a given action.
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTAction.h:34
Definition: FMTAreaParser.h:35