Class ChargingStationRegistration
java.lang.Object
org.eclipse.mosaic.rti.api.Interaction
org.eclipse.mosaic.interactions.mapping.ChargingStationRegistration
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Interaction>
This extension of
Interaction
is intended to be used to forward an added charging
station to the RTI.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
String identifying the type of this interaction.Fields inherited from class org.eclipse.mosaic.rti.api.Interaction
time
-
Constructor Summary
ConstructorsConstructorDescriptionChargingStationRegistration
(long time, String name, String group, List<String> applications, GeoPoint position, List<ChargingSpot> chargingSpots) Creates a newChargingStationRegistration
interaction. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the list of theChargingSpot
units belonging to this charging station.int
hashCode()
toString()
Methods inherited from class org.eclipse.mosaic.rti.api.Interaction
compareTo, createTypeIdentifier, getId, getSenderId, getTime, getTypeId, setSenderId
-
Field Details
-
TYPE_ID
String identifying the type of this interaction.
-
-
Constructor Details
-
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 Details
-
getChargingSpots
Returns the list of theChargingSpot
units belonging to this charging station.- Returns:
- List of the
ChargingSpot
units.
-
getMapping
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInteraction
-
equals
- Overrides:
equals
in classInteraction
-
toString
- Overrides:
toString
in classInteraction
-