Class ChargingStationRegistration
- java.lang.Object
-
- org.eclipse.mosaic.rti.api.Interaction
-
- org.eclipse.mosaic.interactions.mapping.ChargingStationRegistration
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Interaction>
public final class ChargingStationRegistration extends Interaction
This extension ofInteraction
is intended to be used to forward an added charging station to the RTI.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_ID
String identifying the type of this interaction.-
Fields inherited from class org.eclipse.mosaic.rti.api.Interaction
time
-
-
Constructor Summary
Constructors Constructor Description ChargingStationRegistration(long time, String name, String group, List<String> applications, GeoPoint position, List<ChargingSpot> chargingSpots)
Creates a newChargingStationRegistration
interaction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<ChargingSpot>
getChargingSpots()
Returns the list of theChargingSpot
units belonging to this charging station.ChargingStationMapping
getMapping()
int
hashCode()
String
toString()
-
Methods inherited from class org.eclipse.mosaic.rti.api.Interaction
compareTo, createTypeIdentifier, getId, getSenderId, getTime, getTypeId, setSenderId
-
-
-
-
Field Detail
-
TYPE_ID
public static final String TYPE_ID
String identifying the type of this interaction.
-
-
Constructor Detail
-
ChargingStationRegistration
public ChargingStationRegistration(long time, String name, String group, List<String> applications, GeoPoint position, List<ChargingSpot> chargingSpots)
Creates a newChargingStationRegistration
interaction.- Parameters:
time
- Timestamp of this interaction, unit: [ns]name
- ITS identification of the charging stationgroup
- The group identifier.applications
- List of applications the charging station is equipped with.position
- The position of the charging station.
-
-
Method Detail
-
getChargingSpots
public List<ChargingSpot> getChargingSpots()
Returns the list of theChargingSpot
units belonging to this charging station.- Returns:
- List of the
ChargingSpot
units.
-
getMapping
public ChargingStationMapping getMapping()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classInteraction
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classInteraction
-
toString
public String toString()
- Overrides:
toString
in classInteraction
-
-