ALMaSS Rodenticide ODdox  1.1
The rodenticide model description following ODdox protocol
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...
 
virtual ~BaitLocation (void)
 BaitLocation destructor. More...
 
int GetX (void)
 Get x-coordinate. More...
 
int GetY (void)
 Get y-coordinate. More...
 
int GetMass (void)
 Get bait mass. More...
 
int GetstartDay (void)
 Get start day. More...
 
TTypesBaitLocation GetBLtype (void)
 Get bait location type. More...
 
bool GetUseFlag ()
 Get use flag. More...
 
void SetX (int a_x)
 Set x-coordinate. More...
 
void SetY (int a_y)
 Set y-coordinate. More...
 
void SetstartDay (int a_startDay)
 Set start day. More...
 
void SetMass (int a_mass)
 Set bait mass. More...
 
void ReduceMass (int a_mass)
 Set bait mass. More...
 
void SetBLtype (TTypesBaitLocation a_BLt)
 Set bait location type. More...
 
void Reset ()
 Reset all flags and mass. More...
 
void SetUseFlag (bool a_flag)
 Set use flag. More...
 

Protected Attributes

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

Detailed Description

Class used for describing the rodenticide bait location.

Constructor & Destructor Documentation

◆ BaitLocation()

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

BaitLocation constructor.

110 {
111  SetX(a_x);
112  SetY(a_y);
113  SetBLtype(a_type);
114  Reset();
115 }

◆ ~BaitLocation()

BaitLocation::~BaitLocation ( void  )
virtual

BaitLocation destructor.

118 {
119  ;
120 }

Member Function Documentation

◆ GetBLtype()

TTypesBaitLocation BaitLocation::GetBLtype ( void  )
inline

Get bait location type.

50 { return m_BLtype; }

◆ GetMass()

int BaitLocation::GetMass ( void  )
inline

Get bait mass.

46 { return m_mass; }

◆ GetstartDay()

int BaitLocation::GetstartDay ( void  )
inline

Get start day.

48 { return m_startDay; }

◆ GetUseFlag()

bool BaitLocation::GetUseFlag ( )
inline

Get use flag.

52 { return m_useThisYear; }

◆ GetX()

int BaitLocation::GetX ( void  )
inline

Get x-coordinate.

42 { return m_x; }

◆ GetY()

int BaitLocation::GetY ( void  )
inline

Get y-coordinate.

44 { return m_y; }

◆ ReduceMass()

void BaitLocation::ReduceMass ( int  a_mass)
inline

Set bait mass.

62 { m_mass -= a_mass; }

◆ Reset()

void BaitLocation::Reset ( )
inline

Reset all flags and mass.

66 { m_mass = 0; m_useThisYear = false; m_startDay=-1;}

◆ SetBLtype()

void BaitLocation::SetBLtype ( TTypesBaitLocation  a_BLt)
inline

Set bait location type.

64 { m_BLtype = a_BLt; }

Referenced by RodenticideManager::RodenticideManager().

◆ SetMass()

void BaitLocation::SetMass ( int  a_mass)
inline

Set bait mass.

60 { m_mass = a_mass; }

◆ SetstartDay()

void BaitLocation::SetstartDay ( int  a_startDay)
inline

Set start day.

58 { m_startDay = a_startDay; }

◆ SetUseFlag()

void BaitLocation::SetUseFlag ( bool  a_flag)
inline

Set use flag.

68 { m_useThisYear = a_flag; }

◆ SetX()

void BaitLocation::SetX ( int  a_x)
inline

Set x-coordinate.

54 { m_x = a_x; }

Referenced by RodenticideManager::RodenticideManager().

◆ SetY()

void BaitLocation::SetY ( int  a_y)
inline

Set y-coordinate.

56 { m_y = a_y; }

Referenced by RodenticideManager::RodenticideManager().

Member Data Documentation

◆ m_BLtype

TTypesBaitLocation BaitLocation::m_BLtype
protected

bait replenishment frequency

◆ m_mass

int BaitLocation::m_mass
protected

bait mass

◆ m_startDay

int BaitLocation::m_startDay
protected

date for placement of first bait

◆ m_useThisYear

bool BaitLocation::m_useThisYear
protected

flag for bait location use this year

◆ m_x

int BaitLocation::m_x
protected

x-coordinate

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

◆ m_y

int BaitLocation::m_y
protected

y-coordinate


The documentation for this class was generated from the following files:
BaitLocation::SetX
void SetX(int a_x)
Set x-coordinate.
Definition: Rodenticide.h:54
BaitLocation::m_x
int m_x
x-coordinate
Definition: Rodenticide.h:24
BaitLocation::m_mass
int m_mass
bait mass
Definition: Rodenticide.h:28
BaitLocation::m_BLtype
TTypesBaitLocation m_BLtype
bait replenishment frequency
Definition: Rodenticide.h:30
BaitLocation::m_startDay
int m_startDay
date for placement of first bait
Definition: Rodenticide.h:34
BaitLocation::m_useThisYear
bool m_useThisYear
flag for bait location use this year
Definition: Rodenticide.h:32
BaitLocation::Reset
void Reset()
Reset all flags and mass.
Definition: Rodenticide.h:66
BaitLocation::SetBLtype
void SetBLtype(TTypesBaitLocation a_BLt)
Set bait location type.
Definition: Rodenticide.h:64
BaitLocation::SetY
void SetY(int a_y)
Set y-coordinate.
Definition: Rodenticide.h:56
BaitLocation::m_y
int m_y
y-coordinate
Definition: Rodenticide.h:26