jfreerails.client.view
Class IncomeStatementGenerator
java.lang.Object
jfreerails.client.view.IncomeStatementGenerator
public class IncomeStatementGenerator
- extends java.lang.Object
Generates the income statement- note, its fields are read using reflection so
don't change their names.
- Author:
- Luke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
from
GameTime from
to
GameTime to
w
final ReadOnlyWorld w
principal
final FreerailsPrincipal principal
startyear
private int startyear
cal
private GameCalendar cal
mailTotal
public Money mailTotal
passengersTotal
public Money passengersTotal
fastFreightTotal
public Money fastFreightTotal
slowFreightTotal
public Money slowFreightTotal
bulkFreightTotal
public Money bulkFreightTotal
interestTotal
public Money interestTotal
trainMaintenanceTotal
public Money trainMaintenanceTotal
trackMaintenanceTotal
public Money trackMaintenanceTotal
stationMaintenanceTotal
public Money stationMaintenanceTotal
profitTotal
public Money profitTotal
mailYtd
public Money mailYtd
passengersYtd
public Money passengersYtd
fastFreightYtd
public Money fastFreightYtd
slowFreightYtd
public Money slowFreightYtd
bulkFreightYtd
public Money bulkFreightYtd
interestYtd
public Money interestYtd
trainMaintenanceYtd
public Money trainMaintenanceYtd
trackMaintenanceYtd
public Money trackMaintenanceYtd
stationMaintenanceYtd
public Money stationMaintenanceYtd
profitYtd
public Money profitYtd
year
public java.lang.String year
IncomeStatementGenerator
IncomeStatementGenerator(ReadOnlyWorld w,
FreerailsPrincipal principal)
calRevenue
Money calRevenue(java.lang.String cargoCategory)
calTrainRevenue
Money calTrainRevenue(int trainId)
calTotal
private Money calTotal(Transaction.Category transactionCategory)