Class Vision
- java.lang.Object
-
- jadex.bdi.examples.cleanerworld_classic.LocationObject
-
- jadex.bdi.examples.cleanerworld_classic.Vision
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Vision extends LocationObject
Editable Java class for concept Vision of cleaner-generated ontology.
-
-
Field Summary
Fields Modifier and Type Field 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.-
Fields inherited from class jadex.bdi.examples.cleanerworld_classic.LocationObject
id, location, pcs
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class jadex.bdi.examples.cleanerworld_classic.LocationObject
addPropertyChangeListener, equals, getId, getLocation, hashCode, removePropertyChangeListener, setId, setLocation
-
-
-
-
Field Detail
-
cleaners
protected java.util.List cleaners
Attribute for slot cleaners.
-
wastebins
protected java.util.List wastebins
Attribute for slot wastebins.
-
wastes
protected java.util.List wastes
Attribute for slot wastes.
-
stations
protected java.util.List stations
Attribute for slot stations.
-
daytime
protected boolean daytime
Attribute for slot daytime.
-
-
Method Detail
-
getCleaners
public Cleaner[] getCleaners()
Get the cleaners of this Vision.- Returns:
- cleaners
-
setCleaners
public void setCleaners(Cleaner[] cleaners)
Set the cleaners of this Vision.- Parameters:
cleaners
- the value to be set
-
getCleaner
public Cleaner getCleaner(int idx)
Get an cleaners of this Vision.- Parameters:
idx
- The index.- Returns:
- cleaners
-
setCleaner
public void setCleaner(int idx, Cleaner cleaner)
Set a cleaner to this Vision.- Parameters:
idx
- The index.cleaner
- a value to be added
-
addCleaner
public void addCleaner(Cleaner cleaner)
Add a cleaner to this Vision.- Parameters:
cleaner
- a value to be removed
-
removeCleaner
public boolean removeCleaner(Cleaner cleaner)
Remove a cleaner from this Vision.- Parameters:
cleaner
- a value to be removed- Returns:
- True when the cleaners have changed.
-
getWastebins
public Wastebin[] getWastebins()
Get the wastebins of this Vision.- Returns:
- wastebins
-
setWastebins
public void setWastebins(Wastebin[] wastebins)
Set the wastebins of this Vision.- Parameters:
wastebins
- the value to be set
-
getWastebin
public Wastebin getWastebin(int idx)
Get an wastebins of this Vision.- Parameters:
idx
- The index.- Returns:
- wastebins
-
setWastebin
public void setWastebin(int idx, Wastebin wastebin)
Set a wastebin to this Vision.- Parameters:
idx
- The index.wastebin
- a value to be added
-
addWastebin
public void addWastebin(Wastebin wastebin)
Add a wastebin to this Vision.- Parameters:
wastebin
- a value to be removed
-
removeWastebin
public boolean removeWastebin(Wastebin wastebin)
Remove a wastebin from this Vision.- Parameters:
wastebin
- a value to be removed- Returns:
- True when the wastebins have changed.
-
getWastes
public Waste[] getWastes()
Get the wastes of this Vision.- Returns:
- wastes
-
setWastes
public void setWastes(Waste[] wastes)
Set the wastes of this Vision.- Parameters:
wastes
- the value to be set
-
getWaste
public Waste getWaste(int idx)
Get an wastes of this Vision.- Parameters:
idx
- The index.- Returns:
- wastes
-
setWaste
public void setWaste(int idx, Waste waste)
Set a waste to this Vision.- Parameters:
idx
- The index.waste
- a value to be added
-
addWaste
public void addWaste(Waste waste)
Add a waste to this Vision.- Parameters:
waste
- a value to be removed
-
removeWaste
public boolean removeWaste(Waste waste)
Remove a waste from this Vision.- Parameters:
waste
- a value to be removed- Returns:
- True when the wastes have changed.
-
getStations
public Chargingstation[] getStations()
Get the stations of this Vision.- Returns:
- stations
-
setStations
public void setStations(Chargingstation[] stations)
Set the stations of this Vision.- Parameters:
stations
- the value to be set
-
getStation
public Chargingstation getStation(int idx)
Get an stations of this Vision.- Parameters:
idx
- The index.- Returns:
- stations
-
setStation
public void setStation(int idx, Chargingstation station)
Set a station to this Vision.- Parameters:
idx
- The index.station
- a value to be added
-
addStation
public void addStation(Chargingstation station)
Add a station to this Vision.- Parameters:
station
- a value to be removed
-
removeStation
public boolean removeStation(Chargingstation station)
Remove a station from this Vision.- Parameters:
station
- a value to be removed- Returns:
- True when the stations have changed.
-
isDaytime
public boolean isDaytime()
Get the daytime of this Vision.- Returns:
- daytime
-
setDaytime
public void setDaytime(boolean daytime)
Set the daytime of this Vision.- Parameters:
daytime
- the value to be set
-
toString
public java.lang.String toString()
Get a string representation of this Vision.- Overrides:
toString
in classLocationObject
- Returns:
- The string representation.
-
clone
public java.lang.Object clone()
Clone the object.- Overrides:
clone
in classLocationObject
-
-