| Constructor and Description |
|---|
SellingImpl(ZLCS cls,
StandardSituation sit,
StandardSituation secondSit,
MarketSpace theMarket) |
| Modifier and Type | Method and Description |
|---|---|
double |
avrMprofit()
gets current average monthly agricultural profit
|
double |
getValueOfAnimals(java.util.ArrayList<Animal> aListOfAnimals)
returns the current monetary value of animals in the argument
|
void |
resetMyAgriRevs()
resets all monetary values stored in caes of exits
|
java.util.ArrayList<Animal> |
sellIndividual(java.util.ArrayList<Animal> allAnimals)
Individual selling - no norm
|
java.util.ArrayList<Animal> |
sellIndividual(java.util.ArrayList<Animal> allAnimals,
SellingType type,
double currentMonth) |
java.util.ArrayList<Animal> |
sellIndividualSimpleRule(java.util.ArrayList<Animal> allAnimals,
double ageToSell) |
java.util.ArrayList<Animal> |
sellMaxLabourSize(java.util.ArrayList<Animal> allAnimals)
logical constrain - HH cannot have more than 130 animals cause of labour constrains
|
java.util.ArrayList<Animal> |
sellNrOfAnimals(java.util.ArrayList<Animal> allAnimals,
double toSell)
Selling according to norm (and labour constraint) - first bulls over cows, second older over younger animals
|
void |
storeAgriRevFromThisSale(java.util.ArrayList<Animal> animalsToSell,
java.util.ArrayList<Animal> allAnimals)
stores the revenue generated from the current sale of animals
|
void |
storeInvestmentCosts()
stores investment costs for new entries
|
public SellingImpl(ZLCS cls, StandardSituation sit, StandardSituation secondSit, MarketSpace theMarket)
public java.util.ArrayList<Animal> sellIndividual(java.util.ArrayList<Animal> allAnimals)
SellingsellIndividual in interface Sellingpublic java.util.ArrayList<Animal> sellMaxLabourSize(java.util.ArrayList<Animal> allAnimals)
SellingsellMaxLabourSize in interface Sellingpublic java.util.ArrayList<Animal> sellNrOfAnimals(java.util.ArrayList<Animal> allAnimals, double toSell)
SellingsellNrOfAnimals in interface Sellingpublic void storeAgriRevFromThisSale(java.util.ArrayList<Animal> animalsToSell, java.util.ArrayList<Animal> allAnimals)
SellingstoreAgriRevFromThisSale in interface Sellingpublic void storeInvestmentCosts()
SellingstoreInvestmentCosts in interface Sellingpublic double getValueOfAnimals(java.util.ArrayList<Animal> aListOfAnimals)
SellinggetValueOfAnimals in interface Sellingpublic void resetMyAgriRevs()
SellingresetMyAgriRevs in interface Sellingpublic double avrMprofit()
avrMprofit in interface Sellingpublic java.util.ArrayList<Animal> sellIndividual(java.util.ArrayList<Animal> allAnimals, SellingType type, double currentMonth)
sellIndividual in interface Sellingpublic java.util.ArrayList<Animal> sellIndividualSimpleRule(java.util.ArrayList<Animal> allAnimals, double ageToSell)
sellIndividualSimpleRule in interface Selling