public class ContractBrookerState extends BaseTradePerson implements IContractBroker
| Modifier and Type | Field and Description |
|---|---|
private AmountablePrice<IWare> |
amountAndPrice |
private int |
deliveredAmount |
private static RandomNameLoader |
firstNameLoader |
private static RandomNameLoader |
lastNameLoader |
private String |
name |
private IWare |
ware |
| Constructor and Description |
|---|
ContractBrookerState(AmountablePrice<IWare> amountAndPrice,
IWare ware) |
| Modifier and Type | Method and Description |
|---|---|
void |
deliver(int amount)
Deliver a specified amount.
|
private void |
update()
Generate a name of the broker.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAmountAndPrice, getDeliveredAmount, getName, getWare, setNamegetAmount, getAvgPricePerItem, setAmount, setAvgPricePerItem, setWareprivate String name
private final AmountablePrice<IWare> amountAndPrice
private final IWare ware
private int deliveredAmount
private static RandomNameLoader firstNameLoader
private static RandomNameLoader lastNameLoader
public ContractBrookerState(AmountablePrice<IWare> amountAndPrice, IWare ware)
@PostConstruct private void update()
public void deliver(int amount)
IContractBrokerdeliver in interface IContractBrokerCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.