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 StringString 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 newChargingStationRegistrationinteraction. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the list of theChargingSpotunits belonging to this charging station.inthashCode()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 newChargingStationRegistrationinteraction.- 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 theChargingSpotunits belonging to this charging station.- Returns:
- List of the
ChargingSpotunits.
-
getMapping
-
hashCode
public int hashCode()- Overrides:
hashCodein classInteraction
-
equals
- Overrides:
equalsin classInteraction
-
toString
- Overrides:
toStringin classInteraction
-