public class BuyerState extends BaseTavernPerson implements IBuyer, IUpdateableState
isPresentPropertyisPresentProperty| Modifier and Type | Field and Description |
|---|---|
private AmountablePrice<IWare> |
amountablePrice |
private Date |
date |
private org.joda.time.DateTime |
deadline |
private static RandomNameLoader |
firstNameLoader |
private static RandomNameLoader |
lastNameLoader |
private String |
name |
private Random |
rnd |
private IWare |
ware |
| Constructor and Description |
|---|
BuyerState() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
getTimeFrame()
Date until which the wares have to be delivered.
|
void |
update()
Update the state.
|
arrive, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leaveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAmountablePrice, getName, getWarearrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity@Autowired private Random rnd
@Autowired private Date date
private String name
private org.joda.time.DateTime deadline
private IWare ware
private AmountablePrice<IWare> amountablePrice
private static RandomNameLoader firstNameLoader
private static RandomNameLoader lastNameLoader
public org.joda.time.DateTime getTimeFrame()
IBuyergetTimeFrame in interface IBuyerpublic void update()
IUpdateableStateupdate in interface IUpdateableStateCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.