| Modifier and Type | Field and Description |
|---|---|
private ICity |
city |
private Date |
date |
private List<IDebt> |
debts |
private static RandomNameLoader |
firstNameLoader |
private static RandomNameLoader |
lastNameLoader |
private List<ILoanProposal> |
loanProposals |
private static int |
MAX_LOAN_PROPOSAL |
private static int |
MAX_REQUESTS |
private static int |
MAX_WEEKS_FOR_REQUEST |
private List<ILoanRequest> |
requests |
private Random |
rnd |
| Constructor and Description |
|---|
LoanerState(ICity city) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDebt(IDebt debt)
Add a new debt to the list.
|
private void |
clearOldRequests() |
private void |
createNewLoanProposal() |
private void |
createNewLoanRequest() |
void |
update()
Regularely update the state of the loaner to present citizens that
require money.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCity, getDebts, getLoanProposals, getRequestsprivate static final int MAX_WEEKS_FOR_REQUEST
private static final int MAX_REQUESTS
private static final int MAX_LOAN_PROPOSAL
private final ICity city
private List<ILoanRequest> requests
private List<ILoanProposal> loanProposals
@Autowired private Date date
@Autowired private Random rnd
private static RandomNameLoader firstNameLoader
private static RandomNameLoader lastNameLoader
public LoanerState(ICity city)
public void update()
ILoanerprivate void createNewLoanProposal()
private void createNewLoanRequest()
private void clearOldRequests()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.