public class ProducerHHImpl extends AbstractHH implements ProducerHH
| Constructor and Description |
|---|
ProducerHHImpl(repast.simphony.context.Context theContext,
Selling mySellingDecision,
GlobSpace theGlobSpace) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCow()
creates a new cow for entries
|
void |
ageYourAnimals()
ages the herd and transforms calves into bulls or cows
|
void |
birthYourAnimalsBrand(double yearlyLwg)
calculates the new population of heifers (>1 year) in every year based on the branding rate and cows of last year
|
void |
dieYourAnimals(double yearlyLwg)
causes the death of animals based on yearly % mortality
|
EntryAble |
exit()
exit method.
|
double |
getAgriRev()
returns the average monthly agricultural profit
|
java.util.Collection<? extends Animal> |
getAnimals() |
double |
getConditionalCooperation()
Returns individual conditional cooperativeness
|
double |
getHerdSize() |
double |
getId() |
double |
getNonAgriIncMemb() |
int |
getSellingType() |
double |
getValueOfHerd()
returns the monetary value of the herd
|
void |
hhBalanceSimple()
computes monthly savings of HH
|
void |
informLwg(double lwg)
increases monthly live-weight gain of individual herds
|
void |
iniWithFileData(java.util.HashMap<java.lang.String,java.lang.Double> attributes)
initializes all HH with data from input files where they are not specific to the HH type
|
boolean |
isExit()
checker for exiting producers
|
java.util.ArrayList<Animal> |
sellIndividual()
Individual selling of animals (no norm)
|
java.util.ArrayList<Animal> |
sellNorm()
Selling triggerd by the norm
|
void |
storeInvestmentCosts()
stores investment costs for new entries into livestock production for calculating profits
|
void |
updateCooperation(double groupRepuation,
double severity)
updates individual cooperativeness
|
getAccSavingsMemb, getIniCoop, getSavings, hhBalanceTypes, iniCooperator, iniWithOtherHHData, isCooperator, isDefector, resetAccSavings, setCooperator, setDefectorequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithhBalanceTypes, iniCooperator, iniWithOtherHHData, isCooperator, isDefector, resetAccSavings, setCooperator, setDefectorpublic void iniWithFileData(java.util.HashMap<java.lang.String,java.lang.Double> attributes)
SimpleHHiniWithFileData in interface SimpleHHiniWithFileData in class AbstractHHpublic void informLwg(double lwg)
ProducerHHinformLwg in interface ProducerHHpublic void ageYourAnimals()
ProducerHHageYourAnimals in interface ProducerHHpublic void birthYourAnimalsBrand(double yearlyLwg)
ProducerHHbirthYourAnimalsBrand in interface ProducerHHpublic void dieYourAnimals(double yearlyLwg)
ProducerHHdieYourAnimals in interface ProducerHHpublic java.util.ArrayList<Animal> sellIndividual()
ProducerHHsellIndividual in interface ProducerHHpublic java.util.ArrayList<Animal> sellNorm()
ProducerHHsellNorm in interface ProducerHHpublic boolean isExit()
ProducerHHisExit in interface ProducerHHpublic EntryAble exit()
ProducerHHexit in interface ProducerHHpublic void hhBalanceSimple()
SimpleHHhhBalanceSimple in interface SimpleHHhhBalanceSimple in class AbstractHHpublic void updateCooperation(double groupRepuation,
double severity)
ProducerHHupdateCooperation in interface ProducerHHgroupRepuation - level of norm followersseverity - degree of norm violationspublic double getConditionalCooperation()
ProducerHHgetConditionalCooperation in interface ProducerHHpublic double getValueOfHerd()
ProducerHHgetValueOfHerd in interface ProducerHHpublic void addCow()
addCow in interface ProducerHHpublic void storeInvestmentCosts()
ProducerHHstoreInvestmentCosts in interface ProducerHHpublic double getId()
public java.util.Collection<? extends Animal> getAnimals()
getAnimals in interface ProducerHHpublic double getHerdSize()
getHerdSize in interface ProducerHHpublic double getAgriRev()
ProducerHHgetAgriRev in interface ProducerHHpublic double getNonAgriIncMemb()
public int getSellingType()