ALMaSS Rodenticide Model ODdox  1.0
BaitLocation Class Reference

Class used for describing the rodenticide bait location. More...

#include <Rodenticide.h>

Public Member Functions

 BaitLocation (int a_x, int a_y, TTypesBaitLocation a_type)
 BaitLocation constructor. More...
 
TTypesBaitLocation GetBLtype (void)
 Get bait location type. More...
 
int GetMass (void)
 Get bait mass. More...
 
int GetstartDay (void)
 Get start day. More...
 
bool GetUseFlag ()
 Get use flag. More...
 
int GetX (void)
 Get x-coordinate. More...
 
int GetY (void)
 Get y-coordinate. More...
 
void ReduceMass (int a_mass)
 Set bait mass. More...
 
void Reset ()
 Reset all flags and mass. More...
 
void SetBLtype (TTypesBaitLocation a_BLt)
 Set bait location type. More...
 
void SetMass (int a_mass)
 Set bait mass. More...
 
void SetstartDay (int a_startDay)
 Set start day. More...
 
void SetUseFlag (bool a_flag)
 Set use flag. More...
 
void SetX (int a_x)
 Set x-coordinate. More...
 
void SetY (int a_y)
 Set y-coordinate. More...
 
virtual ~BaitLocation (void)
 BaitLocation destructor. More...
 

Protected Attributes

TTypesBaitLocation m_BLtype
 bait replenishment frequency More...
 
int m_mass
 bait mass More...
 
int m_startDay
 date for placement of first bait More...
 
bool m_useThisYear
 flag for bait location use this year More...
 
int m_x
 x-coordinate More...
 
int m_y
 y-coordinate More...
 

Detailed Description

Class used for describing the rodenticide bait location.

Constructor & Destructor Documentation

BaitLocation::BaitLocation ( int  a_x,
int  a_y,
TTypesBaitLocation  a_type 
)

BaitLocation constructor.

102 {
103  SetX(a_x);
104  SetY(a_y);
105  SetBLtype(a_type);
106  Reset();
107 }
void SetBLtype(TTypesBaitLocation a_BLt)
Set bait location type.
Definition: Rodenticide.h:65
void SetX(int a_x)
Set x-coordinate.
Definition: Rodenticide.h:55
void Reset()
Reset all flags and mass.
Definition: Rodenticide.h:67
void SetY(int a_y)
Set y-coordinate.
Definition: Rodenticide.h:57
BaitLocation::~BaitLocation ( void  )
virtual

BaitLocation destructor.

110 {
111  ;
112 }

Member Function Documentation

TTypesBaitLocation BaitLocation::GetBLtype ( void  )
inline

Get bait location type.

51 { return m_BLtype; }
TTypesBaitLocation m_BLtype
bait replenishment frequency
Definition: Rodenticide.h:31
int BaitLocation::GetMass ( void  )
inline

Get bait mass.

47 { return m_mass; }
int m_mass
bait mass
Definition: Rodenticide.h:29
int BaitLocation::GetstartDay ( void  )
inline

Get start day.

49 { return m_startDay; }
int m_startDay
date for placement of first bait
Definition: Rodenticide.h:35
bool BaitLocation::GetUseFlag ( )
inline

Get use flag.

53 { return m_useThisYear; }
bool m_useThisYear
flag for bait location use this year
Definition: Rodenticide.h:33
int BaitLocation::GetX ( void  )
inline

Get x-coordinate.

43 { return m_x; }
int m_x
x-coordinate
Definition: Rodenticide.h:25
int BaitLocation::GetY ( void  )
inline

Get y-coordinate.

45 { return m_y; }
int m_y
y-coordinate
Definition: Rodenticide.h:27
void BaitLocation::ReduceMass ( int  a_mass)
inline

Set bait mass.

63 { m_mass -= a_mass; }
int m_mass
bait mass
Definition: Rodenticide.h:29
void BaitLocation::Reset ( )
inline

Reset all flags and mass.

67 { m_mass = 0; m_useThisYear = false; m_startDay=-1;}
bool m_useThisYear
flag for bait location use this year
Definition: Rodenticide.h:33
int m_mass
bait mass
Definition: Rodenticide.h:29
int m_startDay
date for placement of first bait
Definition: Rodenticide.h:35
void BaitLocation::SetBLtype ( TTypesBaitLocation  a_BLt)
inline

Set bait location type.

Referenced by RodenticideManager::RodenticideManager().

65 { m_BLtype = a_BLt; }
TTypesBaitLocation m_BLtype
bait replenishment frequency
Definition: Rodenticide.h:31
void BaitLocation::SetMass ( int  a_mass)
inline

Set bait mass.

61 { m_mass = a_mass; }
int m_mass
bait mass
Definition: Rodenticide.h:29
void BaitLocation::SetstartDay ( int  a_startDay)
inline

Set start day.

59 { m_startDay = a_startDay; }
int m_startDay
date for placement of first bait
Definition: Rodenticide.h:35
void BaitLocation::SetUseFlag ( bool  a_flag)
inline

Set use flag.

69 { m_useThisYear = a_flag; }
bool m_useThisYear
flag for bait location use this year
Definition: Rodenticide.h:33
void BaitLocation::SetX ( int  a_x)
inline

Set x-coordinate.

Referenced by RodenticideManager::RodenticideManager().

55 { m_x = a_x; }
int m_x
x-coordinate
Definition: Rodenticide.h:25
void BaitLocation::SetY ( int  a_y)
inline

Set y-coordinate.

Referenced by RodenticideManager::RodenticideManager().

57 { m_y = a_y; }
int m_y
y-coordinate
Definition: Rodenticide.h:27

Member Data Documentation

TTypesBaitLocation BaitLocation::m_BLtype
protected

bait replenishment frequency

int BaitLocation::m_mass
protected

bait mass

int BaitLocation::m_startDay
protected

date for placement of first bait

bool BaitLocation::m_useThisYear
protected

flag for bait location use this year

int BaitLocation::m_x
protected

x-coordinate

This class has no functionality apart from get/set and arithmetic manipulation of class members.

int BaitLocation::m_y
protected

y-coordinate


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