ALMaSS Vole ODDox
1.1
The vole model description following ODdox protocol
|
Base class for voles - all vole objects are descended from this class. More...
#include <vole_all.h>
Public Member Functions | |
Vole_Base (struct_Vole_Adult *p_aVoleStruct) | |
Constructor for Vole_Base. More... | |
virtual | ~Vole_Base () |
virtual void | Init (struct_Vole_Adult *p_aVoleStruct) |
virtual void | ReInit (struct_Vole_Adult *p_aVoleStruct) |
virtual void | BeginStep () |
BeingStep behaviour - must be implemented in descendent classes. More... | |
virtual void | Step () |
Step behaviour - must be implemented in descendent classes. More... | |
virtual void | EndStep () |
All voles age at the end of the day. More... | |
void | st_Dying () |
All voles end here on death. More... | |
void | SetBreedingSeason (bool a_flag) |
Set Breeding Season flag. More... | |
void | SetWeight (double W) |
void | Setm_Mature () |
void | Set_BirthYear (int BirthYear) |
void | Set_MotherId (unsigned MotherIdNo) |
void | Set_FatherId (unsigned FatherIdNo) |
void | Set_NoYoungTot (int a_NoOfYoung) |
void | Set_XBorn (int a_Location_x) |
void | Set_YBorn (int a_Location_y) |
void | Set_ElemBorn (int a_Location_x, int a_Location_y) |
void | Set_VegBorn (int a_Location_x, int a_Location_y) |
void | Set_PolyRefBorn (int a_Location_x, int a_Location_y) |
void | Set_Age (int Age) |
virtual int | WhatState () |
bool | SupplyBornLastYear () |
Were we born this year? More... | |
bool | SupplyTerritorial () |
int | SupplyFatherId () |
int | SupplyMotherId () |
bool | SupplySex () |
int | SupplyBirthYear () |
int | SupplyTotNoYoung () |
int | SupplyXBorn () |
int | SupplyYBorn () |
int | SupplyPolyRefBorn () |
int | SupplyElemBorn () |
TTypesOfLandscapeElement | SupplyElemType () |
int | SupplyVegBorn () |
int | SupplyTerrRange () |
double | SupplyWeight () |
int | SupplyIDNo () |
bool | SupplyMature () |
int | SupplyDeathCause () |
unsigned | SupplyAge () |
unsigned | SupplyX () |
unsigned | SupplyY () |
bool | SupplyInTrap () |
InTrapPosition | SupplyTrapPosition () |
void | SetFree () |
int | SupplyHomoZyg () |
int | SupplyHeteroZyg () |
int | SupplyAllele (int locus, int allele) |
uint32 | SupplyMyAllele (int i, int j) |
int | GetGeneticFlag () |
int | GetDirectFlag () |
void | SetGeneticFlag () |
void | SetDirectFlag () |
void | UnsetGeneticFlag () |
void | UnsetDirectFlag () |
GeneticMaterial | SupplyGenes () |
virtual void | OnKilled () |
virtual bool | MortalityTest () |
Do a mortality test. More... | |
void | CopyMyself (VoleObject a_vole) |
Duplicates a vole. More... | |
void | SetFertile (bool f) |
Set the male vole fertility. More... | |
bool | GetFertile () |
Get the male vole fertility. 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 void | Dying () |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
virtual bool | OnFarmEvent (FarmToDo) |
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... | |
Public Attributes | |
TTypeOfVoleState | CurrentVState |
Vole_Population_Manager * | m_OurPopulation |
Protected Member Functions | |
virtual void | RodenticideIngestion (void) |
double | CalculateCarryingCapacity (int x, int y, int a_ddep) |
int | MoveQuality (int p_x, int p_y) |
Test a location for quality while moving. More... | |
void | MoveTo (int p_Vector, int p_Distance, int iterations) |
Movement. More... | |
void | DoWalking (int p_Distance, int &p_Vector, int &vx, int &vy) |
Walking. More... | |
void | DoWalkingCorrect (int p_Distance, int &p_Vector, int &vx, int &vy) |
Walking where there is a danger of stepping off the world. More... | |
void | Escape (int p_Vector, int p_Distance) |
Dispersal - directed movement. More... | |
void | CheckTraps () |
virtual void | SetLocation () |
virtual void | FreeLocation () |
virtual bool | GetLocation (int, int) |
Protected Member Functions inherited from TAnimal | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
Protected Attributes | |
int | m_BirthYear |
bool | m_BornLastYear |
A flag set if the female was born the year before. More... | |
unsigned int | m_MinTerrRange |
unsigned | m_MotherId |
unsigned | m_FatherId |
int | m_Death |
int | m_TerrRange |
bool | m_Sex |
bool | m_Mature |
int | m_Age |
int | m_XBorn |
int | m_YBorn |
int | m_PolyRefBorn |
int | m_ElemBorn |
int | m_VegBorn |
int | m_LifeSpan |
double | m_Weight |
bool | m_fertile |
Flag indicating the fertility state (true means fertile) More... | |
int | m_NoOfYoungTotal |
int | m_DispVector |
bool | m_Have_Territory |
int | m_Reserves |
unsigned | IDNo |
int | SimH |
int | SimW |
GeneticMaterial | m_MyGenes |
InTrapPosition | m_intrappos |
Protected Attributes inherited from TAnimal | |
int | m_Location_x |
int | m_Location_y |
Landscape * | m_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... | |
Static Protected Attributes | |
static unsigned int | m_MaxMaleTerritorySize = 0 |
static unsigned int | m_MaxFemaleTerritorySize = 0 |
static unsigned int | m_MinMaleTerritorySize = 0 |
static unsigned int | m_MinFemaleTerritorySize = 0 |
static double | m_MinFVoleHabQual = 0 |
static double | m_MinJMVoleHabQual = 0 |
static double | m_MinMVoleHabQual = 0 |
static double | m_MaleTerritoryRangeSlope = 0 |
static double | m_FemaleTerritoryRangeSlope = 0 |
static double | m_FHabQualThreshold3 |
static double | m_FHabQualThreshold2 |
static double | m_FHabQualThreshold1 |
static double | m_MHabQualThreshold3 |
static double | m_MHabQualThreshold2 |
static double | m_MHabQualThreshold1 |
static bool | m_BreedingSeason = false |
Base class for voles - all vole objects are descended from this class.
Definition at line 152 of file vole_all.h.
Vole_Base::Vole_Base | ( | struct_Vole_Adult * | p_aVoleStruct | ) |
|
virtual |
Definition at line 304 of file Vole_all.cpp.
|
inlinevirtual |
BeingStep behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Vole_JuvenileFemale, and Vole_JuvenileMale.
Definition at line 290 of file vole_all.h.
|
protected |
Returns the sum of the qualities in the area covered by the territory (even if the vole does not have one)
Uses the algorithm for fast searching of square arrays with wrap around co-ordinates.
parameters = x,y starting coordinates top left
range = extent of the space to search
bottom left coordinate is therefore x+range, y+range
22/09/2000
For each polygon it gets the quality and multiplies by area of that polygon in the territory. This is summed for all polygons in the territoryto get overall quality. The value is then divided by the number of voles present less a threshold value.
Definition at line 384 of file Vole_all.cpp.
References Vole_Population_Manager::GetHabitatQuality(), TAnimal::m_Location_x, TAnimal::m_Location_y, m_MinTerrRange, TAnimal::m_OurLandscape, m_OurPopulation, m_TerrRange, SimH, SimW, Vole_Population_Manager::SupplyHowManyVoles(), and Landscape::SupplyPolyRefIndex().
Referenced by Vole_Male::CanFeed(), Vole_JuvenileMale::Dispersal(), Vole_Male::Dispersal(), Vole_JuvenileFemale::Dispersal(), Vole_JuvenileMale::st_Eval_n_Explore(), Vole_Male::st_Eval_n_Explore(), Vole_JuvenileFemale::st_Evaluate_n_Explore(), Vole_Female::st_Evaluate_n_Explore(), and Vole_Female::st_Special_Explore().
|
protected |
Definition at line 2800 of file Vole_all.cpp.
References Vole_Population_Manager::IsTrap(), AnimalPosition::m_EleType, InTrapPosition::m_inAtrap, m_intrappos, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, m_OurPopulation, m_TerrRange, AnimalPosition::m_VegType, AnimalPosition::m_x, AnimalPosition::m_y, Landscape::SupplyElementType(), Landscape::SupplyVegType(), and Landscape::SupplyYearNumber().
Referenced by Vole_JuvenileMale::st_Eval_n_Explore(), Vole_Male::st_Eval_n_Explore(), Vole_JuvenileFemale::st_Evaluate_n_Explore(), and Vole_Female::st_Evaluate_n_Explore().
void Vole_Base::CopyMyself | ( | VoleObject | a_vtype | ) |
Duplicates a vole.
Method used to duplicate a vole - most commonly used for experimental manipulation of populations e.g. return rate experiments
Definition at line 313 of file Vole_all.cpp.
References Vole_Population_Manager::CreateObjects(), struct_Vole_Adult::ElemBorn, struct_Vole_Adult::Genes, struct_Vole_Adult::L, struct_Vole_Adult::m_flag, TAnimal::m_Location_x, TAnimal::m_Location_y, m_MyGenes, TAnimal::m_OurLandscape, m_OurPopulation, struct_Vole_Adult::PolyRefBorn, GeneticMaterial::Recombine(), Population_Manager::SimH, Population_Manager::SimW, Landscape::SupplyElementType(), Landscape::SupplyPolyRef(), Landscape::SupplyVegType(), struct_Vole_Adult::VegBorn, struct_Vole_Adult::VPM, struct_Vole_Adult::x, and struct_Vole_Adult::y.
Referenced by Vole_Population_Manager::Catastrophe().
|
protected |
Walking.
This method does the actual stepping - there is no look ahead here, so steps are taken one at a time based on the habitat type and vector given.
Definition at line 953 of file Vole_all.cpp.
References g_rand_uni, MoveQuality(), MoveToLessFavourable, Vector_x, and Vector_y.
Referenced by MoveTo().
|
protected |
Walking where there is a danger of stepping off the world.
This method does the actual stepping - there is no look ahead here, so steps are taken one at a time based on the habitat type and vector given.
This version corrects coords for wrap around. This is slower so is only called when necessary.
Definition at line 1041 of file Vole_all.cpp.
References g_rand_uni, MoveQuality(), MoveToLessFavourable, SimH, SimW, Vector_x, and Vector_y.
Referenced by MoveTo().
|
virtual |
All voles age at the end of the day.
Reimplemented from TAnimal.
Reimplemented in Vole_JuvenileFemale, Vole_Male, and Vole_JuvenileMale.
Definition at line 336 of file Vole_all.cpp.
References m_Age.
|
protected |
Dispersal - directed movement.
This works like MoveTo above, but with a rather more directed movement aimed at moving further from the start point.
Definition at line 1127 of file Vole_all.cpp.
References FreeLocation(), TAnimal::m_Location_x, TAnimal::m_Location_y, MoveQuality(), SetLocation(), SimH, SimW, Vector_x, and Vector_y.
|
inlineprotectedvirtual |
Reimplemented in Vole_JuvenileFemale, and Vole_JuvenileMale.
Definition at line 440 of file vole_all.h.
Referenced by Escape(), MoveTo(), and st_Dying().
|
inline |
Genetic functionality
Definition at line 392 of file vole_all.h.
References GeneticMaterial::GetDirectFlag(), and m_MyGenes.
Referenced by Vole_Population_Manager::GeneticsOutputFile(), and Vole_Population_Manager::ImpactedProbe().
|
inline |
Get the male vole fertility.
Primarily used in ecotoxicological simulations where toxic effects may render the vole sterile.
Definition at line 424 of file vole_all.h.
References m_fertile.
Referenced by Vole_Female::st_Mating().
|
inline |
Genetic functionality
Definition at line 390 of file vole_all.h.
References GeneticMaterial::GetGeneticFlag(), and m_MyGenes.
Referenced by Vole_Population_Manager::GeneticsOutputFile(), and Vole_Population_Manager::ImpactedProbe().
|
inlineprotectedvirtual |
Reimplemented in Vole_JuvenileFemale, and Vole_JuvenileMale.
Definition at line 441 of file vole_all.h.
Referenced by MoveTo().
|
virtual |
Definition at line 240 of file Vole_all.cpp.
References struct_Vole_Adult::BirthYear, cfg_MaxFemaleTerrSize(), cfg_MaxMaleTerrSize(), cfg_MaxStarvationDays(), cfg_MinFemaleTerritorySize(), cfg_MinMaleTerritorySize(), cfg_vole_habqualscaler(), cfg_vole_LifeMonths(), cfg_volepcidebiodegredrate(), CurrentVState, struct_Vole_Adult::FatherId, g_rand_uni, struct_Vole_Adult::Genes, IDNo, Vole_Population_Manager::IDNumber, struct_Vole_Adult::L, m_Age, m_BornLastYear, TALMaSSObject::m_CurrentStateNo, m_DispVector, m_FemaleTerritoryRangeSlope, m_fertile, m_Have_Territory, InTrapPosition::m_inAtrap, m_intrappos, m_LifeSpan, TAnimal::m_Location_x, TAnimal::m_Location_y, m_MaleTerritoryRangeSlope, m_Mature, m_MaxFemaleTerritorySize, m_MaxMaleTerritorySize, m_MinFemaleTerritorySize, m_MinFVoleHabQual, m_MinJMVoleHabQual, m_MinMaleTerritorySize, m_MinMVoleHabQual, m_MinTerrRange, m_MyGenes, m_NoOfYoungTotal, TAnimal::m_OurLandscape, m_OurPopulation, m_Reserves, m_TerrRange, m_Weight, MaxWeightF, MaxWeightM, MinReproWeightF, MinReproWeightM, struct_Vole_Adult::MotherId, Set_BirthYear(), Set_ElemBorn(), Set_FatherId(), Set_MotherId(), Set_PolyRefBorn(), Set_VegBorn(), Set_XBorn(), Set_YBorn(), SimH, Population_Manager::SimH, SimW, Population_Manager::SimW, tovs_InitialState, struct_Vole_Adult::VPM, struct_Vole_Adult::x, and struct_Vole_Adult::y.
Referenced by ReInit(), Vole_JuvenileMale::ReInit(), Vole_Male::ReInit(), Vole_JuvenileFemale::ReInit(), Vole_Female::ReInit(), and Vole_Base().
|
virtual |
Do a mortality test.
Takes both physiological lifespan and background mortality into account to determine whether the vole should die - repeated calls increase the risk of dying
Reimplemented in Vole_Male.
Definition at line 362 of file Vole_all.cpp.
References g_DailyMortChance, and g_rand_uni.
Referenced by Vole_JuvenileMale::BeginStep(), and Vole_JuvenileFemale::BeginStep().
|
protected |
Test a location for quality while moving.
Returns the quality of a patch of habitat at p_x,p_y.
Can't walk through another vole though - so test location first.
Definition at line 1207 of file Vole_all.cpp.
References TAnimal::m_OurLandscape, m_OurPopulation, Vole_Population_Manager::m_VoleMap, Landscape::SupplyElementTypeFromVector(), Landscape::SupplyGrazingPressureVector(), Landscape::SupplyJustMownVector(), Landscape::SupplyJustSprayedVector(), Landscape::SupplyPolyRefIndex(), Landscape::SupplyVegCoverVector(), Landscape::SupplyVegHeightVector(), Landscape::SupplyVegTypeVector(), tole_ActivePit, tole_AmenityGrass, tole_BareRock, tole_BeetleBank, tole_Building, tole_BuiltUpWithParkland, tole_Carpark, tole_Churchyard, tole_Coast, tole_ConiferousForest, tole_Copse, tole_DeciduousForest, tole_Fence, tole_Field, tole_FieldBoundary, tole_FishFarm, tole_Foobar, tole_Freshwater, tole_Garden, tole_Heath, tole_HedgeBank, tole_Hedges, tole_HeritageSite, tole_IndividualTree, tole_LargeRoad, tole_Marsh, tole_MetalledPath, tole_MixedForest, tole_MownGrass, tole_NaturalGrassDry, tole_NaturalGrassWet, tole_Orchard, tole_OrchardBand, tole_Parkland, tole_PermanentSetaside, tole_PermPasture, tole_PermPastureLowYield, tole_PermPastureTussocky, tole_PitDisused, tole_Pond, tole_Pylon, tole_Railway, tole_River, tole_RiversidePlants, tole_RiversideTrees, tole_RoadsideSlope, tole_RoadsideVerge, tole_Saltmarsh, tole_Saltwater, tole_SandDune, tole_Scrub, tole_SmallRoad, tole_StoneWall, tole_Stream, tole_Track, tole_UnsprayedFieldMargin, tole_UrbanNoVeg, tole_UrbanPark, tole_Vildtager, tole_Wasteland, tole_WindTurbine, tole_WoodyEnergyCrop, tole_YoungForest, tov_CloverGrassGrazed1, tov_CloverGrassGrazed2, tov_OCloverGrassGrazed1, tov_OCloverGrassGrazed2, tov_OCloverGrassSilage1, tov_OPermanentGrassGrazed, tov_PermanentGrassGrazed, and Landscape::Warn().
Referenced by DoWalking(), DoWalkingCorrect(), Escape(), and Vole_Male::st_Eval_n_Explore().
|
protected |
Movement.
Do an assessment of the quality of the voles territory, and move. This function does the same as the other CalcuateCarryingCapacity except that it alters the two values stand_x, stand_y to set them to be in the best polygon in the territory
Returns the mean of the qualities in the area covered by the territory (even if the vole does not have one)
Uses the algorithm for fast searching of square arrays with wrap around co-ordinates.
parameters = x,y starting coordinates top left
range = extent of the space to search
bottom left coordinate is therefore x+range, y+range
22/09/2000
For each polygon it gets the quality and multiplies by area of that polygon in the territory. This is summed for all polygons in the territory to get overall quality. This will alter m_Location_x & m_Location_y.
It will give a rather directed movement towards p_Vector.
Generally the vole will stay in the best habitat, but occasional mis-steps occur.
p_Vector gives the preferred direction (0-7), p_Distance is the number of steps.
Definition at line 907 of file Vole_all.cpp.
References DoWalking(), DoWalkingCorrect(), FreeLocation(), GetLocation(), TAnimal::m_Location_x, TAnimal::m_Location_y, SetLocation(), SimH, and SimW.
Referenced by Vole_JuvenileMale::Dispersal(), Vole_Male::Dispersal(), Vole_JuvenileFemale::Dispersal(), Vole_JuvenileMale::st_JuvenileExplore(), and Vole_Female::st_Special_Explore().
|
inlinevirtual |
Reimplemented in Vole_JuvenileFemale, and Vole_JuvenileMale.
Definition at line 404 of file vole_all.h.
|
virtual |
Reimplemented in Vole_Female, Vole_JuvenileFemale, Vole_Male, and Vole_JuvenileMale.
Definition at line 235 of file Vole_all.cpp.
References Init().
|
protectedvirtual |
Definition at line 3343 of file Vole_all.cpp.
References TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, and Landscape::SupplyRodenticide().
|
inline |
Set our age
Definition at line 329 of file vole_all.h.
References m_Age.
Referenced by Vole_Population_Manager::CreateObjects_Init().
|
inline |
Set year of birth
Definition at line 302 of file vole_all.h.
References m_BirthYear.
Referenced by Vole_Population_Manager::CreateObjects_Init(), and Init().
|
inline |
Set element type of birth location
Definition at line 315 of file vole_all.h.
References Landscape::BackTranslateEleTypes(), m_ElemBorn, TAnimal::m_OurLandscape, and Landscape::SupplyElementType().
Referenced by Init().
|
inline |
Set father ID
Definition at line 307 of file vole_all.h.
References m_FatherId.
Referenced by Init().
|
inline |
Set mother ID
Definition at line 305 of file vole_all.h.
References m_MotherId.
Referenced by Init().
|
inline |
Sets the number of young produced by the female
Definition at line 309 of file vole_all.h.
References m_NoOfYoungTotal.
|
inline |
Set polygonref of birth location
Definition at line 327 of file vole_all.h.
References TAnimal::m_OurLandscape, m_PolyRefBorn, and Landscape::SupplyPolyRef().
Referenced by Init().
|
inline |
Set vegetation type of birth location
Definition at line 321 of file vole_all.h.
References Landscape::BackTranslateVegTypes(), TAnimal::m_OurLandscape, m_VegBorn, and Landscape::SupplyVegType().
Referenced by Init().
|
inline |
Set x-coordinate of birth location
Definition at line 311 of file vole_all.h.
References m_XBorn.
Referenced by Init().
|
inline |
Set y-coordinate of birth location
Definition at line 313 of file vole_all.h.
References m_YBorn.
Referenced by Init().
|
inline |
|
inline |
Genetic functionality
Definition at line 396 of file vole_all.h.
References m_MyGenes, and GeneticMaterial::SetDirectFlag().
Referenced by Vole_Population_Manager::CreateObjects().
|
inline |
Set the male vole fertility.
Primarily used in ecotoxicological simulations where toxic effects may render the vole sterile.
Definition at line 414 of file vole_all.h.
References m_fertile.
Referenced by Vole_Population_Manager::CreateObjects(), and Vole_Population_Manager::CreateObjects_Init().
|
inline |
Release vole from trap
Definition at line 380 of file vole_all.h.
References InTrapPosition::m_inAtrap, and m_intrappos.
Referenced by Vole_Population_Manager::DoFirst().
|
inline |
Genetic functionality
Definition at line 394 of file vole_all.h.
References m_MyGenes, and GeneticMaterial::SetGeneticFlag().
Referenced by Vole_Population_Manager::CreateObjects().
|
inlineprotectedvirtual |
Reimplemented in Vole_JuvenileFemale, and Vole_JuvenileMale.
Definition at line 439 of file vole_all.h.
|
inline |
Become adult
Definition at line 300 of file vole_all.h.
References m_Mature.
Referenced by Vole_Population_Manager::CreateObjects_Init(), Vole_Female::st_BecomeReproductive(), Vole_Male::st_Eval_n_Explore(), and Vole_Male::Step().
|
inline |
Set our weight
Definition at line 298 of file vole_all.h.
References m_Weight.
Referenced by Vole_Population_Manager::CreateObjects_Init().
void Vole_Base::st_Dying | ( | ) |
All voles end here on death.
Called when a vole dies. Just removes itself from the map and sets a flag to destroy the object in the endStep
Definition at line 348 of file Vole_all.cpp.
References FreeLocation(), and TALMaSSObject::m_CurrentStateNo.
Referenced by Vole_JuvenileMale::EndStep(), Vole_Male::EndStep(), and Vole_JuvenileFemale::EndStep().
|
inlinevirtual |
Step behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Vole_Female, Vole_JuvenileFemale, Vole_Male, and Vole_JuvenileMale.
Definition at line 291 of file vole_all.h.
|
inline |
Tell our age
Definition at line 370 of file vole_all.h.
References m_Age.
Referenced by Vole_Population_Manager::DoFirst(), Vole_Population_Manager::GeneticsOutputFile(), Vole_Population_Manager::SupplyInOlderTerr(), Vole_Population_Manager::SupplyOlderFemales(), Vole_Population_Manager::TheAgeSexLocationProbe(), and Vole_Population_Manager::TheReallyBigOutputProbe().
|
inline |
Genetic functionality
Definition at line 386 of file vole_all.h.
References GeneticMaterial::GetAllele(), and m_MyGenes.
Referenced by Vole_Population_Manager::DoFirst(), and Vole_Population_Manager::GeneticsResultsOutput().
|
inline |
Tell our birth year
Definition at line 344 of file vole_all.h.
References m_BirthYear.
Referenced by Vole_Population_Manager::GeneticsOutputFile().
|
inline |
Were we born this year?
Definition at line 334 of file vole_all.h.
References m_BornLastYear.
Referenced by Vole_Population_Manager::TheSexRatiosProbe().
|
inline |
|
inline |
Tell our elementype at birth location
Definition at line 354 of file vole_all.h.
References m_ElemBorn.
Referenced by Vole_Population_Manager::GeneticsOutputFile().
|
inline |
Provide our current elementype
Definition at line 356 of file vole_all.h.
References TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, and Landscape::SupplyElementType().
|
inline |
|
inline |
Genetic functionality
Definition at line 402 of file vole_all.h.
References m_MyGenes.
Referenced by Vole_Female::st_Mating().
|
inline |
Genetic functionality
Definition at line 384 of file vole_all.h.
References GeneticMaterial::HeterozygosityCount(), and m_MyGenes.
|
inline |
Genetic functionality
Definition at line 382 of file vole_all.h.
References GeneticMaterial::HomozygosityCount(), and m_MyGenes.
|
inline |
Tell our ID number
Definition at line 364 of file vole_all.h.
References IDNo.
Referenced by Vole_Population_Manager::DoFirst(), Vole_Population_Manager::GeneticsOutputFile(), Vole_Female::st_Lactating(), and Vole_Female::st_Mating().
|
inline |
Are we in a trap?
Definition at line 376 of file vole_all.h.
References InTrapPosition::m_inAtrap, and m_intrappos.
Referenced by Vole_Population_Manager::DoFirst().
|
inline |
Tell if mature
Definition at line 366 of file vole_all.h.
References m_Mature.
Referenced by Vole_Population_Manager::GeneticsOutputFile(), and Vole_Population_Manager::TheSexRatiosProbe().
|
inline |
|
inline |
Definition at line 387 of file vole_all.h.
References GeneticMaterial::GetAllele(), and m_MyGenes.
Referenced by Vole_Population_Manager::GeneticsOutputFile(), Vole_Population_Manager::GetVoleAllele(), and Vole_Population_Manager::ResistanceOutput().
|
inline |
Tell our polygon ref at birth location
Definition at line 352 of file vole_all.h.
References m_PolyRefBorn.
Referenced by Vole_Population_Manager::GeneticsOutputFile().
|
inline |
Tell our sex
Definition at line 342 of file vole_all.h.
References m_Sex.
Referenced by Vole_Population_Manager::FindClosestFemale(), Vole_Population_Manager::FindClosestMale(), Vole_Population_Manager::FindWithinRadiusMale(), Vole_Population_Manager::GeneticsOutputFile(), Vole_Population_Manager::ListClosestFemales(), Vole_Population_Manager::ListClosestMales(), Vole_Population_Manager::SupplyCountFemales(), Vole_Population_Manager::SupplyInOlderTerr(), and Vole_Population_Manager::SupplyOlderFemales().
|
inline |
Tell whether we have a territory
Definition at line 336 of file vole_all.h.
References m_Have_Territory.
Referenced by Vole_Population_Manager::DoFirst(), Vole_Population_Manager::FindClosestFemale(), Vole_Population_Manager::FindClosestMale(), Vole_Population_Manager::FindOutsideRadiusMale(), Vole_Population_Manager::FindWithinRadiusMale(), Vole_Population_Manager::GeneticsOutputFile(), Vole_Population_Manager::ListClosestFemales(), Vole_Population_Manager::ListClosestMales(), Vole_Population_Manager::SupplyCountFemales(), Vole_Population_Manager::SupplyInOlderTerr(), and Vole_Population_Manager::TheReallyBigOutputProbe().
|
inline |
|
inline |
Tell our number of young produced
Definition at line 346 of file vole_all.h.
References m_NoOfYoungTotal.
|
inline |
Get the trap location
Definition at line 378 of file vole_all.h.
References m_intrappos.
Referenced by Vole_Population_Manager::DoFirst().
|
inline |
Tell our vegetation type at birth location
Definition at line 358 of file vole_all.h.
References m_VegBorn.
Referenced by Vole_Population_Manager::GeneticsOutputFile().
|
inline |
|
inline |
Tell our x coordinate
Definition at line 372 of file vole_all.h.
References TAnimal::m_Location_x.
Referenced by Vole_Population_Manager::SendMessage().
|
inline |
Tell our x-coordinate at birth
Definition at line 348 of file vole_all.h.
References m_XBorn.
Referenced by Vole_Population_Manager::DoFirst(), and Vole_Population_Manager::GeneticsOutputFile().
|
inline |
Tell our y coordinate
Definition at line 374 of file vole_all.h.
References TAnimal::m_Location_y.
Referenced by Vole_Population_Manager::SendMessage().
|
inline |
Tell our x-coordinate at birth
Definition at line 350 of file vole_all.h.
References m_YBorn.
Referenced by Vole_Population_Manager::DoFirst(), and Vole_Population_Manager::GeneticsOutputFile().
|
inline |
Genetic functionality
Definition at line 400 of file vole_all.h.
References m_MyGenes, and GeneticMaterial::UnsetDirectFlag().
Referenced by Vole_Population_Manager::CreateObjects().
|
inline |
Genetic functionality
Definition at line 398 of file vole_all.h.
References m_MyGenes, and GeneticMaterial::UnsetGeneticFlag().
Referenced by Vole_Population_Manager::CreateObjects().
|
inlinevirtual |
Get our current vole state
Reimplemented from TAnimal.
Definition at line 332 of file vole_all.h.
References CurrentVState.
TTypeOfVoleState Vole_Base::CurrentVState |
Our current behavioural state
Definition at line 407 of file vole_all.h.
Referenced by Vole_JuvenileMale::BeginStep(), Vole_JuvenileFemale::BeginStep(), Vole_Population_Manager::Catastrophe(), Vole_JuvenileMale::EndStep(), Vole_Male::EndStep(), Vole_JuvenileFemale::EndStep(), Init(), Vole_JuvenileMale::OnFarmEvent(), Vole_JuvenileFemale::OnFarmEvent(), Vole_JuvenileMale::OnKilled(), Vole_JuvenileFemale::OnKilled(), Vole_JuvenileMale::st_BecomeSubAdult(), Vole_JuvenileFemale::st_BecomeSubAdult(), Vole_Male::st_Eval_n_Explore(), Vole_JuvenileMale::Step(), Vole_Male::Step(), Vole_JuvenileFemale::Step(), Vole_Female::Step(), and WhatState().
|
protected |
Their individual ID number
Definition at line 208 of file vole_all.h.
Referenced by Init(), and SupplyIDNo().
|
protected |
Their age in days
Definition at line 178 of file vole_all.h.
Referenced by Vole_Male::Dispersal(), EndStep(), Vole_JuvenileMale::EndStep(), Vole_Male::EndStep(), Vole_JuvenileFemale::EndStep(), Init(), Vole_JuvenileMale::ReInit(), Vole_Male::ReInit(), Vole_JuvenileFemale::ReInit(), Vole_Female::ReInit(), Set_Age(), Vole_Female::st_BecomeReproductive(), Vole_JuvenileMale::st_BecomeSubAdult(), Vole_JuvenileFemale::st_BecomeSubAdult(), Vole_JuvenileMale::st_Eval_n_Explore(), Vole_Male::st_Eval_n_Explore(), Vole_Female::st_Special_Explore(), Vole_JuvenileFemale::Step(), SupplyAge(), Vole_Female::Vole_Female(), Vole_JuvenileFemale::Vole_JuvenileFemale(), Vole_JuvenileMale::Vole_JuvenileMale(), and Vole_Male::Vole_Male().
|
protected |
The year of birth
Definition at line 157 of file vole_all.h.
Referenced by Vole_Male::ReInit(), Set_BirthYear(), SupplyBirthYear(), and Vole_Male::Vole_Male().
|
protected |
A flag set if the female was born the year before.
Definition at line 162 of file vole_all.h.
Referenced by Vole_JuvenileMale::EndStep(), Vole_Male::EndStep(), Vole_JuvenileFemale::EndStep(), Init(), Vole_JuvenileFemale::ReInit(), Vole_Male::st_Eval_n_Explore(), Vole_Female::st_GiveBirth(), SupplyBornLastYear(), and Vole_JuvenileFemale::Vole_JuvenileFemale().
|
staticprotected |
Local storage for whether it is breeding season
Definition at line 247 of file vole_all.h.
Referenced by Vole_Male::Dispersal(), SetBreedingSeason(), Vole_Female::st_BecomeReproductive(), Vole_Male::st_Eval_n_Explore(), and Vole_Female::st_Mating().
|
protected |
|
protected |
The current dispersal direction
Definition at line 202 of file vole_all.h.
Referenced by Vole_JuvenileMale::Dispersal(), Vole_Male::Dispersal(), Vole_JuvenileFemale::Dispersal(), Init(), Vole_JuvenileMale::st_Eval_n_Explore(), Vole_Male::st_Eval_n_Explore(), Vole_JuvenileFemale::st_Evaluate_n_Explore(), and Vole_Female::st_Evaluate_n_Explore().
|
protected |
The element type at at birth location
Definition at line 186 of file vole_all.h.
Referenced by Set_ElemBorn(), and SupplyElemBorn().
|
protected |
The id number of the fater
Definition at line 168 of file vole_all.h.
Referenced by Set_FatherId(), Vole_JuvenileMale::st_BecomeSubAdult(), Vole_JuvenileFemale::st_BecomeSubAdult(), and SupplyFatherId().
|
staticprotected |
only used to create an increasing territory size with age
Definition at line 232 of file vole_all.h.
Referenced by Vole_JuvenileFemale::EndStep(), and Init().
|
protected |
Flag indicating the fertility state (true means fertile)
Definition at line 194 of file vole_all.h.
Referenced by GetFertile(), Init(), and SetFertile().
|
staticprotected |
Habitat is v.bad below this
Definition at line 239 of file vole_all.h.
|
staticprotected |
Habitat is OK above this
Definition at line 237 of file vole_all.h.
|
staticprotected |
Habitat is v.good above this
Definition at line 235 of file vole_all.h.
|
protected |
Do they have a terriory?
Definition at line 204 of file vole_all.h.
Referenced by Vole_Male::Dispersal(), Vole_Male::EndStep(), Init(), Vole_Male::MortalityTest(), Vole_Female::st_BecomeReproductive(), Vole_Male::st_Eval_n_Explore(), Vole_Female::st_Evaluate_n_Explore(), Vole_Female::st_GiveBirth(), Vole_Female::st_Special_Explore(), and SupplyTerritorial().
|
protected |
Definition at line 214 of file vole_all.h.
Referenced by CheckTraps(), Init(), SetFree(), SupplyInTrap(), and SupplyTrapPosition().
|
protected |
Their lifespan remaining (unless killed by external events)
Definition at line 190 of file vole_all.h.
Referenced by Vole_JuvenileMale::BeginStep(), Vole_JuvenileFemale::BeginStep(), and Init().
|
staticprotected |
only used to create an increasing territory size with age
Definition at line 230 of file vole_all.h.
Referenced by Vole_Male::DetermineTerritorySize(), and Init().
|
protected |
Whether they are mature or not
Definition at line 176 of file vole_all.h.
Referenced by Vole_Male::Dispersal(), Vole_Male::EndStep(), Vole_JuvenileFemale::EndStep(), Init(), Setm_Mature(), Vole_Male::st_Eval_n_Explore(), Vole_Female::st_ReproBehaviour(), Vole_Female::st_Special_Explore(), and SupplyMature().
|
staticprotected |
|
staticprotected |
Maximum territory size male
Definition at line 216 of file vole_all.h.
Referenced by Init(), and Vole_Female::st_Mating().
|
staticprotected |
Habitat is v.bad below this
Definition at line 245 of file vole_all.h.
|
staticprotected |
Habitat is OK above this
Definition at line 243 of file vole_all.h.
|
staticprotected |
Habitat is v.good above this
Definition at line 241 of file vole_all.h.
|
staticprotected |
Minimum territory size female
Definition at line 222 of file vole_all.h.
Referenced by Vole_JuvenileFemale::EndStep(), Init(), Vole_JuvenileFemale::ReInit(), Vole_Female::ReInit(), Vole_Female::Vole_Female(), and Vole_JuvenileFemale::Vole_JuvenileFemale().
|
staticprotected |
Minimum acceptable habitat quality - assumes that minimum hab qual for survival is 2 * min female terr size
Definition at line 224 of file vole_all.h.
Referenced by Init(), Vole_Male::st_Eval_n_Explore(), Vole_JuvenileFemale::st_Evaluate_n_Explore(), and Vole_Female::st_Evaluate_n_Explore().
|
staticprotected |
Minimum acceptable habitat juvenile male quality - assumes that minimum hab qual for survival is 2 * min male terr size
Definition at line 226 of file vole_all.h.
Referenced by Init(), and Vole_JuvenileMale::st_Eval_n_Explore().
|
staticprotected |
Minimum territory size male
Definition at line 220 of file vole_all.h.
Referenced by Vole_Male::DetermineTerritorySize(), Init(), Vole_JuvenileMale::ReInit(), Vole_Male::ReInit(), Vole_JuvenileMale::Vole_JuvenileMale(), and Vole_Male::Vole_Male().
|
staticprotected |
Minimum acceptable habitat quality - assumes that minimum hab qual for survival is 2 * min female terr size
Definition at line 228 of file vole_all.h.
Referenced by Vole_Male::CanFeed(), Vole_Male::Dispersal(), and Init().
|
protected |
The minimum territory range
Definition at line 164 of file vole_all.h.
Referenced by CalculateCarryingCapacity(), Init(), Vole_JuvenileMale::ReInit(), Vole_Male::ReInit(), Vole_JuvenileFemale::ReInit(), Vole_Female::ReInit(), Vole_Male::st_Infanticide(), Vole_Female::Vole_Female(), Vole_JuvenileFemale::Vole_JuvenileFemale(), Vole_JuvenileMale::Vole_JuvenileMale(), and Vole_Male::Vole_Male().
|
protected |
The id number of the mother
Definition at line 166 of file vole_all.h.
Referenced by Set_MotherId(), Vole_JuvenileMale::st_BecomeSubAdult(), Vole_JuvenileFemale::st_BecomeSubAdult(), and SupplyMotherId().
|
protected |
Their genes
Definition at line 213 of file vole_all.h.
Referenced by CopyMyself(), GetDirectFlag(), GetGeneticFlag(), Init(), SetDirectFlag(), SetGeneticFlag(), Vole_JuvenileMale::st_BecomeSubAdult(), Vole_JuvenileFemale::st_BecomeSubAdult(), Vole_Female::st_Lactating(), SupplyAllele(), SupplyGenes(), SupplyHeteroZyg(), SupplyHomoZyg(), SupplyMyAllele(), UnsetDirectFlag(), and UnsetGeneticFlag().
|
protected |
Definition at line 200 of file vole_all.h.
Referenced by Init(), Set_NoYoungTot(), Vole_Female::st_GiveBirth(), and SupplyTotNoYoung().
Vole_Population_Manager* Vole_Base::m_OurPopulation |
Definition at line 408 of file vole_all.h.
Referenced by Vole_JuvenileMale::BeginStep(), Vole_JuvenileFemale::BeginStep(), CalculateCarryingCapacity(), CheckTraps(), CopyMyself(), Vole_JuvenileMale::Dispersal(), Vole_Male::Dispersal(), Vole_JuvenileFemale::Dispersal(), Vole_Male::EndStep(), Vole_JuvenileFemale::EndStep(), Vole_JuvenileMale::FreeLocation(), Vole_JuvenileFemale::FreeLocation(), Vole_JuvenileMale::GetLocation(), Vole_JuvenileFemale::GetLocation(), Init(), MoveQuality(), Vole_JuvenileMale::OnFarmEvent(), Vole_JuvenileFemale::OnFarmEvent(), Vole_Female::OnInfanticideAttempt(), Vole_JuvenileMale::OnKilled(), Vole_JuvenileFemale::OnKilled(), Vole_JuvenileMale::SetLocation(), Vole_JuvenileFemale::SetLocation(), Vole_JuvenileMale::st_BecomeSubAdult(), Vole_JuvenileFemale::st_BecomeSubAdult(), Vole_JuvenileMale::st_Eval_n_Explore(), Vole_Male::st_Eval_n_Explore(), Vole_Female::st_GiveBirth(), Vole_Male::st_Infanticide(), Vole_Female::st_Lactating(), Vole_Female::st_Mating(), Vole_Male::st_Maturation(), Vole_Female::st_Special_Explore(), Vole_JuvenileFemale::Step(), and Vole_Female::Step().
|
protected |
Their polygon ref at birth location
Definition at line 184 of file vole_all.h.
Referenced by Set_PolyRefBorn(), and SupplyPolyRefBorn().
|
protected |
Their reserves - in days that they can survive without food
Definition at line 206 of file vole_all.h.
Referenced by Init(), and Vole_Female::st_Lactating().
|
protected |
Their sex Male==true Female==false
Definition at line 174 of file vole_all.h.
Referenced by Vole_JuvenileMale::ReInit(), Vole_Male::ReInit(), Vole_JuvenileFemale::ReInit(), SupplySex(), Vole_JuvenileFemale::Vole_JuvenileFemale(), Vole_JuvenileMale::Vole_JuvenileMale(), and Vole_Male::Vole_Male().
|
protected |
The size of their territory (radius of a square)
Definition at line 172 of file vole_all.h.
Referenced by CalculateCarryingCapacity(), CheckTraps(), Vole_Male::DetermineTerritorySize(), Vole_Male::Dispersal(), Vole_JuvenileFemale::EndStep(), Init(), Vole_JuvenileMale::ReInit(), Vole_Male::ReInit(), Vole_JuvenileFemale::ReInit(), Vole_Female::ReInit(), Vole_JuvenileMale::st_Eval_n_Explore(), Vole_Male::st_Eval_n_Explore(), Vole_Female::st_Special_Explore(), SupplyTerrRange(), Vole_Female::Vole_Female(), Vole_JuvenileFemale::Vole_JuvenileFemale(), Vole_JuvenileMale::Vole_JuvenileMale(), and Vole_Male::Vole_Male().
|
protected |
The vegetation type at birth location
Definition at line 188 of file vole_all.h.
Referenced by Set_VegBorn(), and SupplyVegBorn().
|
protected |
Their weight in grams
Definition at line 192 of file vole_all.h.
Referenced by Vole_Male::DetermineTerritorySize(), Vole_JuvenileMale::EndStep(), Vole_Male::EndStep(), Vole_JuvenileFemale::EndStep(), Init(), Vole_JuvenileMale::ReInit(), Vole_Male::ReInit(), Vole_JuvenileFemale::ReInit(), Vole_Female::ReInit(), SetWeight(), Vole_JuvenileMale::st_BecomeSubAdult(), Vole_JuvenileFemale::st_BecomeSubAdult(), Vole_Male::st_Infanticide(), SupplyWeight(), Vole_Female::Vole_Female(), Vole_JuvenileFemale::Vole_JuvenileFemale(), Vole_JuvenileMale::Vole_JuvenileMale(), and Vole_Male::Vole_Male().
|
protected |
Their x location at birth
Definition at line 180 of file vole_all.h.
Referenced by Set_XBorn(), and SupplyXBorn().
|
protected |
Their y location at birth
Definition at line 182 of file vole_all.h.
Referenced by Set_YBorn(), and SupplyYBorn().
|
protected |
The size of simulation landscape
Definition at line 210 of file vole_all.h.
Referenced by CalculateCarryingCapacity(), DoWalkingCorrect(), Escape(), Init(), MoveTo(), and Vole_Male::st_Eval_n_Explore().
|
protected |
Definition at line 210 of file vole_all.h.
Referenced by CalculateCarryingCapacity(), DoWalkingCorrect(), Escape(), Init(), MoveTo(), and Vole_Male::st_Eval_n_Explore().