Jadex 0.96

jadex.examples.cleanerworld.multi
Class Wastebin

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

public class Wastebin
extends WastebinData

Editable Java class for concept Wastebin of cleaner-generated ontology.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface nuggets.INugget
nuggets.INugget.Helper
 
Constructor Summary
Wastebin()
          Create a new Wastebin.
Wastebin(Location location, int capacity)
          Create a new wastebin.
Wastebin(String name, Location location, int capacity)
          Create a new Wastebin.
 
Method Summary
 Object clone()
          Clone the object.
 boolean contains(Waste waste)
          Test is the waste is in the waste bin.
 void empty()
          Empty the waste bin.
 void fill()
          Fill the waste bin.
 boolean isFull()
          Test is the wastebin is full.
 
Methods inherited from class jadex.examples.cleanerworld.multi.WastebinData
_persist, _set, addWaste, getCapacity, getName, getWaste, getWastes, removeWaste, setCapacity, setName, setWaste, setWastes, toString
 
Methods inherited from class jadex.examples.cleanerworld.multi.LocationObject
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

Wastebin

public Wastebin()
Create a new Wastebin.


Wastebin

public Wastebin(Location location,
                int capacity)
Create a new wastebin.


Wastebin

public Wastebin(String name,
                Location location,
                int capacity)
Create a new Wastebin.

Method Detail

isFull

public boolean isFull()
Test is the wastebin is full.

Returns:
True, when wastebin is full.

empty

public void empty()
Empty the waste bin.


fill

public void fill()
Fill the waste bin.


contains

public boolean contains(Waste waste)
Test is the waste is in the waste bin.

Returns:
True, when wastebin contains the waste.

clone

public Object clone()
Clone the object.

Overrides:
clone in class LocationObject

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.