Class CleanerAgent.AchieveMoveTo

  • Enclosing class:
    CleanerAgent

    public class CleanerAgent.AchieveMoveTo
    extends java.lang.Object
    The goal is used to move to a specific location.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Location location
      The location.
    • Constructor Summary

      Constructors 
      Constructor Description
      AchieveMoveTo​(Location location)
      Create a new goal.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkTarget()
      The goal is achieved when the position of the cleaner is near to the target position.
      Location getLocation()
      Get the location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • location

        protected Location location
        The location.
    • Constructor Detail

      • AchieveMoveTo

        public AchieveMoveTo​(Location location)
        Create a new goal.
        Parameters:
        location - The location.
    • Method Detail

      • checkTarget

        public boolean checkTarget()
        The goal is achieved when the position of the cleaner is near to the target position.
      • getLocation

        public Location getLocation()
        Get the location.
        Returns:
        The location.