Interface ITradePerson
-
- All Superinterfaces:
IPerson
- All Known Subinterfaces:
IContractBroker,ITrader
- All Known Implementing Classes:
BaseTradePerson,ContractBrookerState,TraderState
public interface ITradePerson extends IPerson
Interface defining a person that trades ware.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 23, 2013
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAmount()Amount of the ware that is to be delivered.intgetAvgPricePerItem()Get the price of a single itemIWaregetWare()The ware the broker is to be delivered.voidsetAmount(int amount)Set the amount of the tradevoidsetAvgPricePerItem(int avgPricePerItem)Set the price per itemvoidsetWare(IWare ware)Set the ware for the trade.
-
-
-
Method Detail
-
getWare
IWare getWare()
The ware the broker is to be delivered.- Returns:
- ware the trader whiches to aquire.
-
getAmount
int getAmount()
Amount of the ware that is to be delivered. The amount is in the ware specific quantity.- Returns:
- amount of the ware
-
getAvgPricePerItem
int getAvgPricePerItem()
Get the price of a single item- Returns:
- average price per item.
-
setWare
void setWare(IWare ware)
Set the ware for the trade.- Parameters:
ware- of the trade
-
setAmount
void setAmount(int amount)
Set the amount of the trade- Parameters:
amount- of the ware to be traded
-
setAvgPricePerItem
void setAvgPricePerItem(int avgPricePerItem)
Set the price per item- Parameters:
avgPricePerItem- average price per item of the ware.
-
-