Class Vision
- java.lang.Object
-
- jadex.bdiv3.examples.cleanerworld.world.LocationObject
-
- jadex.bdiv3.examples.cleanerworld.world.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.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.bdiv3.examples.cleanerworld.world.LocationObject
id, location, pcs
-
-
Method Summary
All 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.bdiv3.examples.cleanerworld.world.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:
toStringin classLocationObject- Returns:
- The string representation.
-
clone
public java.lang.Object clone()
Clone the object.- Overrides:
clonein classLocationObject
-
-