jfreerails.world.accounts
Class DeliverCargoReceipt

java.lang.Object
  extended by jfreerails.world.accounts.Receipt
      extended by jfreerails.world.accounts.DeliverCargoReceipt
All Implemented Interfaces:
java.io.Serializable, Transaction, FreerailsSerializable

public class DeliverCargoReceipt
extends Receipt

A credit for delivering cargo.

Author:
Luke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface jfreerails.world.accounts.Transaction
Transaction.Category
 
Field Summary
private  CargoBatch cb
           
private  int quantity
           
private static long serialVersionUID
           
private  int stationId
           
private  int trainId
           
 
Constructor Summary
DeliverCargoReceipt(Money m, int quantity, int stationId, CargoBatch cb, int trainId)
           
 
Method Summary
 CargoBatch getCb()
           
 int getQuantity()
           
 int getStationId()
           
 int getTrainId()
           
 
Methods inherited from class jfreerails.world.accounts.Receipt
deltaAssets, deltaCash, equals, getCategory, 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

cb

private final CargoBatch cb

quantity

private final int quantity

stationId

private final int stationId

trainId

private final int trainId
Constructor Detail

DeliverCargoReceipt

public DeliverCargoReceipt(Money m,
                           int quantity,
                           int stationId,
                           CargoBatch cb,
                           int trainId)
Method Detail

getTrainId

public int getTrainId()

getCb

public CargoBatch getCb()

getQuantity

public int getQuantity()

getStationId

public int getStationId()