35    if (!equal) 
return false;
 
   65    int count()
 const { 
return mStates.size(); }
 
   82    inline void executeNeighborhood(QVector<float> &vec, QPoint center_point, QVector<QPoint> &list, 
const Grid<ResourceUnit*> &grid);
 
   83    QString createCompositionString(
const SVDState &s);
 
   84    QVector<SVDState> mStates;
 
   85    QVector<QString> mCompositionString;
 
   86    QHash<SVDState, int> mStateLookup;
 
Grid class (template).
Definition: grid.h:44
 
ResourceUnit is the spatial unit that encapsulates a forest stand and links to several environmental ...
Definition: resourceunit.h:49
 
Definition: svdstate.h:49
 
const SVDState & state(int index) const
access the state with the id 'index'
Definition: svdstate.h:61
 
EStructureClassification
Definition: svdstate.h:52
 
@ Structure2m
Definition: svdstate.h:53
 
@ Structure4m
Definition: svdstate.h:52
 
EFunctioningClassification
Definition: svdstate.h:54
 
@ Functioning3Classes
Definition: svdstate.h:54
 
@ Functioning5Classes
Definition: svdstate.h:55
 
bool isStateValid(int state) const
return true if 'state' is a valid state Id
Definition: svdstate.h:63
 
QString compositionString(int index)
get a string with the main species on the resource unit dominant species is uppercase,...
Definition: svdstate.h:73
 
SVDStates()
Definition: svdstate.cpp:9
 
int evaluateState(ResourceUnit *ru)
calculate and returns the Id ofthe state that the resource unit is currently in
Definition: svdstate.cpp:39
 
void evaluateNeighborhood(ResourceUnit *ru)
evaluate the species composition in the neighborhood of the cell this is executed in parallel.
Definition: svdstate.cpp:143
 
QString stateLabel(int index)
create a human readable string representation of the string
Definition: svdstate.cpp:168
 
int count() const
return the number of states
Definition: svdstate.h:65
 
Definition: svdstate.h:10
 
SVDState()
Definition: svdstate.h:11
 
int composition
Definition: svdstate.h:12
 
int function
Definition: svdstate.h:14
 
static SVDStates * svd
link to the SVD container class
Definition: svdstate.h:27
 
int admixed_species_index[5]
Definition: svdstate.h:16
 
QString compositionString() const
get a string with the main species on the resource unit dominant species is uppercase,...
Definition: svdstate.cpp:255
 
float neighborhoodAnalysis(QVector< float > &v)
calculate neighborhood population, return total weight added to the vector of species
Definition: svdstate.cpp:271
 
int Id
the unique Id of the state within the current simulation.
Definition: svdstate.h:18
 
QString stateLabel() const
a human readable string describing the state
Definition: svdstate.cpp:263
 
int dominant_species_index
Definition: svdstate.h:15
 
int structure
Definition: svdstate.h:13
 
bool operator==(const SVDState &s1, const SVDState &s2)
Definition: svdstate.h:31
 
uint qHash(const SVDState &key, uint seed)
Definition: svdstate.h:41