Class LaneTest.MockSensor

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

class LaneTest.MockSensor extends Object
Mock a Detector.
  • Constructor Details

    • MockSensor

      MockSensor(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 LaneDetector getMock()
      Retrieve the mocked sensor.
      Returns:
      Detector; the mocked sensor
    • 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