Class VehicleChargingStopRequest
- java.lang.Object
-
- org.eclipse.mosaic.rti.api.Interaction
-
- org.eclipse.mosaic.interactions.electricity.VehicleChargingStopRequest
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Interaction>
public final class VehicleChargingStopRequest extends Interaction
This extension ofInteraction
is intended to be used to forward a request from a vehicle to stop charging its battery at aChargingStationData
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 VehicleChargingStopRequest(long time, String vehicleId)
Creates a newVehicleChargingStopRequest
interaction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getVehicleId()
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
-
VehicleChargingStopRequest
public VehicleChargingStopRequest(long time, String vehicleId)
Creates a newVehicleChargingStopRequest
interaction.- Parameters:
time
- Timestamp of this interaction, unit: [ns]vehicleId
- String identifying the vehicle sending this interaction
-
-
Method Detail
-
getVehicleId
public String getVehicleId()
-
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
-
-