jfreerails.controller
Class CargoElementObject

java.lang.Object
  extended by jfreerails.controller.CargoElementObject

public class CargoElementObject
extends java.lang.Object

Small data object to store the rate of supply of a cargo.

Author:
Scott Bennett Date: 14 May 2003

Field Summary
private  int rate
           
private  int type
           
 
Constructor Summary
CargoElementObject(int rate, int type)
           
 
Method Summary
 int getRate()
           
 int getType()
           
 void setRate(int rate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rate

private int rate

type

private final int type
Constructor Detail

CargoElementObject

public CargoElementObject(int rate,
                          int type)
Method Detail

getRate

public int getRate()

setRate

public void setRate(int rate)

getType

public int getType()