jfreerails.world.station
Class ConvertedAtStation

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

public class ConvertedAtStation
extends java.lang.Object
implements FreerailsSerializable

Records which cargos are converted to other cargos at a station.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  ImInts convertedTo
           
private static int NOT_CONVERTED
           
private static long serialVersionUID
           
 
Constructor Summary
ConvertedAtStation(int[] convertedTo)
           
 
Method Summary
static int[] emptyConversionArray(int numberOfCargoTypes)
           
static ConvertedAtStation emptyInstance(int numberOfCargoTypes)
           
 boolean equals(java.lang.Object o)
           
 int getConversion(int cargoNumber)
           
 int hashCode()
           
 boolean isCargoConverted(int cargoNumber)
           
 
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

NOT_CONVERTED

private static final int NOT_CONVERTED
See Also:
Constant Field Values

convertedTo

private final ImInts convertedTo
Constructor Detail

ConvertedAtStation

public ConvertedAtStation(int[] convertedTo)
Method Detail

emptyInstance

public static ConvertedAtStation emptyInstance(int numberOfCargoTypes)

emptyConversionArray

public static int[] emptyConversionArray(int numberOfCargoTypes)

isCargoConverted

public boolean isCargoConverted(int cargoNumber)

getConversion

public int getConversion(int cargoNumber)

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