Interface ITradeAgreement
-
- All Known Implementing Classes:
TradeAgreement
public interface ITradeAgreementInterface describing a trade agreement.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 04, 2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMediterreanCitygetTradeLocation()Retrieve the partner city of the trade.java.time.LocalDateTimegetValidTill()Retrieve the date till when the agreement is valid.IWaregetWare()Retrieve the ware for this trade agreement.AmountablePrice<IWare>getWareAndAmount()Retreive the amount and the price which is guaranteed.
-
-
-
Method Detail
-
getTradeLocation
IMediterreanCity getTradeLocation()
Retrieve the partner city of the trade.- Returns:
- city in the mediterrean sea.
-
getValidTill
java.time.LocalDateTime getValidTill()
Retrieve the date till when the agreement is valid.- Returns:
- date until the agreement is valid.
-
getWareAndAmount
AmountablePrice<IWare> getWareAndAmount()
Retreive the amount and the price which is guaranteed.- Returns:
- amount and price of the agreement
-
getWare
IWare getWare()
Retrieve the ware for this trade agreement.- Returns:
- ware of the agreement.
-
-