Class GtuDataSim0

java.lang.Object
org.opentrafficsim.sim0mq.kpi.GtuDataSim0
All Implemented Interfaces:
org.djutils.base.Identifiable, org.opentrafficsim.kpi.interfaces.GtuData

public class GtuDataSim0 extends Object implements org.opentrafficsim.kpi.interfaces.GtuData

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • GtuDataSim0

      public GtuDataSim0(String id, String gtuType, RouteData route)
      Parameters:
      id - the id
      gtuType - the gtu type
      route - the route
  • Method Details

    • getId

      public final String getId()
      Specified by:
      getId in interface org.djutils.base.Identifiable
    • getOriginId

      public final String getOriginId()
      Specified by:
      getOriginId in interface org.opentrafficsim.kpi.interfaces.GtuData
    • getDestinationId

      public final String getDestinationId()
      Specified by:
      getDestinationId in interface org.opentrafficsim.kpi.interfaces.GtuData
    • getGtuTypeId

      public final String getGtuTypeId()
      Specified by:
      getGtuTypeId in interface org.opentrafficsim.kpi.interfaces.GtuData
    • getRouteId

      public final String getRouteId()
      Specified by:
      getRouteId in interface org.opentrafficsim.kpi.interfaces.GtuData
    • getReferenceSpeed

      public org.djunits.value.vdouble.scalar.Speed getReferenceSpeed()
      Specified by:
      getReferenceSpeed in interface org.opentrafficsim.kpi.interfaces.GtuData
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object