Package org.opentrafficsim.sim0mq.kpi
Class GtuData
java.lang.Object
org.opentrafficsim.sim0mq.kpi.GtuData
- All Implemented Interfaces:
Identifiable
,GtuDataInterface
public class GtuData extends java.lang.Object implements GtuDataInterface
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 13 okt. 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description GtuData(java.lang.String id, GtuTypeData gtuType, RouteData route)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
NodeDataInterface
getDestinationNodeData()
GtuTypeDataInterface
getGtuTypeData()
java.lang.String
getId()
NodeDataInterface
getOriginNodeData()
RouteDataInterface
getRouteData()
int
hashCode()
java.lang.String
toString()
-
Constructor Details
-
GtuData
- Parameters:
id
- String; the idgtuType
- GtuTypeData; the gtu typeroute
- RouteData; the route
-
-
Method Details
-
getId
public final java.lang.String getId()- Specified by:
getId
in interfaceGtuDataInterface
- Specified by:
getId
in interfaceIdentifiable
-
getOriginNodeData
- Specified by:
getOriginNodeData
in interfaceGtuDataInterface
-
getDestinationNodeData
- Specified by:
getDestinationNodeData
in interfaceGtuDataInterface
-
getGtuTypeData
- Specified by:
getGtuTypeData
in interfaceGtuDataInterface
-
getRouteData
- Specified by:
getRouteData
in interfaceGtuDataInterface
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-