public class EcoSpace
extends java.lang.Object
Constructor and Description |
---|
EcoSpace(repast.simphony.context.Context theContext)
Initializes the rangeland with continous grazing
|
Modifier and Type | Method and Description |
---|---|
double |
calcMeanBA() |
double |
calcStDevBA() |
double |
calcYearlyLwg()
calculates the sum of monthly lwg the array of monthly lwgs
|
void |
finishRunBiom()
Finishes the run and of the rangeland model
|
double |
getActualGFD() |
double |
getActualOfftake() |
double |
getBasalArea() |
double |
getGGrowth() |
double |
getGSC() |
double |
getLastYearLwg()
only returning the value stored for the last year.
|
double |
getLiveweightgain()
gets the liveweight gain of the past month
|
double |
getOfftake() |
double |
getOfftake(java.util.ArrayList<Animal> allAnimals)
Calculates the offtake of animals depending on body-weight and stocking density per month
|
double |
getOfftakeByGSC() |
double |
getOfftakeByTSC() |
double |
getStockingRate(java.util.ArrayList<Animal> allAnimals) |
double |
getTSC() |
double |
getYearlyLwg()
Gets the yearly live-weight gain or loss
|
void |
init(int currentMonth)
initializes the rangeland without grazing in monthly time steps
|
void |
resetYearlyLwg()
helper method reseting yearly live-weight gain to zero for a new year
|
void |
setLwgLastYear(double lwg)
memory method for storing last years lwg
|
void |
stepMonthlyBiomass(int currentMonth,
java.util.ArrayList<Animal> allAnimals)
Steps the rangeland with offtake and biomass growth.
|
void |
storeMonhtlyLwg(double lwg)
Stores monthly live-weight gains or losses in a list
|
public EcoSpace(repast.simphony.context.Context theContext)
theContext
- public void init(int currentMonth)
currentMonth
- public void stepMonthlyBiomass(int currentMonth, java.util.ArrayList<Animal> allAnimals)
currentMonth
- allAnimals
- public double getTSC()
public double getGSC()
public double getGGrowth()
public double getActualGFD()
public double getActualOfftake()
public double getBasalArea()
public double getOfftake(java.util.ArrayList<Animal> allAnimals)
allAnimals
- public double getLiveweightgain()
public void storeMonhtlyLwg(double lwg)
lwg
- public double calcYearlyLwg()
public double getYearlyLwg()
public void resetYearlyLwg()
public void setLwgLastYear(double lwg)
lwg
- public void finishRunBiom()
public double getStockingRate(java.util.ArrayList<Animal> allAnimals)
public double getLastYearLwg()
public double calcMeanBA()
public double calcStDevBA()
public double getOfftake()
public double getOfftakeByTSC()
public double getOfftakeByGSC()