java.lang.Object
jadex.quickstart.cleanerworld.environment.impl.LocationObject
jadex.quickstart.cleanerworld.environment.impl.Cleaner
All Implemented Interfaces:
ICleaner, ILocationObject, Cloneable

public class Cleaner extends LocationObject implements ICleaner
Cleaner object represents knowledge about a cleaner robot.
  • Constructor Details

    • Cleaner

      public Cleaner()
      Create a new Cleaner.
    • Cleaner

      public Cleaner(String name, Location location, Waste carriedwaste, double vision, double chargestate)
      Create a new Cleaner.
  • Method Details

    • getChargestate

      public double getChargestate()
      Get the chargestate of this Cleaner.
      Specified by:
      getChargestate in interface ICleaner
      Returns:
      Charge state of the battery (0.0-1.0).
    • setChargestate

      public void setChargestate(double chargestate)
      Set the chargestate of this Cleaner.
      Parameters:
      chargestate - the value to be set
    • getCarriedWaste

      public Waste getCarriedWaste()
      Get the carried-waste of this Cleaner.
      Specified by:
      getCarriedWaste in interface ICleaner
      Returns:
      The carried waste, if any.
    • setCarriedWaste

      public void setCarriedWaste(Waste carriedwaste)
      Set the carried-waste of this Cleaner.
      Parameters:
      carriedwaste - the value to be set
    • getVisionRange

      public double getVisionRange()
      Get the vision-range of this Cleaner.
      Specified by:
      getVisionRange in interface ICleaner
      Returns:
      The distance that this cleaner is able to see.
    • setVisionRange

      public void setVisionRange(double visionrange)
      Set the vision-range of this Cleaner.
      Parameters:
      visionrange - the value to be set
    • update

      public void update(Cleaner cl)
      Update this cleaner.
    • toString

      public String toString()
      Get a string representation of this Cleaner.
      Overrides:
      toString in class Object
      Returns:
      The string representation.
    • clone

      public Cleaner clone()
      Clone the object.
      Overrides:
      clone in class LocationObject