public class Vision extends LocationObject
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
cleaners
Attribute for slot cleaners.
|
protected boolean |
daytime
Attribute for slot daytime.
|
protected java.util.List |
stations
Attribute for slot stations.
|
protected java.util.List |
wastebins
Attribute for slot wastebins.
|
protected java.util.List |
wastes
Attribute for slot wastes.
|
id, location, pcs| Constructor and Description |
|---|
Vision()
Create a new Vision.
|
Vision(java.util.List wastes,
java.util.List wastebins,
java.util.List stations,
java.util.List cleaners,
boolean daytime)
Create a new vision.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCleaner(Cleaner cleaner)
Add a cleaner to this Vision.
|
void |
addStation(Chargingstation station)
Add a station to this Vision.
|
void |
addWaste(Waste waste)
Add a waste to this Vision.
|
void |
addWastebin(Wastebin wastebin)
Add a wastebin to this Vision.
|
java.lang.Object |
clone()
Clone the object.
|
Cleaner |
getCleaner(int idx)
Get an cleaners of this Vision.
|
Cleaner[] |
getCleaners()
Get the cleaners of this Vision.
|
Chargingstation |
getStation(int idx)
Get an stations of this Vision.
|
Chargingstation[] |
getStations()
Get the stations of this Vision.
|
Waste |
getWaste(int idx)
Get an wastes of this Vision.
|
Wastebin |
getWastebin(int idx)
Get an wastebins of this Vision.
|
Wastebin[] |
getWastebins()
Get the wastebins of this Vision.
|
Waste[] |
getWastes()
Get the wastes of this Vision.
|
boolean |
isDaytime()
Get the daytime of this Vision.
|
boolean |
removeCleaner(Cleaner cleaner)
Remove a cleaner from this Vision.
|
boolean |
removeStation(Chargingstation station)
Remove a station from this Vision.
|
boolean |
removeWaste(Waste waste)
Remove a waste from this Vision.
|
boolean |
removeWastebin(Wastebin wastebin)
Remove a wastebin from this Vision.
|
void |
setCleaner(int idx,
Cleaner cleaner)
Set a cleaner to this Vision.
|
void |
setCleaners(Cleaner[] cleaners)
Set the cleaners of this Vision.
|
void |
setDaytime(boolean daytime)
Set the daytime of this Vision.
|
void |
setStation(int idx,
Chargingstation station)
Set a station to this Vision.
|
void |
setStations(Chargingstation[] stations)
Set the stations of this Vision.
|
void |
setWaste(int idx,
Waste waste)
Set a waste to this Vision.
|
void |
setWastebin(int idx,
Wastebin wastebin)
Set a wastebin to this Vision.
|
void |
setWastebins(Wastebin[] wastebins)
Set the wastebins of this Vision.
|
void |
setWastes(Waste[] wastes)
Set the wastes of this Vision.
|
java.lang.String |
toString()
Get a string representation of this Vision.
|
addPropertyChangeListener, equals, getId, getLocation, hashCode, removePropertyChangeListener, setId, setLocationprotected java.util.List cleaners
protected java.util.List wastebins
protected java.util.List wastes
protected java.util.List stations
protected boolean daytime
public Vision()
public Vision(java.util.List wastes,
java.util.List wastebins,
java.util.List stations,
java.util.List cleaners,
boolean daytime)
public Cleaner[] getCleaners()
public void setCleaners(Cleaner[] cleaners)
cleaners - the value to be setpublic Cleaner getCleaner(int idx)
idx - The index.public void setCleaner(int idx,
Cleaner cleaner)
idx - The index.cleaner - a value to be addedpublic void addCleaner(Cleaner cleaner)
cleaner - a value to be removedpublic boolean removeCleaner(Cleaner cleaner)
cleaner - a value to be removedpublic Wastebin[] getWastebins()
public void setWastebins(Wastebin[] wastebins)
wastebins - the value to be setpublic Wastebin getWastebin(int idx)
idx - The index.public void setWastebin(int idx,
Wastebin wastebin)
idx - The index.wastebin - a value to be addedpublic void addWastebin(Wastebin wastebin)
wastebin - a value to be removedpublic boolean removeWastebin(Wastebin wastebin)
wastebin - a value to be removedpublic Waste[] getWastes()
public void setWastes(Waste[] wastes)
wastes - the value to be setpublic Waste getWaste(int idx)
idx - The index.public void setWaste(int idx,
Waste waste)
idx - The index.waste - a value to be addedpublic void addWaste(Waste waste)
waste - a value to be removedpublic boolean removeWaste(Waste waste)
waste - a value to be removedpublic Chargingstation[] getStations()
public void setStations(Chargingstation[] stations)
stations - the value to be setpublic Chargingstation getStation(int idx)
idx - The index.public void setStation(int idx,
Chargingstation station)
idx - The index.station - a value to be addedpublic void addStation(Chargingstation station)
station - a value to be removedpublic boolean removeStation(Chargingstation station)
station - a value to be removedpublic boolean isDaytime()
public void setDaytime(boolean daytime)
daytime - the value to be setpublic java.lang.String toString()
toString in class LocationObjectpublic java.lang.Object clone()
clone in class LocationObject