ch.sahits.game.openpatrician.model.impl
Class BalanceSheet

java.lang.Object
  extended by ch.sahits.game.openpatrician.model.impl.BalanceSheet
All Implemented Interfaces:
IBalanceSheet, IPeriodicalUpdate

public class BalanceSheet
extends Object
implements IBalanceSheet


Field Summary
private  ICity city
           
private  PeriodicalTimeUpdater notifier
           
private  int officeTrading
           
private  int[] officeTradingDays
           
private  int otherCosts
           
private  int[] otherCostsDays
           
private  IPlayer player
           
private  int propertyTaxes
           
private  int[] propertyTaxesDays
           
private  int rentalIncome
           
private  int[] rentalIncomeDays
           
private  int stewardCosts
           
private  int[] stewardCostsDays
           
private  int wageCosts
           
private  int[] wageCostsDays
           
 
Constructor Summary
BalanceSheet(BalanceSheet prevWeek)
          Initialize a forcast balance sheet by using the balance sheet of the previous week
BalanceSheet(ICity city, IPlayer player)
          Initialize a blank sheet
 
Method Summary
 int getOfficeTrading()
          Retrieve the balance for the office trading
 int getOtherCosts()
          Retrieve other unspecified costs like fines
 int getPropertyTaxes()
          Retrieve the property taxes
 int getRentalIncome()
          Retrieve the rental income
 int getStewardCost()
          Retrieve the wages for the stewards
 int getWageCosts()
          Retrieve the wage costs
 void notify(DateObject date)
          The time defined as period has passed and it is now date
 void startUpdate()
          Start updating the balance sheet with daily updates
 void stopUpdate()
          Stop updating the balance sheet with daily updates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

city

private final ICity city

player

private final IPlayer player

notifier

private PeriodicalTimeUpdater notifier

rentalIncome

private int rentalIncome

rentalIncomeDays

private int[] rentalIncomeDays

wageCosts

private int wageCosts

wageCostsDays

private int[] wageCostsDays

propertyTaxes

private int propertyTaxes

propertyTaxesDays

private int[] propertyTaxesDays

officeTrading

private int officeTrading

officeTradingDays

private int[] officeTradingDays

stewardCosts

private int stewardCosts

stewardCostsDays

private int[] stewardCostsDays

otherCosts

private int otherCosts

otherCostsDays

private int[] otherCostsDays
Constructor Detail

BalanceSheet

public BalanceSheet(ICity city,
                    IPlayer player)
Initialize a blank sheet


BalanceSheet

public BalanceSheet(BalanceSheet prevWeek)
Initialize a forcast balance sheet by using the balance sheet of the previous week

Parameters:
prevWeek -
Method Detail

getRentalIncome

public int getRentalIncome()
Description copied from interface: IBalanceSheet
Retrieve the rental income

Specified by:
getRentalIncome in interface IBalanceSheet
Returns:

getWageCosts

public int getWageCosts()
Description copied from interface: IBalanceSheet
Retrieve the wage costs

Specified by:
getWageCosts in interface IBalanceSheet
Returns:

getPropertyTaxes

public int getPropertyTaxes()
Description copied from interface: IBalanceSheet
Retrieve the property taxes

Specified by:
getPropertyTaxes in interface IBalanceSheet
Returns:

getOfficeTrading

public int getOfficeTrading()
Description copied from interface: IBalanceSheet
Retrieve the balance for the office trading

Specified by:
getOfficeTrading in interface IBalanceSheet
Returns:

getStewardCost

public int getStewardCost()
Description copied from interface: IBalanceSheet
Retrieve the wages for the stewards

Specified by:
getStewardCost in interface IBalanceSheet
Returns:

getOtherCosts

public int getOtherCosts()
Description copied from interface: IBalanceSheet
Retrieve other unspecified costs like fines

Specified by:
getOtherCosts in interface IBalanceSheet
Returns:

notify

public void notify(DateObject date)
Description copied from interface: IPeriodicalUpdate
The time defined as period has passed and it is now date

Specified by:
notify in interface IPeriodicalUpdate
Parameters:
date - current date time

stopUpdate

public void stopUpdate()
Description copied from interface: IBalanceSheet
Stop updating the balance sheet with daily updates

Specified by:
stopUpdate in interface IBalanceSheet

startUpdate

public void startUpdate()
Description copied from interface: IBalanceSheet
Start updating the balance sheet with daily updates

Specified by:
startUpdate in interface IBalanceSheet


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.