jfreerails.server
Class TrackMaintenanceMoveGenerator

java.lang.Object
  extended by jfreerails.server.TrackMaintenanceMoveGenerator

public class TrackMaintenanceMoveGenerator
extends java.lang.Object

This class iterates over the entries in the BankAccount and counts the number of units of each track type, then calculates the cost of maintenance.

Author:
Luke Lindsay

Field Summary
private  MoveReceiver moveReceiver
           
 
Constructor Summary
TrackMaintenanceMoveGenerator(MoveReceiver mr)
           
 
Method Summary
static AddTransactionMove generateMove(World w, FreerailsPrincipal principal, Transaction.Category category)
           
 void update(World w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moveReceiver

private final MoveReceiver moveReceiver
Constructor Detail

TrackMaintenanceMoveGenerator

public TrackMaintenanceMoveGenerator(MoveReceiver mr)
Method Detail

generateMove

public static AddTransactionMove generateMove(World w,
                                              FreerailsPrincipal principal,
                                              Transaction.Category category)

update

public void update(World w)