|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.openpatrician.model.impl.BalanceSheet
public class BalanceSheet
| 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 |
|---|
private final ICity city
private final IPlayer player
private PeriodicalTimeUpdater notifier
private int rentalIncome
private int[] rentalIncomeDays
private int wageCosts
private int[] wageCostsDays
private int propertyTaxes
private int[] propertyTaxesDays
private int officeTrading
private int[] officeTradingDays
private int stewardCosts
private int[] stewardCostsDays
private int otherCosts
private int[] otherCostsDays
| Constructor Detail |
|---|
public BalanceSheet(ICity city,
IPlayer player)
public BalanceSheet(BalanceSheet prevWeek)
prevWeek - | Method Detail |
|---|
public int getRentalIncome()
IBalanceSheet
getRentalIncome in interface IBalanceSheetpublic int getWageCosts()
IBalanceSheet
getWageCosts in interface IBalanceSheetpublic int getPropertyTaxes()
IBalanceSheet
getPropertyTaxes in interface IBalanceSheetpublic int getOfficeTrading()
IBalanceSheet
getOfficeTrading in interface IBalanceSheetpublic int getStewardCost()
IBalanceSheet
getStewardCost in interface IBalanceSheetpublic int getOtherCosts()
IBalanceSheet
getOtherCosts in interface IBalanceSheetpublic void notify(DateObject date)
IPeriodicalUpdatedate
notify in interface IPeriodicalUpdatedate - current date timepublic void stopUpdate()
IBalanceSheet
stopUpdate in interface IBalanceSheetpublic void startUpdate()
IBalanceSheet
startUpdate in interface IBalanceSheet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||