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 StringString 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:
hashCodein classInteraction
-
equals
- Overrides:
equalsin classInteraction
-
toString
- Overrides:
toStringin classInteraction
-