Class Cleaner
java.lang.Object
jadex.quickstart.cleanerworld.environment.impl.LocationObject
jadex.quickstart.cleanerworld.environment.impl.Cleaner
- All Implemented Interfaces:
ICleaner,ILocationObject,Cloneable
Cleaner object represents knowledge about a cleaner robot.
-
Field Summary
Fields inherited from class jadex.quickstart.cleanerworld.environment.impl.LocationObject
pcs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone the object.Get the carried-waste of this Cleaner.doubleGet the chargestate of this Cleaner.doubleGet the vision-range of this Cleaner.voidsetCarriedWaste(Waste carriedwaste) Set the carried-waste of this Cleaner.voidsetChargestate(double chargestate) Set the chargestate of this Cleaner.voidsetVisionRange(double visionrange) Set the vision-range of this Cleaner.toString()Get a string representation of this Cleaner.voidUpdate this cleaner.Methods inherited from class jadex.quickstart.cleanerworld.environment.impl.LocationObject
addPropertyChangeListener, equals, getId, getLocation, getPropertyChangeHandler, hashCode, removePropertyChangeListener, setId, setLocation, updateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jadex.quickstart.cleanerworld.environment.ICleaner
getId, getLocation
-
Constructor Details
-
Method Details
-
getChargestate
public double getChargestate()Get the chargestate of this Cleaner.- Specified by:
getChargestatein interfaceICleaner- 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
Get the carried-waste of this Cleaner.- Specified by:
getCarriedWastein interfaceICleaner- Returns:
- The carried waste, if any.
-
setCarriedWaste
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:
getVisionRangein interfaceICleaner- 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
Update this cleaner. -
toString
Get a string representation of this Cleaner. -
clone
Clone the object.- Overrides:
clonein classLocationObject
-