
jadex.bdi.examples.cleanerworld_classic.Chargingstation 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.
The newest version!
package jadex.bdi.examples.cleanerworld_classic;
/**
* Editable Java class for concept Chargingstation of cleaner-generated ontology.
*/
public class Chargingstation extends LocationObject
{
/** The instance counter. */
protected static int instancecnt = 0;
//-------- attributes ----------
/** Attribute for slot name. */
protected String name;
//-------- constructors --------
/**
* Create a new Chargingstation.
*/
public Chargingstation()
{
// Empty constructor required for JavaBeans (do not remove).
}
/**
* Create a new charging station.
*/
public Chargingstation(Location location)
{
this("Chargingstation #" + instancecnt++, location);
}
/**
* Create a new Chargingstation.
*/
public Chargingstation(String name, Location location)
{
setId(name);
setName(name);
setLocation(location);
}
/**
* Get the name of this Chargingstation.
* @return name
*/
public String getName()
{
return this.name;
}
/**
* Set the name of this Chargingstation.
* @param name the value to be set
*/
public void setName(String name)
{
this.name = name;
}
/**
* Update this wastebin.
*/
public void update(Chargingstation st)
{
assert this.getId().equals(st.getId());
}
//-------- object methods --------
/**
* Get a string representation of this Chargingstation.
* @return The string representation.
*/
public String toString()
{
return "Chargingstation(" + "id=" + getId() + ", location=" + getLocation() + ", name=" + getName() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy