jfreerails.server
Class TrainMaintenanceMoveGenerator

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

public class TrainMaintenanceMoveGenerator
extends java.lang.Object

This class iterates over the entries in the BankAccount and counts the number of trains, then calculates the cost of maintenance.

Author:
Luke Lindsay

Field Summary
private  MoveReceiver moveReceiver
           
 
Constructor Summary
TrainMaintenanceMoveGenerator(MoveReceiver mr)
           
 
Method Summary
private static AddTransactionMove generateMove(World w, FreerailsPrincipal principal)
           
 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

TrainMaintenanceMoveGenerator

public TrainMaintenanceMoveGenerator(MoveReceiver mr)
Method Detail

generateMove

private static AddTransactionMove generateMove(World w,
                                               FreerailsPrincipal principal)

update

public void update(World w)