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.double
Get the chargestate of this Cleaner.double
Get the vision-range of this Cleaner.void
setCarriedWaste
(Waste carriedwaste) Set the carried-waste of this Cleaner.void
setChargestate
(double chargestate) Set the chargestate of this Cleaner.void
setVisionRange
(double visionrange) Set the vision-range of this Cleaner.toString()
Get a string representation of this Cleaner.void
Update this cleaner.Methods inherited from class jadex.quickstart.cleanerworld.environment.impl.LocationObject
addPropertyChangeListener, equals, getId, getLocation, getPropertyChangeHandler, hashCode, removePropertyChangeListener, setId, setLocation, update
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getChargestate
in 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:
getCarriedWaste
in 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:
getVisionRange
in 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:
clone
in classLocationObject
-