jfreerails.server
Class InterestChargeMoveGenerator

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

public class InterestChargeMoveGenerator
extends java.lang.Object

This class iterates over the entries in the BankAccount and counts the number of outstanding bonds, then calculates the interest due.

Author:
Luke Lindsay

Field Summary
private  MoveReceiver moveReceiver
           
 
Constructor Summary
InterestChargeMoveGenerator(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

InterestChargeMoveGenerator

public InterestChargeMoveGenerator(MoveReceiver mr)
Method Detail

generateMove

private static AddTransactionMove generateMove(World w,
                                               FreerailsPrincipal principal)

update

public void update(World w)