|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectenergyTycoon.customer.Customer
energyTycoon.customer.Industry
public class Industry
Constructor Summary | |
---|---|
Industry(int id,
Game game,
java.lang.String name,
int settingPrice,
int developmentRate,
int needed,
boolean night)
Constructor of the industry with parameters |
Method Summary | |
---|---|
void |
compute(int time)
Correspond to the method which compute all information each frame |
void |
computeFractionEnergy(int time)
Compute the fraction of energy that each supplier will have to provide according the satisfaction |
void |
computeNewDevelopmentRate()
Compute the growth of the industry through the time with random |
void |
computeNewSettingPrice()
Compute the evolution of the setting price according the number of supplier |
void |
computeSatisfaction(int time)
Compute the satisfaction of the supplier according various details |
double |
computeWorkEnergy()
Compute the industry energy needed to work according the time |
java.lang.String |
getDefineMessage()
Define the customer in a network string |
int |
getDevelopmentRate()
|
int |
getEnergyNeeded()
Assessor on energyNeeded |
Industry |
getIndustry()
|
boolean |
getNightWork()
Assessor on nightWork |
int |
getSettingPrice()
|
boolean |
isIndustry()
|
void |
setEnergyNeeded(int needed)
Set the value of energyNeeded |
void |
setNightWork(boolean night)
Set the value of nightWork |
Methods inherited from class energyTycoon.customer.Customer |
---|
addProvider, getCity, getId, getName, isCity, setName, setSettingPrice |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Industry(int id, Game game, java.lang.String name, int settingPrice, int developmentRate, int needed, boolean night)
id
- game
- name
- settingPrice
- developmentRate
- needed
- night
- Method Detail |
---|
public void setEnergyNeeded(int needed)
needed
- public void setNightWork(boolean night)
night
- public boolean getNightWork()
public int getEnergyNeeded()
public void computeNewDevelopmentRate()
public void computeNewSettingPrice()
public double computeWorkEnergy()
public void computeSatisfaction(int time)
time
- public void computeFractionEnergy(int time)
time
- public void compute(int time)
compute
in class Customer
time
- public int getDevelopmentRate()
public int getSettingPrice()
public java.lang.String getDefineMessage()
getDefineMessage
in class Customer
public boolean isIndustry()
isIndustry
in class Customer
public Industry getIndustry()
getIndustry
in class Customer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |