Class PopulationGrowth
java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.sim.components.experimental.livestock.PopulationGrowth
- All Implemented Interfaces:
net.simplace.sim.util.FWSimFieldContainer
public class PopulationGrowth
extends net.simplace.sim.model.FWSimComponent
- Author:
- Gunther Krauss, gk@uni-bonn.de - Andreas Enders, info@andreas-enders.de M. Lesnoff, 2008, DynMod: A tool for demographic projections of tropical Livestock population under Microsoft Excel, User Manual, Version 1. CIRAD, ILRI
Component Variables
Content Type | Name | Description | Data Type | Unit | Min Value | Max Value | Default Value |
---|---|---|---|---|---|---|---|
constant | cAdultFemaleDuration | Category Timespan of Animals Adult Female | DOUBLE | year | 0.0 | 20.0 | 11.0 |
constant | cAdultFemaleInitial | InitialNumber of Animals Adult Female | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cAdultFemaleMaxNumber | MaxNumber of Animals Adult Female | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cAdultFemaleMortalityFraction | Mortality fraction per year of Animals Adult Female | DOUBLE | animal/animal | 0.0 | 1.0 | 0.03 |
constant | cAdultFemaleOfftakeFraction | Offtake fraction of Animals Adult Female | DOUBLE | animal/animal | 0.0 | 1.0 | 0.0 |
constant | cAdultMaleDuration | Category Timespan of Animals Adult Male | DOUBLE | year | 0.0 | 20.0 | 6.0 |
constant | cAdultMaleInitial | InitialNumber of Animals Adult Male | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cAdultMaleMaxNumber | MaxNumber of Animals Adult Male | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cAdultMaleMortalityFraction | Mortality fraction per year of Animals Adult Male | DOUBLE | animal/animal | 0.0 | 1.0 | 0.03 |
constant | cAdultMaleOfftakeFraction | Offtake fraction of Animals Adult Male | DOUBLE | animal/animal | 0.0 | 1.0 | 0.0 |
constant | cFemaleAtBirth | Female fraction of Births | DOUBLE | animal/animal | 0.0 | 1.0 | 0.5 |
constant | cJuvenileFemaleDuration | Category Timespan of Animals Juvenile Female | DOUBLE | year | 0.0 | 10.0 | 1.0 |
constant | cJuvenileFemaleInitial | InitialNumber of Animals Juvenile Female | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cJuvenileFemaleMaxNumber | MaxNumber of Animals Juvenile Female | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cJuvenileFemaleMortalityFraction | Mortality fraction per year of Animals Juvenile Female | DOUBLE | animal/animal | 0.0 | 1.0 | 0.13 |
constant | cJuvenileFemaleOfftakeFraction | Offtake fraction of Animals Juvenile Female | DOUBLE | animal/animal | 0.0 | 1.0 | 0.0 |
constant | cJuvenileMaleDuration | Category Timespan of Animals Juvenile Male | DOUBLE | year | 0.0 | 10.0 | 1.0 |
constant | cJuvenileMaleInitial | InitialNumber of Animals Juvenile Male | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cJuvenileMaleMaxNumber | MaxNumber of Animals Juvenile Male | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cJuvenileMaleMortalityFraction | Mortality fraction per year of Animals Juvenile Male | DOUBLE | animal/animal | 0.0 | 1.0 | 0.13 |
constant | cJuvenileMaleOfftakeFraction | Offtake fraction of Animals Juvenile Male | DOUBLE | animal/animal | 0.0 | 1.0 | 0.0 |
constant | cMaintenanceNutritionMortalityFactor | Sum EnergyDemand of animals | DOUBLE | 1 | 0.0 | 10.0 | 2.0 |
constant | cParturition | Number of Births per year per adult female animal | DOUBLE | year-1 | 0.0 | 1.0 | 0.5 |
constant | cProlification | Prolification - survival rate during birth | DOUBLE | one | 0.0 | 1.0 | 1.0 |
constant | cSubAdultFemaleDuration | Category Timespan of Animals SubAdult Female | DOUBLE | year | 0.0 | 10.0 | 3.0 |
constant | cSubAdultFemaleInitial | InitialNumber of Animals SubAdult Female | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cSubAdultFemaleMaxNumber | MaxNumber of Animals SubAdult Female | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cSubAdultFemaleMortalityFraction | Mortality fraction per year of Animals SubAdult Female | DOUBLE | animal/animal | 0.0 | 1.0 | 0.05 |
constant | cSubAdultFemaleOfftakeFraction | Offtake fraction of Animals SubAdult Female | DOUBLE | animal/animal | 0.0 | 1.0 | 0.0 |
constant | cSubAdultMaleDuration | Category Timespan of Animals SubAdult Male | DOUBLE | year | 0.0 | 10.0 | 3.0 |
constant | cSubAdultMaleInitial | InitialNumber of Animals SubAdult Male | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cSubAdultMaleMaxNumber | MaxNumber of Animals SubAdult Male | DOUBLE | animal | 0.0 | 10000.0 | 10000.0 |
constant | cSubAdultMaleMortalityFraction | Mortality fraction per year of Animals SubAdult Male | DOUBLE | animal/animal | 0.0 | 1.0 | 0.05 |
constant | cSubAdultMaleOfftakeFraction | Offtake fraction of Animals SubAdult Male | DOUBLE | animal/animal | 0.0 | 1.0 | 0.0 |
input | iAdultFemaleIntakeNumber | Intake of Animals Adult Female | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iAdultFemaleOfftakeNumber | Offtake of Animals Adult Female | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iAdultMaleIntakeNumber | Intake of Animals Adult Male | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iAdultMaleOfftakeNumber | Offtake of Animals Adult Male | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iDoInitialize | Switch to re-initialize the model with initial values. | BOOLEAN | 1 | - | - | false |
input | iJuvenileFemaleIntakeNumber | Intake of Animals Juvenile Female | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iJuvenileFemaleOfftakeNumber | Offtake of Animals Juvenile Female | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iJuvenileMaleIntakeNumber | Intake of Animals Juvenile Male | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iJuvenileMaleOfftakeNumber | Offtake of Animals Juvenile Male | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iMaintenanceNutritionIndex | Sum EnergyDemand of animals | DOUBLE | 1 | 0.0 | 1.0 | 1.0 |
input | iProductionNutritionIndex | Sum EnergyDemand for maintenance only | DOUBLE | 1 | 0.0 | 1.0 | 1.0 |
input | iSubAdultFemaleIntakeNumber | Intake of Animals SubAdult Female | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iSubAdultFemaleOfftakeNumber | Offtake of Animals SubAdult Female | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iSubAdultMaleIntakeNumber | Intake of Animals SubAdult Male | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
input | iSubAdultMaleOfftakeNumber | Offtake of Animals SubAdult Male | DOUBLE | animal/day | 0.0 | 10000.0 | 0.0 |
state | sAdultFemale | Number of Animals Adult Female | DOUBLE | animal | 0.0 | 10000.0 | 20.0 |
state | sAdultMale | Number of Animals Adult Male | DOUBLE | animal | 0.0 | 10000.0 | 4.0 |
state | sJuvenileFemale | Number of Animals Juvenile Female | DOUBLE | animal | 0.0 | 10000.0 | 4.0 |
state | sJuvenileMale | Number of Animals Juvenile Male | DOUBLE | animal | 0.0 | 10000.0 | 4.0 |
state | sSubAdultFemale | Number of Animals SubAdult Female | DOUBLE | animal | 0.0 | 10000.0 | 10.0 |
state | sSubAdultMale | Number of Animals SubAdult Male | DOUBLE | animal | 0.0 | 10000.0 | 7.0 |
state | sTotalAnimals | Number of Animals Total (sum) | DOUBLE | animal | 0.0 | 10000.0 | 4.0 |
rate | rAdultFemaleIntakeRate | Yearly change rate of Animals Adult Female | DOUBLE | animal/day | -100.0 | 100.0 | 0.0 |
rate | rAdultFemaleMortalityRate | Yearly change rate of Animals Adult Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rAdultFemaleOfftakeRate | Yearly change rate of Animals Adult Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rAdultFemaleRate | Yearly change rate of Animals Adult Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rAdultMaleIntakeRate | Yearly change rate of Animals Adult Male | DOUBLE | animal/day | -100.0 | 100.0 | 0.0 |
rate | rAdultMaleMortalityRate | Yearly change rate of Animals SAdult Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rAdultMaleOfftakeRate | Yearly change rate of Animals Adult Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rAdultMaleRate | Yearly change rate of Animals Adult Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rJuvenileFemaleBirthRate | Yearly change rate of Animals Juvenile Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rJuvenileFemaleIntakeRate | Yearly change rate of Animals Juvenile Female | DOUBLE | animal/day | -100.0 | 100.0 | 0.0 |
rate | rJuvenileFemaleMortalityRate | Yearly change rate of Animals Juvenile Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rJuvenileFemaleOfftakeRate | Yearly change rate of Animals Juvenile Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rJuvenileFemaleRate | Yearly change rate of Animals Juvenile Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rJuvenileMaleBirthRate | Yearly change rate of Animals Juvenile Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rJuvenileMaleIntakeRate | Yearly change rate of Animals Juvenile Male | DOUBLE | animal/day | -100.0 | 100.0 | 0.0 |
rate | rJuvenileMaleMortalityRate | Yearly change rate of Animals Juvenile Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rJuvenileMaleOfftakeRate | Yearly change rate of Animals Juvenile Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rJuvenileMaleRate | Yearly change rate of Animals Juvenile Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rSubAdultFemaleIntakeRate | Yearly change rate of Animals SubAdult Female | DOUBLE | animal/day | -100.0 | 100.0 | 0.0 |
rate | rSubAdultFemaleMortalityRate | Yearly change rate of Animals SubAdult Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rSubAdultFemaleOfftakeRate | Yearly change rate of Animals SubAdult Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rSubAdultFemaleRate | Yearly change rate of Animals SubAdult Female | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rSubAdultMaleIntakeRate | Yearly change rate of Animals SubAdult Male | DOUBLE | animal/day | -100.0 | 100.0 | 0.0 |
rate | rSubAdultMaleMortalityRate | Yearly change rate of Animals SubAdult Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rSubAdultMaleOfftakeRate | Yearly change rate of Animals SubAdult Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
rate | rSubAdultMaleRate | Yearly change rate of Animals SubAdult Male | DOUBLE | animal/day | 0.0 | 100.0 | 0.0 |
out | LivestockBalance | Balance of the Livestock for Male and Female | DOUBLE | animal | 0.0 | 100.0 | 0.0 |
out | LivestockBalanceFemale | Balance of the Livestock for Female | DOUBLE | animal | 0.0 | 100.0 | 0.0 |
out | LivestockBalanceMale | Balance of the Livestock for Male | DOUBLE | animal | 0.0 | 100.0 | 0.0 |
-
Nested Class Summary
Nested classes/interfaces inherited from class net.simplace.sim.model.FWSimComponent
net.simplace.sim.model.FWSimComponent.TEST_STATE
-
Field Summary
Fields inherited from class net.simplace.sim.model.FWSimComponent
iFieldMap, iFrequence, iInputMap, iJexlRule, iMasterComponentGroup, iName, iOrderNumber, isComponentGroup, iSimComponentElement, iSimModel, iVarMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.simplace.sim.model.FWSimComponent
clone
(net.simplace.sim.util.FWSimVarMap aVarMap) Create the FWSimVariables as interface for this SimComponentfillTestVariables
(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck) called for single component test to check the components algorithm.protected void
init()
Initializes the fields by getting input and output FWSimVariables from VarMapprotected void
process()
Process the algorithm and write the results back to VarMapMethods inherited from class net.simplace.sim.model.FWSimComponent
addVariable, bind, checkCondition, createSimComponent, createSimComponent, createSimComponent, createSimComponent, doProcess, getConstantVariables, getContentType, getCreateFormXML, getDescription, getEditFormXML, getFieldMap, getFrequence, getFrequenceRuleScript, getInputs, getInputVariables, getMasterComponentGroup, getName, getOrderNumber, getOutputVariables, getVariable, getVariableField, getVarMap, initialize, isConditionCheck, isVariableAvailable, performLinks, performLinks, readInputs, removeVariable, reset, runComponentTest, setVariablesDefault, toComponentLinkingXML, toDocXML, toGroupXML, toOutputDefinitionXML, toResourcesDataXML, toResourcesDefinitionXML, toString, toXML, writeVarInfos
-
Constructor Details
-
PopulationGrowth
public PopulationGrowth()Empty constructor used by class.forName()
-
-
Method Details
-
createVariables
Create the FWSimVariables as interface for this SimComponent- Specified by:
createVariables
in interfacenet.simplace.sim.util.FWSimFieldContainer
- Specified by:
createVariables
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
net.simplace.simulation.model.FWSimComponent#createVariables()
-
init
protected void init()Initializes the fields by getting input and output FWSimVariables from VarMap- Specified by:
init
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
net.simplace.simulation.model.FWSimComponent#init()
-
process
protected void process()Process the algorithm and write the results back to VarMap- Specified by:
process
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
net.simplace.simulation.model.FWSimComponent#process()
-
fillTestVariables
public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> fillTestVariables(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck) called for single component test to check the components algorithm.- Specified by:
fillTestVariables
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
net.simplace.sim.util.FWSimFieldContainer#fillTestVariables(int aParamIndex, TEST_STATE aDefineOrCheck)
-
clone
protected net.simplace.sim.model.FWSimComponent clone(net.simplace.sim.util.FWSimVarMap aVarMap) - Specified by:
clone
in classnet.simplace.sim.model.FWSimComponent
- See Also:
-
net.simplace.simulation.model.FWSimComponent#clone(net.simplace.simulation.util.FWSimVarMap)
-