Class VehicleRouteRegistration
java.lang.Object
org.eclipse.mosaic.rti.api.Interaction
org.eclipse.mosaic.interactions.vehicle.VehicleRouteRegistration
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Interaction>
Extension of
Interaction
that propagates information about an added route.
Should be used if a new route is created during the simulation.- 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
ConstructorsConstructorDescriptionVehicleRouteRegistration
(long time, VehicleRoute route) Construct a newVehicleRouteRegistration
. -
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
-
VehicleRouteRegistration
Construct a newVehicleRouteRegistration
.- Parameters:
time
- Timestamp of this interaction, unit: [ns]route
- The route to propagate
-
-
Method Details
-
getRoute
Returns the route.- Returns:
- the route.
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInteraction
-
equals
- Overrides:
equals
in classInteraction
-
toString
- Overrides:
toString
in classInteraction
-