Interface ITransportTrader

    • Method Detail

      • getName

        java.lang.String getName()
        Retrieve the name of the trader.
        Returns:
        name of the trader.
      • getDestination

        ICity getDestination()
        Destination city the trader has to get to.
        Returns:
        destination city
      • getNeededCapacity

        int getNeededCapacity()
        Retrieve the needed capacity in bales for the transport.
        Returns:
        requred capacity in bales
      • getPremium

        int getPremium()
        Retrieve the premium.
        Returns:
        promised premium upon completion.
      • setName

        void setName​(java.lang.String name)
        Set the name of the transport trader.
        Parameters:
        name - of the trader
      • setDestination

        void setDestination​(ICity destination)
        Set the destination city
        Parameters:
        destination - city
      • setPremium

        void setPremium​(int premium)
        Set the promised premium
        Parameters:
        premium - to be payed upon completion.
      • setNeededCapacity

        void setNeededCapacity​(int neededCapacity)