energyTycoon.powerStation
Class PowerStationType

java.lang.Object
  extended by energyTycoon.powerStation.PowerStationType

public class PowerStationType
extends java.lang.Object


Constructor Summary
PowerStationType(int id, PowerStationGroup powerStationGroup, int generation, int price, int constructionTime, int pollutionRate, int lifeTime, int basicProduction, int renovationPrice, int basicUsePrice)
          Constructor
 
Method Summary
 int getBasicProduction()
           
 int getBasicUsePrice()
           
 int getConstructionTime()
           
 int getGeneration()
           
 PowerStationGroup getGroup()
           
 int getGroupId()
           
 int getId()
           
 int getLifeTime()
           
 java.lang.String getNetworkDefinition()
          define a power station type on network
 int getPollutionRate()
           
 int getPrice()
           
 int getRenovationPrice()
           
 void load(java.lang.String file)
           
 void setId(int id)
          set the id of this type ( needed outside )
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PowerStationType

public PowerStationType(int id,
                        PowerStationGroup powerStationGroup,
                        int generation,
                        int price,
                        int constructionTime,
                        int pollutionRate,
                        int lifeTime,
                        int basicProduction,
                        int renovationPrice,
                        int basicUsePrice)
Constructor

Method Detail

setId

public void setId(int id)
set the id of this type ( needed outside )

Parameters:
id -

getPrice

public int getPrice()

getConstructionTime

public int getConstructionTime()

getPollutionRate

public int getPollutionRate()

getLifeTime

public int getLifeTime()

getBasicProduction

public int getBasicProduction()

getRenovationPrice

public int getRenovationPrice()

getGeneration

public int getGeneration()

getBasicUsePrice

public int getBasicUsePrice()

getId

public int getId()

getGroupId

public int getGroupId()

load

public void load(java.lang.String file)

getNetworkDefinition

public java.lang.String getNetworkDefinition()
define a power station type on network

Returns:

getGroup

public PowerStationGroup getGroup()
Returns: