jadex.bdi.examples.cleanerworld_classic.Waste Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bdi Show documentation
Show all versions of jadex-applications-bdi Show documentation
The Jadex BDI applications package contain
several example applications, benchmarks and
testcases using BDI agents.
package jadex.bdi.examples.cleanerworld_classic;
/**
* Editable Java class for concept Waste of cleaner-generated ontology.
*/
public class Waste extends LocationObject
{
//-------- static attributes --------
protected static int wastecnt;
//-------- constructors --------
/**
* Create a new Waste.
*/
public Waste()
{
// Empty constructor required for JavaBeans (do not remove).
}
/**
* Create a new waste.
* @param location The location.
*/
public Waste(Location location)
{
this("Waste_#"+wastecnt++, location);
}
/**
* Create a new Waste.
*/
public Waste(String id, Location location)
{
setId(id);
setLocation(location);
}
//-------- methods --------
/**
* Get a string representation of this Waste.
* @return The string representation.
*/
public String toString() {
return "Waste("
+ "id="+getId()
+ ", location="+getLocation()
+ ")";
}
//-------- custom code --------
}