jfreerails.world.station
Class Demand4Cargo

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

public class Demand4Cargo
extends java.lang.Object
implements FreerailsSerializable

This class represents the demand for cargo at a station.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  ImInts demand
           
private static long serialVersionUID
           
 
Constructor Summary
Demand4Cargo(boolean[] demandArray)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean isCargoDemanded(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

demand

private final ImInts demand
Constructor Detail

Demand4Cargo

public Demand4Cargo(boolean[] demandArray)
Method Detail

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

isCargoDemanded

public boolean isCargoDemanded(int cargoNumber)