Interface IContractBroker
-
- All Superinterfaces:
IPerson,ITradePerson
- All Known Implementing Classes:
ContractBrookerState
public interface IContractBroker extends ITradePerson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeliver(int amount)Deliver a specified amount.AmountablePrice<IWare>getAmountAndPrice()Retrieve the amount and price that was agreed upon.intgetDeliveredAmount()Retrieve the amount that was already delivered.java.lang.StringgetName()Get the name of the contract broker.IWaregetWare()The ware that should be delivered.voidsetName(java.lang.String name)Set the name of hte contract broker.-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ITradePerson
getAmount, getAvgPricePerItem, setAmount, setAvgPricePerItem, setWare
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get the name of the contract broker.- Returns:
- name of the contract broker.
-
getAmountAndPrice
AmountablePrice<IWare> getAmountAndPrice()
Retrieve the amount and price that was agreed upon.- Returns:
- amount and price of the ware.
-
getWare
IWare getWare()
The ware that should be delivered.- Specified by:
getWarein interfaceITradePerson- Returns:
- ware to be delivered
-
getDeliveredAmount
int getDeliveredAmount()
Retrieve the amount that was already delivered.- Returns:
- delivered amount of hte ware.
-
deliver
void deliver(int amount)
Deliver a specified amount.- Parameters:
amount- deliver the amount of ware.
-
setName
void setName(java.lang.String name)
Set the name of hte contract broker.- Parameters:
name- of the contract broker.
-
-