Jadex 0.96

jadex.examples.cleanerworld.multi
Class VisionData

java.lang.Object
  extended by jadex.examples.cleanerworld.multi.LocationObjectData
      extended by jadex.examples.cleanerworld.multi.LocationObject
          extended by jadex.examples.cleanerworld.multi.VisionData
All Implemented Interfaces:
Serializable, Cloneable, nuggets.INugget
Direct Known Subclasses:
Vision

public abstract class VisionData
extends LocationObject
implements nuggets.INugget

Java class for concept Vision of cleaner_beans ontology.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface nuggets.INugget
nuggets.INugget.Helper
 
Constructor Summary
VisionData()
          Default Constructor.
 
Method Summary
 void _persist(nuggets.ICruncher c)
          Persist this Vision using the nuggets utility.
 void _set(String a, Object v)
          Restore this Vision
 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.
 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.
 String toString()
          Get a string representation of this Vision.
 
Methods inherited from class jadex.examples.cleanerworld.multi.LocationObject
clone, equals, hashCode
 
Methods inherited from class jadex.examples.cleanerworld.multi.LocationObjectData
getId, getLocation, setId, setLocation
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisionData

public VisionData()
Default Constructor.
Create a new Vision.

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 String toString()
Get a string representation of this Vision.

Overrides:
toString in class LocationObjectData
Returns:
The string representation.

_persist

public void _persist(nuggets.ICruncher c)
Persist this Vision using the nuggets utility.

Specified by:
_persist in interface nuggets.INugget
Overrides:
_persist in class LocationObjectData
Parameters:
c -

_set

public void _set(String a,
                 Object v)
Restore this Vision

Specified by:
_set in interface nuggets.INugget
Overrides:
_set in class LocationObjectData
Parameters:
a - the name of the attribute
v - the value of the attribute

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.