jfreerails.world.station
Class SupplyAtStation

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

public class SupplyAtStation
extends java.lang.Object
implements FreerailsSerializable

This class represents the supply at a station.

Author:
Luke
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  ImInts supply
           
 
Constructor Summary
SupplyAtStation(int[] cargoWaiting)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getSupply(int cargoType)
          Returns the number of car loads of the specified cargo that the station supplies per year.
 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

supply

private final ImInts supply
Constructor Detail

SupplyAtStation

public SupplyAtStation(int[] cargoWaiting)
Method Detail

getSupply

public int getSupply(int cargoType)
Returns the number of car loads of the specified cargo that the station supplies per year.


equals

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

hashCode

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