|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectenergyTycoon.Supplying
public class Supplying
Constructor Summary | |
---|---|
Supplying(FullPlayer player,
Customer customer,
int date,
int price)
Supplying Constructor |
Method Summary | |
---|---|
int |
getAge()
Assessor on the age |
Customer |
getCustomer()
Assessor on customer |
int |
getEcology()
Assesor which allows to access to the value of ecology of one player |
int |
getEnergyNeeded()
get energy needed by the customer this frame |
int |
getFraction()
get the percentage of the provider on the city marker |
java.lang.String |
getNetworkUpdate()
get supplying definition for network |
int |
getPrice()
Assessor on price |
double |
getProvidedSatisfaction()
Assessor on the satisfaction which correspond to the quality of the supplier to provide |
int |
getSatisfaction()
Assessor on satisfaction |
int |
getSettingDate()
Assessor on settingDate |
int |
provide(double fraction)
Provide a fraction of what the customer need |
void |
setAge(int _age)
Set the value of age |
void |
setEnergyNeeded(int energy)
Set the value of energyNeed |
void |
setFraction(int _fraction)
|
void |
setPrice(int _price)
Set the value of price |
void |
setSatisfaction(int sat)
Set the value of satisfaction |
void |
setSettingDate(int date)
Set the value of settingDate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Supplying(FullPlayer player, Customer customer, int date, int price)
player
- customer
- date
- price
- Method Detail |
---|
public void setPrice(int _price)
_price
- public void setSettingDate(int date)
date
- public void setSatisfaction(int sat)
sat
- public void setEnergyNeeded(int energy)
energy
- public void setAge(int _age)
_age
- public void setFraction(int _fraction)
public Customer getCustomer()
public int getPrice()
public int getSettingDate()
public int getSatisfaction()
public int getEcology()
public int getEnergyNeeded()
public double getProvidedSatisfaction()
public int getAge()
public int provide(double fraction)
fraction
- provided
public int getFraction()
public java.lang.String getNetworkUpdate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |