Jadex 0.96

jadex.examples.cleanerworld.multi
Class WastebinData

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

public abstract class WastebinData
extends LocationObject
implements nuggets.INugget

Java class for concept Wastebin of cleaner_beans ontology.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface nuggets.INugget
nuggets.INugget.Helper
 
Constructor Summary
WastebinData()
          Default Constructor.
 
Method Summary
 void _persist(nuggets.ICruncher c)
          Persist this Wastebin using the nuggets utility.
 void _set(String a, Object v)
          Restore this Wastebin
 void addWaste(Waste waste)
          Add a waste to this Wastebin.
 int getCapacity()
          Get the capacity of this Wastebin.
 String getName()
          Get the name of this Wastebin.
 Waste getWaste(int idx)
          Get an wastes of this Wastebin.
 Waste[] getWastes()
          Get the wastes of this Wastebin.
 boolean removeWaste(Waste waste)
          Remove a waste from this Wastebin.
 void setCapacity(int capacity)
          Set the capacity of this Wastebin.
 void setName(String name)
          Set the name of this Wastebin.
 void setWaste(int idx, Waste waste)
          Set a waste to this Wastebin.
 void setWastes(Waste[] wastes)
          Set the wastes of this Wastebin.
 String toString()
          Get a string representation of this Wastebin.
 
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

WastebinData

public WastebinData()
Default Constructor.
Create a new Wastebin.

Method Detail

getWastes

public Waste[] getWastes()
Get the wastes of this Wastebin.

Returns:
wastes

setWastes

public void setWastes(Waste[] wastes)
Set the wastes of this Wastebin.

Parameters:
wastes - the value to be set

getWaste

public Waste getWaste(int idx)
Get an wastes of this Wastebin.

Parameters:
idx - The index.
Returns:
wastes

setWaste

public void setWaste(int idx,
                     Waste waste)
Set a waste to this Wastebin.

Parameters:
idx - The index.
waste - a value to be added

addWaste

public void addWaste(Waste waste)
Add a waste to this Wastebin.

Parameters:
waste - a value to be removed

removeWaste

public boolean removeWaste(Waste waste)
Remove a waste from this Wastebin.

Parameters:
waste - a value to be removed
Returns:
True when the wastes have changed.

getCapacity

public int getCapacity()
Get the capacity of this Wastebin.

Returns:
capacity

setCapacity

public void setCapacity(int capacity)
Set the capacity of this Wastebin.

Parameters:
capacity - the value to be set

getName

public String getName()
Get the name of this Wastebin.

Returns:
name

setName

public void setName(String name)
Set the name of this Wastebin.

Parameters:
name - the value to be set

toString

public String toString()
Get a string representation of this Wastebin.

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

_persist

public void _persist(nuggets.ICruncher c)
Persist this Wastebin 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 Wastebin

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.