jfreerails.world.station
Class StationModel

java.lang.Object
  extended by jfreerails.world.station.StationModel
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable

public class StationModel
extends java.lang.Object
implements FreerailsSerializable

This class represents a station.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  int cargoBundleNumber
           
private  ConvertedAtStation converted
           
private  Demand4Cargo demand
           
private  java.lang.String name
           
private  ImList<PlannedTrain> production
          What this station is building.
private static long serialVersionUID
           
private  SupplyAtStation supply
           
 int x
           
 int y
           
 
Constructor Summary
StationModel()
           
StationModel(int x, int y, java.lang.String stationName, int numberOfCargoTypes, int cargoBundle)
           
StationModel(StationModel s, ConvertedAtStation converted)
           
StationModel(StationModel s, Demand4Cargo demand)
           
StationModel(StationModel s, ImList<PlannedTrain> production)
           
StationModel(StationModel s, SupplyAtStation supply)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getCargoBundleID()
           
 ConvertedAtStation getConverted()
           
 Demand4Cargo getDemand()
           
 ImList<PlannedTrain> getProduction()
           
 java.lang.String getStationName()
           
 int getStationX()
           
 int getStationY()
           
 SupplyAtStation getSupply()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

x

public final int x

y

public final int y

name

private final java.lang.String name

supply

private final SupplyAtStation supply

demand

private final Demand4Cargo demand

converted

private final ConvertedAtStation converted

cargoBundleNumber

private final int cargoBundleNumber

production

private final ImList<PlannedTrain> production
What this station is building.

Constructor Detail

StationModel

public StationModel(StationModel s,
                    ConvertedAtStation converted)

StationModel

public StationModel(int x,
                    int y,
                    java.lang.String stationName,
                    int numberOfCargoTypes,
                    int cargoBundle)

StationModel

public StationModel()

StationModel

public StationModel(StationModel s,
                    ImList<PlannedTrain> production)

StationModel

public StationModel(StationModel s,
                    Demand4Cargo demand)

StationModel

public StationModel(StationModel s,
                    SupplyAtStation supply)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getConverted

public ConvertedAtStation getConverted()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getStationName

public java.lang.String getStationName()

getStationX

public int getStationX()

getStationY

public int getStationY()

getProduction

public ImList<PlannedTrain> getProduction()

getDemand

public Demand4Cargo getDemand()

getSupply

public SupplyAtStation getSupply()

getCargoBundleID

public int getCargoBundleID()