Class LaneTest.MockLaneBasedObject

java.lang.Object
org.opentrafficsim.road.network.lane.LaneTest.MockLaneBasedObject
Enclosing class:
LaneTest

class LaneTest.MockLaneBasedObject extends Object
Mock a LaneBasedObject.
  • Constructor Details

    • MockLaneBasedObject

      MockLaneBasedObject(String id, org.djunits.value.vdouble.scalar.Length position)
      Construct a new Mocked Detector.
      Parameters:
      id - String; result of the getId() method of the mocked Detector
      position - Length; result of the getLongitudinalPosition of the mocked Detector
  • Method Details

    • getMock

      public LaneBasedObject getMock()
      Retrieve the mocked LaneBasedObject.
      Returns:
      LaneBasedObject; the mocked LaneBasedObject
    • getLongitudinalPosition

      public org.djunits.value.vdouble.scalar.Length getLongitudinalPosition()
      Retrieve the position of the mocked sensor.
      Returns:
      Length; the longitudinal position of the mocked sensor
    • toString

      public String toString()
      Overrides:
      toString in class Object