Class VehicleRouteRegistration
- java.lang.Object
-
- org.eclipse.mosaic.rti.api.Interaction
-
- org.eclipse.mosaic.interactions.vehicle.VehicleRouteRegistration
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Interaction>
public final class VehicleRouteRegistration extends Interaction
Extension ofInteraction
that propagates information about an added route. Should be used if a new route is created during the simulation.- 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 VehicleRouteRegistration(long time, VehicleRoute route)
Construct a newVehicleRouteRegistration
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
VehicleRoute
getRoute()
Returns the route.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
-
VehicleRouteRegistration
public VehicleRouteRegistration(long time, VehicleRoute route)
Construct a newVehicleRouteRegistration
.- Parameters:
time
- Timestamp of this interaction, unit: [ns]route
- The route to propagate
-
-
Method Detail
-
getRoute
public VehicleRoute getRoute()
Returns the route.- Returns:
- the route.
-
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
-
-