org.gjt.universe.scheme001
Class Station_001

java.lang.Object
  |
  +--org.gjt.universe.DBItem
        |
        +--org.gjt.universe.StationBase
              |
              +--org.gjt.universe.scheme001.Station_001
All Implemented Interfaces:
java.io.Serializable

public final class Station_001
extends StationBase

This class represents the station for scheme 001. The algorithms used in this class are defined in the Scheme 001 defintion.

See Also:
Serialized Form

Nested Class Summary
private  class Station_001.EconomicsValue
          Structure used in adjustEconmics method.
 
Field Summary
(package private)  AggregatedResourceGroup attackGroup
           
(package private)  AggregatedResourceGroup engineeringGroup
           
private  float EngineeringLeft
           
(package private)  AggregatedResourceGroup environmentalGroup
           
private  float maxPopulation
           
(package private)  AggregatedResourceGroup miningGroup
           
private  PlanetID planetMember
           
private  float population
           
(package private)  AggregatedResourceGroup powerGroup
           
private  float previouslyAmountMined
           
(package private)  AggregatedResourceGroup researchGroup
           
private  float ResearchLeft
           
(package private)  AggregatedResourceGroup scannerGroup
           
(package private)  AggregatedResourceGroup shieldGroup
           
(package private)  AggregatedResourceGroup shipManufacturingGroup
           
private  float ShipManufacturingLeft
           
(package private)  AggregatedResourceGroup stationManufacturingGroup
           
private  float StationManufacturingLeft
           
(package private)  AggregatedResourceGroup storageGroup
           
private static float themeEconomicFactor
           
private static float themeEngineeringFactor
           
private static float themeEnvironmentFactor
           
private static float themeGrowthFactor
           
private static float themeManufacturingFactor
           
private static float themeMiningExponentialFactor
           
private static float themeMiningLinearFactor
           
private static float themeResearchFactor
           
(package private)  float totalInStorage
           
 
Fields inherited from class org.gjt.universe.StationBase
 
Constructor Summary
private Station_001(CivID owner, java.lang.String in_name, PlanetID planet)
          Private constructor - called by newStation()
 
Method Summary
 void addModuleToAttackGroup(Module_001_Station module)
           
 void addModuleToEngineeringGroup(Module_001_Station module)
           
 void addModuleToEnvironmentalGroup(Module_001_Station module)
           
 void addModuleToMiningGroup(Module_001_Station module)
           
 void addModuleToPowerGroup(Module_001_Station module)
           
 void addModuleToResearchGroup(Module_001_Station module)
           
 void addModuleToScannerGroup(Module_001_Station module)
           
 void addModuleToShieldGroup(Module_001_Station module)
           
 void addModuleToShipManufacturingGroup(Module_001_Station module)
           
 void addModuleToStationManufacturingGroup(Module_001_Station module)
           
 void addModuleToStorageGroup(Module_001_Station module)
           
(package private)  float adjustEconomics()
          Adjusts the Economics to new values.
(package private)  void adjustEconomics(ModuleID MID, float newValue)
           
(package private)  void adjustPopulation()
           
(package private)  void allocateEconomics()
           
(package private)  void allocatePower()
           
(package private)  void allocateResources()
           
 AttackBase getAttack()
          Return the attack characteristics of this station.
 AggregatedResourceGroup getAttackGroup()
           
 DefenseBase getDefense()
          Return the defense characteristics of this station.
(package private)  float getEconomicConsumption()
           
(package private)  float getEconomicProduction()
           
(package private)  float getEngineering()
          Returns the amount of engineering produced by this station this turn.
 AggregatedResourceGroup getEngineeringGroup()
           
 AggregatedResourceGroup getEnvironmentalGroup()
           
 Location getLocation()
          Returns the Location of this Station.
 AggregatedResourceGroup getMiningGroup()
           
 float getPopulation()
           
(package private)  float getPowerConsumption()
           
 AggregatedResourceGroup getPowerGroup()
           
(package private)  float getPowerProduction()
           
(package private)  float getResearch()
          Returns the amount of research produced by this station this turn.
 AggregatedResourceGroup getResearchGroup()
           
(package private)  float getResourceConsumption()
           
(package private)  float getResourceProduction()
           
(package private)  float getResourcesStorage()
           
 AggregatedResourceGroup getScannerGroup()
           
 AggregatedResourceGroup getShieldGroup()
           
(package private)  float getShipManufacturing()
           
 AggregatedResourceGroup getShipManufacturingGroup()
           
 void getSpecificTableInfo(CivID AID, DisplayReturn DR)
          This function allows additional values to be presented in the station table.
(package private)  float getStationManufacturing()
           
 AggregatedResourceGroup getStationManufacturingGroup()
           
 AggregatedResourceGroup getStorageGroup()
           
(package private) static float getThemeEconomicFactor()
           
(package private) static float getThemeEngineeringFactor()
           
(package private) static float getThemeEnvironmentFactor()
           
(package private) static float getThemeGrowthFactor()
           
(package private) static float getThemeManufacturingFactor()
           
(package private) static float getThemeMiningExponentialFactor()
           
(package private) static float getThemeMiningLinearFactor()
           
(package private) static float getThemeResearchFactor()
           
private  void loadStartingModules()
           
(package private) static StationID newStation(CivID owner, PlanetID PID)
           
(package private)  void processTurnPart1()
          Process the first part of the turn.
(package private)  void processTurnPart2()
          Process the last part of the turn.
static void readStatics(java.io.ObjectInputStream in)
           
 void removeModuleFromAttackGroup(Module_001_Station module)
           
 void removeModuleFromEngineeringGroup(Module_001_Station module)
           
 void removeModuleFromEnvironmentalGroup(Module_001_Station module)
           
 void removeModuleFromMiningGroup(Module_001_Station module)
           
 void removeModuleFromPowerGroup(Module_001_Station module)
           
 void removeModuleFromResearchGroup(Module_001_Station module)
           
 void removeModuleFromScannerGroup(Module_001_Station module)
           
 void removeModuleFromShieldGroup(Module_001_Station module)
           
 void removeModuleFromShipManufacturingGroup(Module_001_Station module)
           
 void removeModuleFromStationManufacturingGroup(Module_001_Station module)
           
 void removeModuleFromStorageGroup(Module_001_Station module)
           
 void setPopulation(float value)
           
(package private) static void setSchemeFactors(java.lang.String str)
          This method sets the Scheme factors.
 VectorDisplayReturn specificDisplay()
          Specific display information about this object.
 VectorDisplayReturn specificDisplayDebug()
           
(package private)  float useEngineering(float Amount)
           
(package private)  float useResearch(float Amount)
           
(package private)  float useShipManufacturing(float Amount)
           
(package private)  float useStationManufacturing(float Amount)
           
static void writeStatics(java.io.ObjectOutputStream out)
           
 
Methods inherited from class org.gjt.universe.StationBase
addModule, announceCreation, destroyModule, getDockedFleets, getID, getID, getIndex, getModules, getName, getOwner, setName, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

planetMember

private PlanetID planetMember

population

private float population

maxPopulation

private float maxPopulation

previouslyAmountMined

private float previouslyAmountMined

StationManufacturingLeft

private float StationManufacturingLeft

ShipManufacturingLeft

private float ShipManufacturingLeft

ResearchLeft

private float ResearchLeft

EngineeringLeft

private float EngineeringLeft

totalInStorage

float totalInStorage

themeGrowthFactor

private static float themeGrowthFactor

themeEconomicFactor

private static float themeEconomicFactor

themeMiningLinearFactor

private static float themeMiningLinearFactor

themeMiningExponentialFactor

private static float themeMiningExponentialFactor

themeEnvironmentFactor

private static float themeEnvironmentFactor

themeManufacturingFactor

private static float themeManufacturingFactor

themeResearchFactor

private static float themeResearchFactor

themeEngineeringFactor

private static float themeEngineeringFactor

powerGroup

AggregatedResourceGroup powerGroup

shieldGroup

AggregatedResourceGroup shieldGroup

attackGroup

AggregatedResourceGroup attackGroup

stationManufacturingGroup

AggregatedResourceGroup stationManufacturingGroup

shipManufacturingGroup

AggregatedResourceGroup shipManufacturingGroup

environmentalGroup

AggregatedResourceGroup environmentalGroup

scannerGroup

AggregatedResourceGroup scannerGroup

researchGroup

AggregatedResourceGroup researchGroup

engineeringGroup

AggregatedResourceGroup engineeringGroup

storageGroup

AggregatedResourceGroup storageGroup

miningGroup

AggregatedResourceGroup miningGroup
Constructor Detail

Station_001

private Station_001(CivID owner,
                    java.lang.String in_name,
                    PlanetID planet)
Private constructor - called by newStation()

Method Detail

newStation

static StationID newStation(CivID owner,
                            PlanetID PID)

setSchemeFactors

static void setSchemeFactors(java.lang.String str)
This method sets the Scheme factors. The string that is passed in is the actual string that is in the theme file. The string is parsed and the correct values are set.


getThemeGrowthFactor

static float getThemeGrowthFactor()

getThemeEconomicFactor

static float getThemeEconomicFactor()

getThemeMiningLinearFactor

static float getThemeMiningLinearFactor()

getThemeMiningExponentialFactor

static float getThemeMiningExponentialFactor()

getThemeEnvironmentFactor

static float getThemeEnvironmentFactor()

getThemeManufacturingFactor

static float getThemeManufacturingFactor()

getThemeResearchFactor

static float getThemeResearchFactor()

getThemeEngineeringFactor

static float getThemeEngineeringFactor()

getLocation

public Location getLocation()
Returns the Location of this Station. In this theme, Stations are always located on Planet surfaces.

Specified by:
getLocation in class StationBase
Returns:
The location of this station.

getPopulation

public float getPopulation()

setPopulation

public void setPopulation(float value)

processTurnPart1

void processTurnPart1()
Process the first part of the turn. This method is called by the OrderStation1_001 object in the OrderQueue.

See Also:
OrderStation1_001

useStationManufacturing

float useStationManufacturing(float Amount)

useShipManufacturing

float useShipManufacturing(float Amount)

useResearch

float useResearch(float Amount)

useEngineering

float useEngineering(float Amount)

processTurnPart2

void processTurnPart2()
Process the last part of the turn. This method is called by the OrderStation2_001 object in the OrderQueue.

See Also:
OrderStation2_001

allocatePower

void allocatePower()

allocateResources

void allocateResources()

allocateEconomics

void allocateEconomics()

adjustPopulation

void adjustPopulation()

getPowerProduction

float getPowerProduction()

getPowerConsumption

float getPowerConsumption()

getEconomicProduction

float getEconomicProduction()

getEconomicConsumption

float getEconomicConsumption()

getResourceProduction

float getResourceProduction()

getResourceConsumption

float getResourceConsumption()

getResourcesStorage

float getResourcesStorage()

getEngineering

float getEngineering()
Returns the amount of engineering produced by this station this turn.

Returns:
engineering points

getResearch

float getResearch()
Returns the amount of research produced by this station this turn.

Returns:
research points

getStationManufacturing

float getStationManufacturing()

getShipManufacturing

float getShipManufacturing()

adjustEconomics

float adjustEconomics()
Adjusts the Economics to new values.


adjustEconomics

void adjustEconomics(ModuleID MID,
                     float newValue)

specificDisplay

public VectorDisplayReturn specificDisplay()
Description copied from class: StationBase
Specific display information about this object.

Specified by:
specificDisplay in class StationBase
Returns:
list of display information.

specificDisplayDebug

public VectorDisplayReturn specificDisplayDebug()
Specified by:
specificDisplayDebug in class DBItem

getSpecificTableInfo

public void getSpecificTableInfo(CivID AID,
                                 DisplayReturn DR)
Description copied from class: StationBase
This function allows additional values to be presented in the station table.

Specified by:
getSpecificTableInfo in class StationBase
Parameters:
DR - DisplayReturn to modify
AID - Civ who is "viewing" this station.

loadStartingModules

private final void loadStartingModules()

getAttack

public AttackBase getAttack()
Description copied from class: StationBase
Return the attack characteristics of this station.

Specified by:
getAttack in class StationBase

getDefense

public DefenseBase getDefense()
Description copied from class: StationBase
Return the defense characteristics of this station.

Specified by:
getDefense in class StationBase

writeStatics

public static void writeStatics(java.io.ObjectOutputStream out)
                         throws java.io.IOException
java.io.IOException

readStatics

public static void readStatics(java.io.ObjectInputStream in)
                        throws java.io.IOException
java.io.IOException

addModuleToPowerGroup

public void addModuleToPowerGroup(Module_001_Station module)

addModuleToShieldGroup

public void addModuleToShieldGroup(Module_001_Station module)

addModuleToAttackGroup

public void addModuleToAttackGroup(Module_001_Station module)

addModuleToStationManufacturingGroup

public void addModuleToStationManufacturingGroup(Module_001_Station module)

addModuleToShipManufacturingGroup

public void addModuleToShipManufacturingGroup(Module_001_Station module)

addModuleToEnvironmentalGroup

public void addModuleToEnvironmentalGroup(Module_001_Station module)

addModuleToScannerGroup

public void addModuleToScannerGroup(Module_001_Station module)

addModuleToResearchGroup

public void addModuleToResearchGroup(Module_001_Station module)

addModuleToEngineeringGroup

public void addModuleToEngineeringGroup(Module_001_Station module)

addModuleToStorageGroup

public void addModuleToStorageGroup(Module_001_Station module)

addModuleToMiningGroup

public void addModuleToMiningGroup(Module_001_Station module)

removeModuleFromPowerGroup

public void removeModuleFromPowerGroup(Module_001_Station module)

removeModuleFromShieldGroup

public void removeModuleFromShieldGroup(Module_001_Station module)

removeModuleFromAttackGroup

public void removeModuleFromAttackGroup(Module_001_Station module)

removeModuleFromStationManufacturingGroup

public void removeModuleFromStationManufacturingGroup(Module_001_Station module)

removeModuleFromShipManufacturingGroup

public void removeModuleFromShipManufacturingGroup(Module_001_Station module)

removeModuleFromEnvironmentalGroup

public void removeModuleFromEnvironmentalGroup(Module_001_Station module)

removeModuleFromScannerGroup

public void removeModuleFromScannerGroup(Module_001_Station module)

removeModuleFromResearchGroup

public void removeModuleFromResearchGroup(Module_001_Station module)

removeModuleFromEngineeringGroup

public void removeModuleFromEngineeringGroup(Module_001_Station module)

removeModuleFromStorageGroup

public void removeModuleFromStorageGroup(Module_001_Station module)

removeModuleFromMiningGroup

public void removeModuleFromMiningGroup(Module_001_Station module)

getPowerGroup

public AggregatedResourceGroup getPowerGroup()

getShieldGroup

public AggregatedResourceGroup getShieldGroup()

getAttackGroup

public AggregatedResourceGroup getAttackGroup()

getStationManufacturingGroup

public AggregatedResourceGroup getStationManufacturingGroup()

getShipManufacturingGroup

public AggregatedResourceGroup getShipManufacturingGroup()

getEnvironmentalGroup

public AggregatedResourceGroup getEnvironmentalGroup()

getScannerGroup

public AggregatedResourceGroup getScannerGroup()

getResearchGroup

public AggregatedResourceGroup getResearchGroup()

getEngineeringGroup

public AggregatedResourceGroup getEngineeringGroup()

getStorageGroup

public AggregatedResourceGroup getStorageGroup()

getMiningGroup

public AggregatedResourceGroup getMiningGroup()


Copyright © 2001 Universe Dev Team All Rights Reserved.