Class LoanerState
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.impl.LoanerState
-
-
Field Summary
Fields Modifier and Type Field Description private ICity
city
private CityProperties
cityProperties
private Date
date
private java.util.List<IDebt>
debts
private java.util.List<ILoanProposal>
loanProposals
private java.util.List<ILoanRequest>
requests
-
Constructor Summary
Constructors Constructor Description LoanerState(ICity city)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(LoanProposal proposal)
Add a loan proposal.void
add(LoanRequest request)
Add a loan request.void
addDebt(IDebt debt)
Add a new debt to the list.void
clearOldRequests()
Remove request that are older than a certain time span.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.city.ILoaner
getCity, getDebts, getLoanProposals, getRequests
-
-
-
-
Field Detail
-
city
private final ICity city
-
debts
private java.util.List<IDebt> debts
-
requests
private java.util.List<ILoanRequest> requests
-
loanProposals
private java.util.List<ILoanProposal> loanProposals
-
date
@Autowired private Date date
-
cityProperties
@Autowired private CityProperties cityProperties
-
-
Constructor Detail
-
LoanerState
public LoanerState(ICity city)
-
-
Method Detail
-
add
public void add(LoanProposal proposal)
Description copied from interface:ILoaner
Add a loan proposal.
-
add
public void add(LoanRequest request)
Description copied from interface:ILoaner
Add a loan request.
-
clearOldRequests
public void clearOldRequests()
Description copied from interface:ILoaner
Remove request that are older than a certain time span.- Specified by:
clearOldRequests
in interfaceILoaner
-
-