jfreerails.controller
Class BalanceSheetGenerator

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

public class BalanceSheetGenerator
extends java.lang.Object

Generates the balance sheet - note, its fields are read using reflection so don't change their names.

Author:
Luke

Nested Class Summary
static class BalanceSheetGenerator.Stats
           
 
Field Summary
private  GameCalendar cal
           
(package private)  GameTime from
           
(package private)  FreerailsPrincipal principal
           
(package private)  GameTime to
           
 BalanceSheetGenerator.Stats total
           
(package private)  ReadOnlyWorld w
           
 java.lang.String year
           
 BalanceSheetGenerator.Stats ytd
           
 
Constructor Summary
BalanceSheetGenerator(ReadOnlyWorld w, FreerailsPrincipal principal)
           
 
Method Summary
static Money calTrackTotal(Transaction.Category category, ReadOnlyWorld w, FreerailsPrincipal principal, GameTime startTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

GameTime from

to

GameTime to

w

final ReadOnlyWorld w

principal

final FreerailsPrincipal principal

cal

private GameCalendar cal

year

public java.lang.String year

total

public BalanceSheetGenerator.Stats total

ytd

public BalanceSheetGenerator.Stats ytd
Constructor Detail

BalanceSheetGenerator

public BalanceSheetGenerator(ReadOnlyWorld w,
                             FreerailsPrincipal principal)
Method Detail

calTrackTotal

public static Money calTrackTotal(Transaction.Category category,
                                  ReadOnlyWorld w,
                                  FreerailsPrincipal principal,
                                  GameTime startTime)