public class Cleaner extends LocationObject
Modifier and Type | Field and Description |
---|---|
protected Waste |
carriedwaste
Attribute for slot carried-waste.
|
protected double |
chargestate
Attribute for slot chargestate.
|
protected java.lang.String |
name
Attribute for slot name.
|
protected double |
visionrange
Attribute for slot vision-range.
|
id, location, pcs
Constructor and Description |
---|
Cleaner()
Create a new Cleaner.
|
Cleaner(Location location,
java.lang.String name,
Waste carriedwaste,
double vision,
double chargestate)
Create a new Cleaner.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone the object.
|
Waste |
getCarriedWaste()
Get the carried-waste of this Cleaner.
|
double |
getChargestate()
Get the chargestate of this Cleaner.
|
java.lang.String |
getName()
Get the name of this Cleaner.
|
double |
getVisionRange()
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 |
setName(java.lang.String name)
Set the name of this Cleaner.
|
void |
setVisionRange(double visionrange)
Set the vision-range of this Cleaner.
|
java.lang.String |
toString()
Get a string representation of this Cleaner.
|
void |
update(Cleaner cl)
Update this wastebin.
|
addPropertyChangeListener, equals, getId, getLocation, hashCode, removePropertyChangeListener, setId, setLocation
protected double chargestate
protected Waste carriedwaste
protected double visionrange
protected java.lang.String name
public double getChargestate()
public void setChargestate(double chargestate)
chargestate
- the value to be setpublic Waste getCarriedWaste()
public void setCarriedWaste(Waste carriedwaste)
carriedwaste
- the value to be setpublic double getVisionRange()
public void setVisionRange(double visionrange)
visionrange
- the value to be setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the value to be setpublic void update(Cleaner cl)
public java.lang.String toString()
toString
in class LocationObject
public java.lang.Object clone()
clone
in class LocationObject