Class ContractBrookerState

  • All Implemented Interfaces:
    IContractBroker, IPerson, ITradePerson

    public class ContractBrookerState
    extends BaseTradePerson
    implements IContractBroker
    Implementation of a contract brooker. Every city can have a contract brooker and is referenced through it's TavernEngine.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 20, 2013
    • Field Detail

      • name

        private java.lang.String name
      • ware

        private final IWare ware
      • deliveredAmount

        private int deliveredAmount
    • Method Detail

      • update

        @PostConstruct
        private void update()
        Generate a name of the broker.
      • deliver

        public void deliver​(int amount)
        Description copied from interface: IContractBroker
        Deliver a specified amount.
        Specified by:
        deliver in interface IContractBroker
        Parameters:
        amount - deliver the amount of ware.