energyTycoon
Class Supplying

java.lang.Object
  extended by energyTycoon.Supplying

public class Supplying
extends java.lang.Object


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

Supplying

public Supplying(FullPlayer player,
                 Customer customer,
                 int date,
                 int price)
Supplying Constructor

Parameters:
player -
customer -
date -
price -
Method Detail

setPrice

public void setPrice(int _price)
Set the value of price

Parameters:
_price -

setSettingDate

public void setSettingDate(int date)
Set the value of settingDate

Parameters:
date -

setSatisfaction

public void setSatisfaction(int sat)
Set the value of satisfaction

Parameters:
sat -

setEnergyNeeded

public void setEnergyNeeded(int energy)
Set the value of energyNeed

Parameters:
energy -

setAge

public void setAge(int _age)
Set the value of age

Parameters:
_age -

setFraction

public void setFraction(int _fraction)

getCustomer

public Customer getCustomer()
Assessor on customer

Returns:

getPrice

public int getPrice()
Assessor on price

Returns:

getSettingDate

public int getSettingDate()
Assessor on settingDate

Returns:

getSatisfaction

public int getSatisfaction()
Assessor on satisfaction

Returns:

getEcology

public int getEcology()
Assesor which allows to access to the value of ecology of one player

Returns:

getEnergyNeeded

public int getEnergyNeeded()
get energy needed by the customer this frame

Returns:
energy needed by the customer this frame

getProvidedSatisfaction

public double getProvidedSatisfaction()
Assessor on the satisfaction which correspond to the quality of the supplier to provide

Returns:

getAge

public int getAge()
Assessor on the age

Returns:

provide

public int provide(double fraction)
Provide a fraction of what the customer need

Parameters:
fraction - provided
Returns:
price of this fraction

getFraction

public int getFraction()
get the percentage of the provider on the city marker

Returns:

getNetworkUpdate

public java.lang.String getNetworkUpdate()
get supplying definition for network

Returns: