Class VehicleChargingStopRequest
java.lang.Object
org.eclipse.mosaic.rti.api.Interaction
org.eclipse.mosaic.interactions.electricity.VehicleChargingStopRequest
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Interaction>
This extension of
Interaction
is intended to be used to forward a request from a vehicle
to stop charging its battery at a ChargingStationData
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
ConstructorsConstructorDescriptionVehicleChargingStopRequest
(long time, String vehicleId) Creates a newVehicleChargingStopRequest
interaction. -
Method Summary
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
-
VehicleChargingStopRequest
Creates a newVehicleChargingStopRequest
interaction.- Parameters:
time
- Timestamp of this interaction, unit: [ns]vehicleId
- String identifying the vehicle sending this interaction
-
-
Method Details
-
getVehicleId
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInteraction
-
equals
- Overrides:
equals
in classInteraction
-
toString
- Overrides:
toString
in classInteraction
-