ALMaSS Rabbit ODdox  1.00
The rabbit model description following ODdox protocol
Public Member Functions | Protected Attributes | List of all members
TALMaSSObject Class Reference

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

#include <populationmanager.h>

Inheritance diagram for TALMaSSObject:
TAnimal Rabbit_Base Rabbit_Warren Rabbit_Adult Rabbit_Young Rabbit_Female Rabbit_Male Rabbit_Juvenile

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.

Definition at line 109 of file populationmanager.h.

Constructor & Destructor Documentation

TALMaSSObject::TALMaSSObject ( )

The constructor for TALMaSSObject.

TALMaSSObject Constructor

Definition at line 1449 of file PopulationManager.cpp.

1449  {
1450 #ifdef __CJTDebug_5
1451  AmAlive = 0xDEADC0DE;
1452 #endif
1453  m_StepDone = false;
1454  m_CurrentStateNo = 0;
1455 }
int m_CurrentStateNo
The basic state number for all objects - &#39;-1&#39; indicates death.
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
TALMaSSObject::~TALMaSSObject ( )
virtual

The destructor for TALMaSSObject.

TALMaSSObject Destructor

Definition at line 1463 of file PopulationManager.cpp.

1463  {
1464 #ifdef __CJTDebug_5
1465  AmAlive = 0;
1466 #endif
1467 }

Member Function Documentation

virtual void TALMaSSObject::BeginStep ( void  )
inlinevirtual

BeingStep behaviour - must be implemented in descendent classes.

Reimplemented in Rabbit_Warren, Rabbit_Base, and TAnimal.

Definition at line 133 of file populationmanager.h.

133 {}
virtual void TALMaSSObject::EndStep ( void  )
inlinevirtual

EndStep behaviour - must be implemented in descendent classes.

Reimplemented in Rabbit_Adult, Rabbit_Juvenile, Rabbit_Young, Rabbit_Base, and TAnimal.

Definition at line 137 of file populationmanager.h.

137 {}
int TALMaSSObject::GetCurrentStateNo ( )
inline

Returns the current state number.

Definition at line 117 of file populationmanager.h.

Referenced by Rabbit_Warren::DEBUG_InternalTest(), Rabbit_Warren::Leave(), CompareStateR::operator()(), CompareStateDead::operator()(), and CompareStateAlive::operator()().

117  {
118  return m_CurrentStateNo;
119  }
int m_CurrentStateNo
The basic state number for all objects - &#39;-1&#39; indicates death.
bool TALMaSSObject::GetStepDone ( )
inline

Returns the step done indicator flag.

Definition at line 125 of file populationmanager.h.

125  {
126  return m_StepDone;
127  }
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
void TALMaSSObject::OnArrayBoundsError ( )

Used for debugging only, tests basic object properties.

Definition at line 1497 of file PopulationManager.cpp.

1497  {
1498  exit( 1 );
1499 }
virtual void TALMaSSObject::ReinitialiseObject ( )
inlinevirtual

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

Definition at line 139 of file populationmanager.h.

Referenced by TAnimal::ReinitialiseObject().

139  {
140  m_StepDone = false;
141  m_CurrentStateNo = 0;
142  }
int m_CurrentStateNo
The basic state number for all objects - &#39;-1&#39; indicates death.
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
void TALMaSSObject::SetCurrentStateNo ( int  a_num)
inline

Sets the current state number.

Definition at line 121 of file populationmanager.h.

121  {
122  m_CurrentStateNo = a_num;
123  }
int m_CurrentStateNo
The basic state number for all objects - &#39;-1&#39; indicates death.
void TALMaSSObject::SetStepDone ( bool  a_bool)
inline

Sets the step done indicator flag.

Definition at line 129 of file populationmanager.h.

129  {
130  m_StepDone = a_bool;
131  }
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
virtual void TALMaSSObject::Step ( void  )
inlinevirtual

Step behaviour - must be implemented in descendent classes.

Reimplemented in Rabbit_Warren, Rabbit_Female, Rabbit_Male, Rabbit_Juvenile, Rabbit_Young, Rabbit_Base, and TAnimal.

Definition at line 135 of file populationmanager.h.

135 {}

Member Data Documentation

int TALMaSSObject::m_CurrentStateNo
protected
bool TALMaSSObject::m_StepDone
protected

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