Interface IContractBroker

    • 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:
        getWare in interface ITradePerson
        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.