ALMaSS Partridge ODdox  1.1
The partridge model description following ODdox protocol
Partridge_Chick2 Class Reference

The partridge Chick2 class. More...

#include <Partridge_All.h>

Inheritance diagram for Partridge_Chick2:
Partridge_Chick Partridge_Base TAnimal TALMaSSObject

Public Member Functions

virtual void BeginStep (void)
 Chick2 BeginStep. More...
 
virtual void Step (void)
 Chick2Step. More...
 
virtual void EndStep (void)
 Chick2 EndSte[. More...
 
virtual bool DailyMortality ()
 Background mortality check. More...
 
virtual bool OnFarmEvent (FarmToDo event)
 Management event handler. More...
 
 Partridge_Chick2 (int a_x, int a_y, Partridge_Female *a_mother, Partridge_Covey *a_flock, Landscape *a_map, bool a_sex, int a_family_counter, Partridge_Population_Manager *a_manager)
 Constructor. More...
 
virtual ~Partridge_Chick2 (void)
 Destructor. More...
 
- Public Member Functions inherited from Partridge_Chick
virtual void Dying ()
 Generic dying handler. More...
 
void OnYouAreDead ()
 Message handler. More...
 
 Partridge_Chick (int a_x, int a_y, Partridge_Female *a_mother, Partridge_Covey *a_flock, Landscape *a_map, bool a_sex, int a_family_counter, Partridge_Population_Manager *a_manager)
 Constructor. More...
 
virtual ~Partridge_Chick (void)
 Destructor. More...
 
- Public Member Functions inherited from Partridge_Base
Partridge_Object GetObjectType ()
 Supply object type. More...
 
bool GetUncleStatus ()
 Supply uncle status. More...
 
void SetUncleStatus (bool a_Status)
 Set uncle status. More...
 
bool PossibleMate (Partridge_Base *a_partridge)
 Can we mate? More...
 
virtual bool ArePaired ()
 Overridden base function. More...
 
Partridge_CoveyGetCovey (void)
 Supply covey pointer. More...
 
Partridge_State GetState (void)
 Supply state. More...
 
void SetState (Partridge_State a_pars)
 Set state. More...
 
int GetFamily (void)
 Supply family ID. More...
 
int GetAge (void)
 Supply age. More...
 
void SetAge (int a_age)
 Set age. More...
 
long GetID (void)
 Supply ID. More...
 
void SetFamily (unsigned int family)
 Set family ID. More...
 
void SetCovey (Partridge_Covey *a_covey)
 Set covey pointer. More...
 
void MakeCovey ()
 Create our own covey. More...
 
void SwitchCovey (Partridge_Covey *a_covey)
 Swap coveys. More...
 
 Partridge_Base (int a_born_x, int a_born_y, int a_x, int a_y, int a_family_counter, Partridge_Covey *a_covey, Landscape *a_map, Partridge_Population_Manager *a_manager)
 Constructor for Partridge_Base. More...
 
virtual ~Partridge_Base (void)
 Destructor. More...
 
virtual void CopyMyself (int a_Ptype)
 Duplicate this object. More...
 
- Public Member Functions inherited from TAnimal
unsigned SupplyFarmOwnerRef ()
 
AnimalPosition SupplyPosition ()
 
APoint SupplyPoint ()
 
int SupplyPolygonRef ()
 
int Supply_m_Location_x ()
 
int Supply_m_Location_y ()
 
virtual void KillThis ()
 
virtual void CopyMyself ()
 
void SetX (int a_x)
 
void SetY (int a_y)
 
 TAnimal (int x, int y, Landscape *L)
 
virtual void ReinitialiseObject (int x, int y, Landscape *L)
 Used to re-use an object - must be implemented in descendent classes. More...
 
virtual int WhatState ()
 
void CheckManagement (void)
 
void CheckManagementXY (int x, int y)
 
- Public Member Functions inherited from TALMaSSObject
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 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...
 

Private Member Functions

virtual Partridge_State ChDeveloping (void)
 State developing. More...
 
virtual Partridge_State ChMaturing (void)
 State maturing. More...
 

Additional Inherited Members

- Public Attributes inherited from Partridge_Base
Partridge_Population_Managerm_OurPopulationManager
 Pointer to the population manager. More...
 
- Protected Member Functions inherited from Partridge_Chick
void ChDying (void)
 Chick Dying. More...
 
- Protected Member Functions inherited from Partridge_Base
virtual void CheckMatePointers ()
 Debug. More...
 
- Protected Member Functions inherited from TAnimal
void CorrectWrapRound ()
 Corrects wrap around co-ordinate problems. More...
 
- Protected Attributes inherited from Partridge_Chick
bool m_sex
 Sex. More...
 
int m_starve
 Days spent starving. More...
 
- Protected Attributes inherited from Partridge_Base
int m_signal
 Used to pass information to outputs. More...
 
long m_id
 Individual bird ID. More...
 
int m_family_counter
 Family ID. More...
 
int m_age
 Age in days. More...
 
int m_born_x
 x-coord of birth More...
 
int m_born_y
 y-coord of birth More...
 
bool m_UncleStatus
 If has uncle status in the covey. More...
 
Partridge_Object m_object_type
 Type of pob object this is. More...
 
Partridge_Coveym_covey
 Pointer to the covey. More...
 
Partridge_State m_state
 Current behavioural state. More...
 
- Protected Attributes inherited from TAnimal
int m_Location_x
 
int m_Location_y
 
Landscapem_OurLandscape
 
- Protected Attributes inherited from TALMaSSObject
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 partridge Chick2 class.

Definition at line 628 of file Partridge_All.h.

Constructor & Destructor Documentation

◆ Partridge_Chick2()

Partridge_Chick2::Partridge_Chick2 ( int  a_born_x,
int  a_born_y,
Partridge_Female a_mother,
Partridge_Covey a_covey,
Landscape a_map,
bool  a_sex,
int  a_family_counter,
Partridge_Population_Manager a_manager 
)

Constructor.

Constructor for the Chick2. Uses the Partridge_Chick::Partridge_Chick constructor and then corrects details.

Definition at line 1028 of file Partridge_All.cpp.

1029  :
1030  Partridge_Chick( a_born_x, a_born_y, a_mother, a_covey, a_map, a_sex, a_family_counter, a_manager )
1031  {
1032  // Need to correct two naughtly little details that were messed up by the chick constructor
1033  // First we are not a chick any longer
1035  // Second The covey now thinks it has an extra chick
1037 }

References Partridge_Base::m_covey, Partridge_Base::m_object_type, pob_Chick2, and Partridge_Covey::RemoveExtraChick().

◆ ~Partridge_Chick2()

virtual Partridge_Chick2::~Partridge_Chick2 ( void  )
inlinevirtual

Destructor.

Definition at line 649 of file Partridge_All.h.

649 {;}

Member Function Documentation

◆ BeginStep()

void Partridge_Chick2::BeginStep ( void  )
virtual

Chick2 BeginStep.

BefinStep just checks background mortality and management events.

Reimplemented from Partridge_Chick.

Definition at line 1251 of file Partridge_All.cpp.

1252 {
1253  if ( !DailyMortality() )
1254  {
1255  CheckManagement();
1257  // This call is because it is OK to get multiple calls to this function
1258  // but it is not OK if no-one calls it!
1259  m_covey->MoveDistance( g_MaxWalk[m_age], 10, 10000 );
1260  }
1261  else
1262  {
1263  m_signal = 1;
1264  ChDying();
1265  }
1266 }

References Partridge_Chick::ChDying(), TAnimal::CheckManagement(), DailyMortality(), g_MaxWalk, Partridge_Base::m_age, Partridge_Base::m_covey, Partridge_Base::m_signal, Partridge_Covey::MoveDistance(), and Partridge_Covey::SetChickAge().

◆ ChDeveloping()

Partridge_State Partridge_Chick2::ChDeveloping ( void  )
privatevirtual

State developing.

Developing is basically being alive each day until becoming an adult object.

Reimplemented from Partridge_Chick.

Definition at line 1205 of file Partridge_All.cpp.

1206 {
1207  m_age++;
1209  {
1210  return pars_ChDeveloping;
1211  }
1212  else
1213  return pars_ChMaturing;
1214 }

References cfg_par_mature_threshold, Partridge_Base::m_age, pars_ChDeveloping, pars_ChMaturing, and CfgInt::value().

Referenced by EndStep().

◆ ChMaturing()

Partridge_State Partridge_Chick2::ChMaturing ( void  )
privatevirtual

State maturing.

Matures the Chick2 object into an Partridge_Male or Partridge_Female. Passes all useful information using an AdultPartridge_struct.

Reimplemented from Partridge_Chick.

Definition at line 1221 of file Partridge_All.cpp.

1222 {
1223  AdultPartridge_struct * aps;
1224  aps = new AdultPartridge_struct;
1225  aps->bx = m_born_x;
1226  aps->by = m_born_y;
1227  aps->x = m_Location_x;
1228  aps->y = m_Location_y;
1230  aps->m_covey = m_covey;
1231  if ( m_sex == true ) m_OurPopulationManager->CreateObjects( pob_Male, aps, 1 );
1232  else
1234  // object will be destroyed by death state
1235  // but must let Dad know anyway
1236  delete aps;
1237  // Set up the flags to destroy this object
1238  m_CurrentStateNo = -1;
1239  m_StepDone = true;
1240  m_covey->RemoveMember( this );
1242  // m_OurPopulationManager->AddMatured();
1243  return pars_Destroy;
1244 }

References Partridge_struct::bx, Partridge_struct::by, Partridge_Population_Manager::CreateObjects(), Partridge_struct::family_counter, Partridge_Base::m_born_x, Partridge_Base::m_born_y, Partridge_struct::m_covey, Partridge_Base::m_covey, TALMaSSObject::m_CurrentStateNo, Partridge_Base::m_family_counter, TAnimal::m_Location_x, TAnimal::m_Location_y, Partridge_Base::m_OurPopulationManager, Partridge_Chick::m_sex, TALMaSSObject::m_StepDone, Partridge_Covey::OnChickMature(), pars_Destroy, pob_Female, pob_Male, Partridge_Covey::RemoveMember(), Partridge_struct::x, and Partridge_struct::y.

Referenced by Step().

◆ DailyMortality()

bool Partridge_Chick2::DailyMortality ( void  )
virtual

Background mortality check.

Does the simple probability test against chance of daily mortality for non-specifically modelled mortalities.

Reimplemented from Partridge_Chick.

Definition at line 1179 of file Partridge_All.cpp.

1180 {
1181  double extramort=cfg_par_chick2_mortality.value();
1182  int today = m_OurLandscape->SupplyDayInYear();
1183  // Is it winter?
1184  if (( ( today >= October ) || ( today < April )) ) {
1185  if (m_OurPopulationManager->SupplyShouldFlock()) { // We are in the "Winter Period"
1186  if ( (g_rand_uni()) < (cfg_par_adult_mortalityWinter.value()*extramort) ) {
1187  return true;
1188  }
1189  } else {
1190  // Must test summer mort instead;
1191  if ( g_rand_uni() < (cfg_par_adult_mortalitySummer.value()*extramort )) {
1192  return true;
1193  }
1194  }
1195  }
1196  return false;
1197 }

References April, cfg_par_adult_mortalitySummer, cfg_par_adult_mortalityWinter, cfg_par_chick2_mortality, g_rand_uni, TAnimal::m_OurLandscape, Partridge_Base::m_OurPopulationManager, October, Landscape::SupplyDayInYear(), Partridge_Population_Manager::SupplyShouldFlock(), and CfgFloat::value().

Referenced by BeginStep().

◆ EndStep()

void Partridge_Chick2::EndStep ( void  )
virtual

Chick2 EndSte[.

EndStep does development and dying.

Reimplemented from Partridge_Chick.

Definition at line 1302 of file Partridge_All.cpp.

1303 {
1304  if ( m_CurrentStateNo == -1 )
1305  return;
1306 
1307  switch ( m_state )
1308  {
1309  case pars_Initiation:
1310  case pars_ChMaturing:
1311  break;
1312  case pars_ChDying:
1313  ChDying();
1314  break;
1315  case pars_ChDeveloping:
1316  m_state = ChDeveloping();
1317  break;
1318  default:
1319  m_OurLandscape->Warn( "Partridge_Chick::EndStep - unknown pars type", NULL );
1320  exit( 1 );
1321  }
1322 }

References ChDeveloping(), Partridge_Chick::ChDying(), TALMaSSObject::m_CurrentStateNo, TAnimal::m_OurLandscape, Partridge_Base::m_state, pars_ChDeveloping, pars_ChDying, pars_ChMaturing, pars_Initiation, and Landscape::Warn().

◆ OnFarmEvent()

bool Partridge_Chick2::OnFarmEvent ( FarmToDo  event)
virtual

Management event handler.

Check and respond to farm events either using config variables for cutting or direct inline values.

Reimplemented from Partridge_Chick.

Definition at line 1044 of file Partridge_All.cpp.

1045 {
1046  switch ( event )
1047  {
1048  case sleep_all_day:
1049  break;
1050  case autumn_plough:
1051  break;
1052  case autumn_harrow:
1053  break;
1054  case autumn_roll:
1055  break;
1056  case autumn_sow:
1057  break;
1058  case winter_plough:
1059  break;
1060  case deep_ploughing:
1061  break;
1062  case spring_plough:
1063  break;
1064  case spring_harrow:
1065  break;
1066  case spring_roll:
1067  break;
1068  case spring_sow:
1069  break;
1070  case fp_npks:
1071  break;
1072  case fp_npk:
1073  break;
1074  case fp_pk:
1075  break;
1076  case fp_liquidNH3:
1077  break;
1078  case fp_slurry:
1079  break;
1080  case fp_manganesesulphate:
1081  break;
1082  case fp_manure:
1083  break;
1084  case fp_greenmanure:
1085  break;
1086  case fp_sludge:
1087  break;
1088  case fa_npk:
1089  break;
1090  case fa_pk:
1091  break;
1092  case fa_slurry:
1093  break;
1094  case fa_ammoniumsulphate:
1095  break;
1096  case fa_manure:
1097  break;
1098  case fa_greenmanure:
1099  break;
1100  case fa_sludge:
1101  break;
1102  case glyphosate:
1103  case herbicide_treat:
1104  break;
1105  case growth_regulator:
1106  break;
1107  case fungicide_treat:
1108  break;
1109  case syninsecticide_treat:
1110  case insecticide_treat:
1111  case product_treat:
1112  break;
1113  case molluscicide:
1114  break;
1115  case row_cultivation:
1116  break;
1117  case strigling:
1118  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1119  break;
1120  case hilling_up:
1121  break;
1122  case water:
1123  break;
1124  case swathing:
1125  break;
1126  case harvest:
1127  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1128  break;
1129  case cattle_out:
1130  break;
1131  case cattle_out_low:
1132  break;
1133  case cut_to_hay:
1134  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1135  break;
1136  case cut_to_silage:
1137  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1138  break;
1139  case straw_chopping:
1140  break;
1141  case hay_turning:
1142  break;
1143  case hay_bailing:
1144  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1145  break;
1146  case stubble_harrowing:
1147  break;
1149  break;
1150  case burn_straw_stubble:
1151  break;
1152  case mow:
1153  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1154  break;
1155  case cut_weeds:
1156  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1157  break;
1158  case pigs_out:
1159  break;
1160  case strigling_sow:
1161  if ( g_rand_uni() < 0.01 ) Dying();
1162  break;
1163  default:
1164  m_OurLandscape->Warn( "Skylark_Clutch::OnFarmEvent(): Unknown event type:", m_OurLandscape->EventtypeToString( event ) );
1165  exit( 1 );
1166  }
1167  // Must incorporate a test here in case the animal is dead - killing it twice
1168  // can be a bad idea
1169  if ( m_state == pars_Destroy ) return true;
1170  else
1171  return false;
1172 }

References autumn_harrow, autumn_or_spring_plough, autumn_plough, autumn_roll, autumn_sow, burn_straw_stubble, cattle_out, cattle_out_low, cfg_par_ad_cut, cut_to_hay, cut_to_silage, cut_weeds, deep_ploughing, Partridge_Chick::Dying(), Landscape::EventtypeToString(), fa_ammoniumsulphate, fa_greenmanure, fa_manure, fa_npk, fa_pk, fa_sludge, fa_slurry, fp_greenmanure, fp_liquidNH3, fp_manganesesulphate, fp_manure, fp_npk, fp_npks, fp_pk, fp_sludge, fp_slurry, fungicide_treat, g_rand_uni, glyphosate, growth_regulator, harvest, hay_bailing, hay_turning, herbicide_treat, hilling_up, insecticide_treat, TAnimal::m_OurLandscape, Partridge_Base::m_state, molluscicide, mow, pars_Destroy, pigs_out, product_treat, row_cultivation, sleep_all_day, spring_harrow, spring_plough, spring_roll, spring_sow, straw_chopping, strigling, strigling_sow, stubble_harrowing, swathing, syninsecticide_treat, CfgFloat::value(), Landscape::Warn(), water, and winter_plough.

◆ Step()

void Partridge_Chick2::Step ( void  )
virtual

Chick2Step.

Step only deals with maturing.

Reimplemented from Partridge_Chick.

Definition at line 1273 of file Partridge_All.cpp.

1274 {
1275  if ( m_CurrentStateNo == -1 || m_StepDone )
1276  return;
1277 
1278  switch ( m_state )
1279  {
1280  case pars_Initiation:
1282  case pars_ChDeveloping:
1283  case pars_ChDying:
1284  m_StepDone = true;
1285  break;
1286  case pars_ChMaturing:
1287  ChMaturing();
1288  m_StepDone = true;
1289  break;
1290 
1291  default:
1292  m_OurLandscape->Warn( "Partridge_Chick2::Step - unknown pars type", NULL );
1293  exit( 1 );
1294  }
1295 }

References ChMaturing(), TALMaSSObject::m_CurrentStateNo, TAnimal::m_OurLandscape, Partridge_Base::m_state, TALMaSSObject::m_StepDone, pars_ChDeveloping, pars_ChDying, pars_ChMaturing, pars_Initiation, and Landscape::Warn().


The documentation for this class was generated from the following files:
insecticide_treat
Definition: treatment.h:74
Partridge_Base::m_object_type
Partridge_Object m_object_type
Type of pob object this is.
Definition: Partridge_All.h:418
g_MaxWalk
int g_MaxWalk[200]
Definition: Partridge_Population_Manager.cpp:66
Partridge_Covey::RemoveMember
int RemoveMember(Partridge_Base *a_former_member)
Remove a member from the covey.
Definition: Partridge_Covey.cpp:1664
strigling
Definition: treatment.h:77
Partridge_Base::m_family_counter
int m_family_counter
Family ID.
Definition: Partridge_All.h:408
hay_bailing
Definition: treatment.h:89
autumn_roll
Definition: treatment.h:38
Partridge_Chick::Partridge_Chick
Partridge_Chick(int a_x, int a_y, Partridge_Female *a_mother, Partridge_Covey *a_flock, Landscape *a_map, bool a_sex, int a_family_counter, Partridge_Population_Manager *a_manager)
Constructor.
Definition: Partridge_All.cpp:663
Partridge_struct::family_counter
int family_counter
Definition: Partridge_All.h:350
Partridge_Base::m_state
Partridge_State m_state
Current behavioural state.
Definition: Partridge_All.h:422
Partridge_Chick::m_sex
bool m_sex
Sex.
Definition: Partridge_All.h:590
cfg_par_ad_cut
static CfgFloat cfg_par_ad_cut("PAR_AD_CUT_MORT", CFG_CUSTOM, 0.01)
Adult % mortality on cutting.
fa_ammoniumsulphate
Definition: treatment.h:65
autumn_harrow
Definition: treatment.h:37
autumn_sow
Definition: treatment.h:41
glyphosate
Definition: treatment.h:102
cfg_par_adult_mortalityWinter
static CfgFloat cfg_par_adult_mortalityWinter("PAR_ADULT_MORTALITYWINTER", CFG_CUSTOM, 0.0217)
Adults - daily probability of non-explicitly modelled mortality in Winter.
harvest
Definition: treatment.h:82
April
const int April
Definition: landscape.h:39
Partridge_Chick::ChDying
void ChDying(void)
Chick Dying.
Definition: Partridge_All.cpp:989
TAnimal::m_OurLandscape
Landscape * m_OurLandscape
Definition: populationmanager.h:229
fp_slurry
Definition: treatment.h:52
Partridge_Covey::RemoveExtraChick
void RemoveExtraChick()
Decrement the chick number.
Definition: Partridge_Covey.h:466
fa_sludge
Definition: treatment.h:68
fp_greenmanure
Definition: treatment.h:56
Partridge_Covey::MoveDistance
void MoveDistance(int a_max_distance, int a_step_size, double a_food_density_needed)
Entry point for movement.
Definition: Partridge_Covey.cpp:652
hay_turning
Definition: treatment.h:88
Partridge_struct::m_covey
Partridge_Covey * m_covey
Definition: Partridge_All.h:349
pars_ChDying
Definition: Partridge_All.h:276
water
Definition: treatment.h:80
fp_liquidNH3
Definition: treatment.h:51
Partridge_struct::x
int x
Definition: Partridge_All.h:344
molluscicide
Definition: treatment.h:75
burn_straw_stubble
Definition: treatment.h:92
Partridge_Chick::Dying
virtual void Dying()
Generic dying handler.
Definition: Partridge_All.h:607
cattle_out_low
Definition: treatment.h:100
Partridge_Population_Manager::CreateObjects
void CreateObjects(int ob_type, Partridge_struct *data, int number)
Definition: Partridge_Population_Manager.cpp:368
pars_ChDeveloping
Definition: Partridge_All.h:276
fp_pk
Definition: treatment.h:50
fa_npk
Definition: treatment.h:61
cattle_out
Definition: treatment.h:83
October
const int October
Definition: landscape.h:45
fp_npk
Definition: treatment.h:49
stubble_harrowing
Definition: treatment.h:90
autumn_plough
Definition: treatment.h:34
fp_manure
Definition: treatment.h:55
TAnimal::m_Location_y
int m_Location_y
Definition: populationmanager.h:228
strigling_sow
Definition: treatment.h:95
Partridge_Chick2::ChDeveloping
virtual Partridge_State ChDeveloping(void)
State developing.
Definition: Partridge_All.cpp:1205
pars_ChMaturing
Definition: Partridge_All.h:276
pob_Chick2
Definition: Partridge_All.h:297
Partridge_Base::m_born_x
int m_born_x
x-coord of birth
Definition: Partridge_All.h:412
Partridge_Base::m_signal
int m_signal
Used to pass information to outputs.
Definition: Partridge_All.h:404
winter_plough
Definition: treatment.h:42
Partridge_struct::y
int y
Definition: Partridge_All.h:345
fp_sludge
Definition: treatment.h:57
AdultPartridge_struct
Struct to pass adult partridge information.
Definition: Partridge_All.h:386
Partridge_Base::m_age
int m_age
Age in days.
Definition: Partridge_All.h:410
straw_chopping
Definition: treatment.h:87
fungicide_treat
Definition: treatment.h:73
deep_ploughing
Definition: treatment.h:43
Landscape::SupplyDayInYear
int SupplyDayInYear(void)
Definition: landscape.h:1596
pars_Destroy
Definition: Partridge_All.h:287
cfg_par_adult_mortalitySummer
static CfgFloat cfg_par_adult_mortalitySummer("PAR_ADULT_MORTALITYSUMMER", CFG_CUSTOM, 0.0001)
Adults - daily probability of non-explicitly modelled mortality in Summer.
mow
Definition: treatment.h:93
fa_pk
Definition: treatment.h:62
TALMaSSObject::m_StepDone
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: populationmanager.h:118
spring_harrow
Definition: treatment.h:45
Partridge_Chick2::DailyMortality
virtual bool DailyMortality()
Background mortality check.
Definition: Partridge_All.cpp:1179
CfgFloat::value
double value(void)
Definition: configurator.h:118
Partridge_Chick2::ChMaturing
virtual Partridge_State ChMaturing(void)
State maturing.
Definition: Partridge_All.cpp:1221
Partridge_Covey::SetChickAge
void SetChickAge(int age)
Set chick age.
Definition: Partridge_Covey.h:481
hilling_up
Definition: treatment.h:79
Landscape::EventtypeToString
std::string EventtypeToString(int a_event)
Definition: Landscape.cpp:3918
Partridge_Base::m_OurPopulationManager
Partridge_Population_Manager * m_OurPopulationManager
Pointer to the population manager.
Definition: Partridge_All.h:430
syninsecticide_treat
Definition: treatment.h:99
fa_manure
Definition: treatment.h:66
fp_npks
Definition: treatment.h:48
row_cultivation
Definition: treatment.h:76
pars_Initiation
Definition: Partridge_All.h:267
cfg_par_chick2_mortality
static CfgFloat cfg_par_chick2_mortality("PAR_CHICK_TWO_MORTALITY", CFG_CUSTOM, 1.0)
Chick2 - scaler applied to adult mortalities.
Partridge_struct::by
int by
Definition: Partridge_All.h:347
spring_plough
Definition: treatment.h:44
fa_greenmanure
Definition: treatment.h:67
Partridge_Base::m_born_y
int m_born_y
y-coord of birth
Definition: Partridge_All.h:414
TAnimal::CheckManagement
void CheckManagement(void)
Definition: PopulationManager.cpp:1404
Partridge_struct::bx
int bx
Definition: Partridge_All.h:346
spring_roll
Definition: treatment.h:46
cut_weeds
Definition: treatment.h:94
CfgInt::value
int value(void)
Definition: configurator.h:98
fp_manganesesulphate
Definition: treatment.h:53
herbicide_treat
Definition: treatment.h:71
Partridge_Base::m_covey
Partridge_Covey * m_covey
Pointer to the covey.
Definition: Partridge_All.h:420
pob_Male
Definition: Partridge_All.h:297
growth_regulator
Definition: treatment.h:72
cut_to_silage
Definition: treatment.h:86
product_treat
Definition: treatment.h:101
TALMaSSObject::m_CurrentStateNo
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: populationmanager.h:116
pigs_out
Definition: treatment.h:84
cut_to_hay
Definition: treatment.h:85
spring_sow
Definition: treatment.h:47
Landscape::Warn
void Warn(std::string a_msg1, std::string a_msg2)
Definition: landscape.h:1579
g_rand_uni
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
sleep_all_day
Definition: treatment.h:33
Partridge_Population_Manager::SupplyShouldFlock
bool SupplyShouldFlock()
Definition: Partridge_Population_Manager.h:286
TAnimal::m_Location_x
int m_Location_x
Definition: populationmanager.h:225
autumn_or_spring_plough
Definition: treatment.h:91
Partridge_Covey::OnChickMature
void OnChickMature()
Remove a matured chick.
Definition: Partridge_Covey.cpp:2460
pob_Female
Definition: Partridge_All.h:297
cfg_par_mature_threshold
CfgInt cfg_par_mature_threshold("PAR_MATURE_THRESHOLD", CFG_CUSTOM, 84)
Age at maturing in days.
fa_slurry
Definition: treatment.h:63
swathing
Definition: treatment.h:81