Record Class TestGtuData

java.lang.Object
java.lang.Record
org.opentrafficsim.kpi.sampling.impl.TestGtuData
Record Components:
getId - id
getOriginId - origin id
getDestinationId - destination id
getGtuTypeId - GTU type id
getRouteId - route id
getReferenceSpeed - reference speed
All Implemented Interfaces:
Identifiable, GtuData

public record TestGtuData(String getId, String getOriginId, String getDestinationId, String getGtuTypeId, String getRouteId, Speed getReferenceSpeed) extends Record implements GtuData
Test GtuData class.
  • Constructor Details

    • TestGtuData

      public TestGtuData(String getId, String getOriginId, String getDestinationId, String getGtuTypeId, String getRouteId, Speed getReferenceSpeed)
      Creates an instance of a TestGtuData record class.
      Parameters:
      getId - the value for the getId record component
      getOriginId - the value for the getOriginId record component
      getDestinationId - the value for the getDestinationId record component
      getGtuTypeId - the value for the getGtuTypeId record component
      getRouteId - the value for the getRouteId record component
      getReferenceSpeed - the value for the getReferenceSpeed record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • getId

      public String getId()
      Returns the value of the getId record component.
      Specified by:
      getId in interface Identifiable
      Returns:
      the value of the getId record component
    • getOriginId

      public String getOriginId()
      Returns the value of the getOriginId record component.
      Specified by:
      getOriginId in interface GtuData
      Returns:
      the value of the getOriginId record component
    • getDestinationId

      public String getDestinationId()
      Returns the value of the getDestinationId record component.
      Specified by:
      getDestinationId in interface GtuData
      Returns:
      the value of the getDestinationId record component
    • getGtuTypeId

      public String getGtuTypeId()
      Returns the value of the getGtuTypeId record component.
      Specified by:
      getGtuTypeId in interface GtuData
      Returns:
      the value of the getGtuTypeId record component
    • getRouteId

      public String getRouteId()
      Returns the value of the getRouteId record component.
      Specified by:
      getRouteId in interface GtuData
      Returns:
      the value of the getRouteId record component
    • getReferenceSpeed

      public Speed getReferenceSpeed()
      Returns the value of the getReferenceSpeed record component.
      Specified by:
      getReferenceSpeed in interface GtuData
      Returns:
      the value of the getReferenceSpeed record component