Interface IBuyer
-
- All Superinterfaces:
IPerson
,ISideRoomPerson
,ITavernPerson
- All Known Implementing Classes:
BuyerState
public interface IBuyer extends ISideRoomPerson
A buyer promises to buy wares within a given time frame at a certain price. The bought wares will not be sold to the city.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 27, 2013
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AmountablePrice<IWare>
getAmountablePrice()
Retrieve the amount and price of the ware.java.lang.String
getName()
Retrieve the buyers name.java.time.LocalDateTime
getTimeFrame()
Date until which the wares have to be delivered.IWare
getWare()
Wares that are to be delivered.void
setAmountablePrice(AmountablePrice<IWare> amountablePrice)
Define the amount and price for the ware.void
setDeadline(java.time.LocalDateTime deadline)
Set the deadline untill when the wares must be supplied.void
setName(java.lang.String name)
Set the name of the buyer.void
setWare(IWare ware)
Set the ware to be supplied.-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ITavernPerson
arrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Retrieve the buyers name.- Returns:
- name of the buyer
-
getTimeFrame
java.time.LocalDateTime getTimeFrame()
Date until which the wares have to be delivered.- Returns:
- deadline until when the wares need to be delivered.
-
getWare
IWare getWare()
Wares that are to be delivered.- Returns:
- ware to be delivered
-
getAmountablePrice
AmountablePrice<IWare> getAmountablePrice()
Retrieve the amount and price of the ware.- Returns:
- amount and price for the ware.
-
setName
void setName(java.lang.String name)
Set the name of the buyer.- Parameters:
name
- of the buyer
-
setDeadline
void setDeadline(java.time.LocalDateTime deadline)
Set the deadline untill when the wares must be supplied.- Parameters:
deadline
- date until when the wares must be ready
-
setWare
void setWare(IWare ware)
Set the ware to be supplied.- Parameters:
ware
- to be supplied.
-
setAmountablePrice
void setAmountablePrice(AmountablePrice<IWare> amountablePrice)
Define the amount and price for the ware.- Parameters:
amountablePrice
- amount and price of the ware
-
-