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 SummaryFields Modifier and Type Field Description protected java.util.ListcleanersAttribute for slot cleaners.protected booleandaytimeAttribute for slot daytime.protected java.util.ListstationsAttribute for slot stations.protected java.util.ListwastebinsAttribute for slot wastebins.protected java.util.ListwastesAttribute for slot wastes.- 
Fields inherited from class jadex.bdi.examples.cleanerworld_classic.LocationObjectid, location, pcs
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCleaner(Cleaner cleaner)Add a cleaner to this Vision.voidaddStation(Chargingstation station)Add a station to this Vision.voidaddWaste(Waste waste)Add a waste to this Vision.voidaddWastebin(Wastebin wastebin)Add a wastebin to this Vision.java.lang.Objectclone()Clone the object.CleanergetCleaner(int idx)Get an cleaners of this Vision.Cleaner[]getCleaners()Get the cleaners of this Vision.ChargingstationgetStation(int idx)Get an stations of this Vision.Chargingstation[]getStations()Get the stations of this Vision.WastegetWaste(int idx)Get an wastes of this Vision.WastebingetWastebin(int idx)Get an wastebins of this Vision.Wastebin[]getWastebins()Get the wastebins of this Vision.Waste[]getWastes()Get the wastes of this Vision.booleanisDaytime()Get the daytime of this Vision.booleanremoveCleaner(Cleaner cleaner)Remove a cleaner from this Vision.booleanremoveStation(Chargingstation station)Remove a station from this Vision.booleanremoveWaste(Waste waste)Remove a waste from this Vision.booleanremoveWastebin(Wastebin wastebin)Remove a wastebin from this Vision.voidsetCleaner(int idx, Cleaner cleaner)Set a cleaner to this Vision.voidsetCleaners(Cleaner[] cleaners)Set the cleaners of this Vision.voidsetDaytime(boolean daytime)Set the daytime of this Vision.voidsetStation(int idx, Chargingstation station)Set a station to this Vision.voidsetStations(Chargingstation[] stations)Set the stations of this Vision.voidsetWaste(int idx, Waste waste)Set a waste to this Vision.voidsetWastebin(int idx, Wastebin wastebin)Set a wastebin to this Vision.voidsetWastebins(Wastebin[] wastebins)Set the wastebins of this Vision.voidsetWastes(Waste[] wastes)Set the wastes of this Vision.java.lang.StringtoString()Get a string representation of this Vision.- 
Methods inherited from class jadex.bdi.examples.cleanerworld_classic.LocationObjectaddPropertyChangeListener, equals, getId, getLocation, hashCode, removePropertyChangeListener, setId, setLocation
 
- 
 
- 
- 
- 
Field Detail- 
cleanersprotected java.util.List cleaners Attribute for slot cleaners.
 - 
wastebinsprotected java.util.List wastebins Attribute for slot wastebins.
 - 
wastesprotected java.util.List wastes Attribute for slot wastes.
 - 
stationsprotected java.util.List stations Attribute for slot stations.
 - 
daytimeprotected boolean daytime Attribute for slot daytime.
 
- 
 - 
Method Detail- 
getCleanerspublic Cleaner[] getCleaners() Get the cleaners of this Vision.- Returns:
- cleaners
 
 - 
setCleanerspublic void setCleaners(Cleaner[] cleaners) Set the cleaners of this Vision.- Parameters:
- cleaners- the value to be set
 
 - 
getCleanerpublic Cleaner getCleaner(int idx) Get an cleaners of this Vision.- Parameters:
- idx- The index.
- Returns:
- cleaners
 
 - 
setCleanerpublic void setCleaner(int idx, Cleaner cleaner)Set a cleaner to this Vision.- Parameters:
- idx- The index.
- cleaner- a value to be added
 
 - 
addCleanerpublic void addCleaner(Cleaner cleaner) Add a cleaner to this Vision.- Parameters:
- cleaner- a value to be removed
 
 - 
removeCleanerpublic boolean removeCleaner(Cleaner cleaner) Remove a cleaner from this Vision.- Parameters:
- cleaner- a value to be removed
- Returns:
- True when the cleaners have changed.
 
 - 
getWastebinspublic Wastebin[] getWastebins() Get the wastebins of this Vision.- Returns:
- wastebins
 
 - 
setWastebinspublic void setWastebins(Wastebin[] wastebins) Set the wastebins of this Vision.- Parameters:
- wastebins- the value to be set
 
 - 
getWastebinpublic Wastebin getWastebin(int idx) Get an wastebins of this Vision.- Parameters:
- idx- The index.
- Returns:
- wastebins
 
 - 
setWastebinpublic void setWastebin(int idx, Wastebin wastebin)Set a wastebin to this Vision.- Parameters:
- idx- The index.
- wastebin- a value to be added
 
 - 
addWastebinpublic void addWastebin(Wastebin wastebin) Add a wastebin to this Vision.- Parameters:
- wastebin- a value to be removed
 
 - 
removeWastebinpublic boolean removeWastebin(Wastebin wastebin) Remove a wastebin from this Vision.- Parameters:
- wastebin- a value to be removed
- Returns:
- True when the wastebins have changed.
 
 - 
getWastespublic Waste[] getWastes() Get the wastes of this Vision.- Returns:
- wastes
 
 - 
setWastespublic void setWastes(Waste[] wastes) Set the wastes of this Vision.- Parameters:
- wastes- the value to be set
 
 - 
getWastepublic Waste getWaste(int idx) Get an wastes of this Vision.- Parameters:
- idx- The index.
- Returns:
- wastes
 
 - 
setWastepublic void setWaste(int idx, Waste waste)Set a waste to this Vision.- Parameters:
- idx- The index.
- waste- a value to be added
 
 - 
addWastepublic void addWaste(Waste waste) Add a waste to this Vision.- Parameters:
- waste- a value to be removed
 
 - 
removeWastepublic boolean removeWaste(Waste waste) Remove a waste from this Vision.- Parameters:
- waste- a value to be removed
- Returns:
- True when the wastes have changed.
 
 - 
getStationspublic Chargingstation[] getStations() Get the stations of this Vision.- Returns:
- stations
 
 - 
setStationspublic void setStations(Chargingstation[] stations) Set the stations of this Vision.- Parameters:
- stations- the value to be set
 
 - 
getStationpublic Chargingstation getStation(int idx) Get an stations of this Vision.- Parameters:
- idx- The index.
- Returns:
- stations
 
 - 
setStationpublic void setStation(int idx, Chargingstation station)Set a station to this Vision.- Parameters:
- idx- The index.
- station- a value to be added
 
 - 
addStationpublic void addStation(Chargingstation station) Add a station to this Vision.- Parameters:
- station- a value to be removed
 
 - 
removeStationpublic boolean removeStation(Chargingstation station) Remove a station from this Vision.- Parameters:
- station- a value to be removed
- Returns:
- True when the stations have changed.
 
 - 
isDaytimepublic boolean isDaytime() Get the daytime of this Vision.- Returns:
- daytime
 
 - 
setDaytimepublic void setDaytime(boolean daytime) Set the daytime of this Vision.- Parameters:
- daytime- the value to be set
 
 - 
toStringpublic java.lang.String toString() Get a string representation of this Vision.- Overrides:
- toStringin class- LocationObject
- Returns:
- The string representation.
 
 - 
clonepublic java.lang.Object clone() Clone the object.- Overrides:
- clonein class- LocationObject
 
 
- 
 
-