Class PatrolState

    • Constructor Detail

      • PatrolState

        public PatrolState()
    • Method Detail

      • getName

        public abstract java.lang.String getName()
        Get the name of the client.
        Returns:
        name of the person
      • setName

        public abstract void setName​(java.lang.String name)
        Set the name of the client.
        Parameters:
        name - of the client
      • getDestinations

        public abstract ICity[] getDestinations()
        Retrieve the destinations
        Returns:
        array of destination cities.
      • setDestinations

        public abstract void setDestinations​(ICity[] cities)
        Set the destination city of the patrol.
        Parameters:
        cities - array of destination cities.
      • getPremium

        public abstract int getPremium()
        Retrieve the premium for successful finishing the patrol.
        Returns:
        premium for completing the patrol
      • setPremium

        public abstract void setPremium​(int premium)
        Set the premium for task completion.
        Parameters:
        premium - for completing the patrol
      • setCurrentDestIndex

        public abstract void setCurrentDestIndex​(int index)
        Set the current index in the destination list.
        Parameters:
        index - current index of the destination
      • getCurrentDestIndex

        public abstract int getCurrentDestIndex()
        Retrieve the current index in the destination list.
        Returns:
        current index of the destination.