public class Chargingstation extends LocationObject
Modifier and Type | Field and Description |
---|---|
protected static int |
instancecnt
The instance counter.
|
protected java.lang.String |
name
Attribute for slot name.
|
id, location, pcs
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of this Chargingstation.
|
protected static int |
getNumber()
Get an instance number.
|
void |
setName(java.lang.String name)
Set the name of this Chargingstation.
|
java.lang.String |
toString()
Get a string representation of this Chargingstation.
|
void |
update(Chargingstation st)
Update this wastebin.
|
addPropertyChangeListener, clone, equals, getId, getLocation, hashCode, removePropertyChangeListener, setId, setLocation
protected static int instancecnt
protected java.lang.String name
public Chargingstation()
public Chargingstation(Location location)
public Chargingstation(java.lang.String name, Location location)
protected static int getNumber()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the value to be setpublic void update(Chargingstation st)
public java.lang.String toString()
toString
in class LocationObject