Class CleanerAgent.AchieveDropWaste

  • Enclosing class:
    CleanerAgent

    public class CleanerAgent.AchieveDropWaste
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Wastebin wastebin
      The wastebin.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkContext()
      Drop the goal when the wastebin is full.
      Wastebin getWastebin()
      Get the wastebin.
      • Methods inherited from class java.lang.Object

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

      • wastebin

        protected Wastebin wastebin
        The wastebin.
    • Constructor Detail

      • AchieveDropWaste

        public AchieveDropWaste​(Wastebin wastebin)
        Create a new goal.
        Parameters:
        wastebin - The wastebin.
    • Method Detail

      • checkContext

        public boolean checkContext()
        Drop the goal when the wastebin is full.
      • getWastebin

        public Wastebin getWastebin()
        Get the wastebin.
        Returns:
        The wastebin.