jfreerails.world.station
Class StationModel
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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.
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)
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()