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 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