Class Chargingstation
- java.lang.Object
-
- jadex.bdi.examples.cleanerworld_classic.LocationObject
-
- jadex.bdi.examples.cleanerworld_classic.Chargingstation
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Chargingstation extends LocationObject
Editable Java class for concept Chargingstation of cleaner-generated ontology.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intinstancecntThe instance counter.protected java.lang.StringnameAttribute for slot name.-
Fields inherited from class jadex.bdi.examples.cleanerworld_classic.LocationObject
id, location, pcs
-
-
Constructor Summary
Constructors Constructor Description Chargingstation()Create a new Chargingstation.Chargingstation(Location location)Create a new charging station.Chargingstation(java.lang.String name, Location location)Create a new Chargingstation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Get the name of this Chargingstation.voidsetName(java.lang.String name)Set the name of this Chargingstation.java.lang.StringtoString()Get a string representation of this Chargingstation.voidupdate(Chargingstation st)Update this wastebin.-
Methods inherited from class jadex.bdi.examples.cleanerworld_classic.LocationObject
addPropertyChangeListener, clone, equals, getId, getLocation, hashCode, removePropertyChangeListener, setId, setLocation
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of this Chargingstation.- Returns:
- name
-
setName
public void setName(java.lang.String name)
Set the name of this Chargingstation.- Parameters:
name- the value to be set
-
update
public void update(Chargingstation st)
Update this wastebin.
-
toString
public java.lang.String toString()
Get a string representation of this Chargingstation.- Overrides:
toStringin classLocationObject- Returns:
- The string representation.
-
-