jfreerails.world.station
Class PlannedTrain

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

public class PlannedTrain
extends java.lang.Object
implements FreerailsSerializable

This class represents the blue print for what an engine shop is producing.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  int engineType
           
private static long serialVersionUID
           
private  ImInts wagonTypes
           
 
Constructor Summary
PlannedTrain(int e, int[] wagons)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getEngineType()
           
 ImInts getWagonTypes()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

engineType

private final int engineType

wagonTypes

private final ImInts wagonTypes
Constructor Detail

PlannedTrain

public PlannedTrain(int e,
                    int[] wagons)
Method Detail

hashCode

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

equals

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

getEngineType

public int getEngineType()

getWagonTypes

public ImInts getWagonTypes()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object