ALMaSS Skylark ODDox  1.1
The skylark model description following ODdox protocol
TALMaSSObject Class Reference

The base class of all ALMaSS objects requiring Step code. More...

#include <PopulationManager.h>

Public Member Functions

int GetCurrentStateNo ()
 Returns the current state number. More...
 
void SetCurrentStateNo (int a_num)
 Sets the current state number. More...
 
bool GetStepDone ()
 Returns the step done indicator flag. More...
 
void SetStepDone (bool a_bool)
 Sets the step done indicator flag. More...
 
virtual void BeginStep (void)
 BeingStep behaviour - must be implemented in descendent classes. More...
 
virtual void Step (void)
 Step behaviour - must be implemented in descendent classes. More...
 
virtual void EndStep (void)
 EndStep behaviour - must be implemented in descendent classes. More...
 
virtual void ReinitialiseObject ()
 Used to re-use an object - must be implemented in descendent classes. More...
 
 TALMaSSObject ()
 The constructor for TALMaSSObject. More...
 
virtual ~TALMaSSObject ()
 The destructor for TALMaSSObject. More...
 
void OnArrayBoundsError ()
 Used for debugging only, tests basic object properties. More...
 

Protected Attributes

int m_CurrentStateNo
 The basic state number for all objects - '-1' indicates death. More...
 
bool m_StepDone
 Indicates whether the iterative step code is done for this timestep. More...
 

Detailed Description

The base class of all ALMaSS objects requiring Step code.

Constructor & Destructor Documentation

◆ TALMaSSObject()

TALMaSSObject::TALMaSSObject ( )

The constructor for TALMaSSObject.

◆ ~TALMaSSObject()

virtual TALMaSSObject::~TALMaSSObject ( )
virtual

The destructor for TALMaSSObject.

Member Function Documentation

◆ BeginStep()

virtual void TALMaSSObject::BeginStep ( void  )
inlinevirtual

BeingStep behaviour - must be implemented in descendent classes.

Reimplemented in Skylark_Male, Skylark_Female, Skylark_PreFledgeling, Skylark_Nestling, Skylark_Clutch, and TAnimal.

137 {}

◆ EndStep()

virtual void TALMaSSObject::EndStep ( void  )
inlinevirtual

EndStep behaviour - must be implemented in descendent classes.

Reimplemented in Skylark_Male, Skylark_Female, Skylark_PreFledgeling, Skylark_Nestling, Skylark_Clutch, and TAnimal.

141 {}

◆ GetCurrentStateNo()

int TALMaSSObject::GetCurrentStateNo ( )
inline

Returns the current state number.

121  {
122  return m_CurrentStateNo;
123  }

References m_CurrentStateNo.

◆ GetStepDone()

bool TALMaSSObject::GetStepDone ( )
inline

Returns the step done indicator flag.

129  {
130  return m_StepDone;
131  }

References m_StepDone.

◆ OnArrayBoundsError()

void TALMaSSObject::OnArrayBoundsError ( )

◆ ReinitialiseObject()

virtual void TALMaSSObject::ReinitialiseObject ( )
inlinevirtual

Used to re-use an object - must be implemented in descendent classes.

143  {
144  m_StepDone = false;
145  m_CurrentStateNo = 0;
146  }

References m_CurrentStateNo, and m_StepDone.

Referenced by Skylark_Base::ReInit(), and TAnimal::ReinitialiseObject().

◆ SetCurrentStateNo()

void TALMaSSObject::SetCurrentStateNo ( int  a_num)
inline

Sets the current state number.

125  {
126  m_CurrentStateNo = a_num;
127  }

References m_CurrentStateNo.

◆ SetStepDone()

void TALMaSSObject::SetStepDone ( bool  a_bool)
inline

Sets the step done indicator flag.

133  {
134  m_StepDone = a_bool;
135  }

References m_StepDone.

◆ Step()

virtual void TALMaSSObject::Step ( void  )
inlinevirtual

Step behaviour - must be implemented in descendent classes.

Reimplemented in Skylark_Male, Skylark_Female, Skylark_PreFledgeling, Skylark_Nestling, Skylark_Clutch, and TAnimal.

139 {}

Member Data Documentation

◆ m_CurrentStateNo

◆ m_StepDone


The documentation for this class was generated from the following file:
TALMaSSObject::m_StepDone
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: PopulationManager.h:118
TALMaSSObject::m_CurrentStateNo
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: PopulationManager.h:116