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)
Selling
sellIndividual
in interface Selling
public java.util.ArrayList<Animal> sellMaxLabourSize(java.util.ArrayList<Animal> allAnimals)
Selling
sellMaxLabourSize
in interface Selling
public java.util.ArrayList<Animal> sellNrOfAnimals(java.util.ArrayList<Animal> allAnimals, double toSell)
Selling
sellNrOfAnimals
in interface Selling
public void storeAgriRevFromThisSale(java.util.ArrayList<Animal> animalsToSell, java.util.ArrayList<Animal> allAnimals)
Selling
storeAgriRevFromThisSale
in interface Selling
public void storeInvestmentCosts()
Selling
storeInvestmentCosts
in interface Selling
public double getValueOfAnimals(java.util.ArrayList<Animal> aListOfAnimals)
Selling
getValueOfAnimals
in interface Selling
public void resetMyAgriRevs()
Selling
resetMyAgriRevs
in interface Selling
public double avrMprofit()
avrMprofit
in interface Selling
public java.util.ArrayList<Animal> sellIndividual(java.util.ArrayList<Animal> allAnimals, SellingType type, double currentMonth)
sellIndividual
in interface Selling
public java.util.ArrayList<Animal> sellIndividualSimpleRule(java.util.ArrayList<Animal> allAnimals, double ageToSell)
sellIndividualSimpleRule
in interface Selling