Class LaneTest.MockLaneBasedObject

  • Enclosing class:
    LaneTest

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

      • MockLaneBasedObject

        MockLaneBasedObject​(String id,
                            Length position)
        Construct a new Mocked SingleSensor.
        Parameters:
        id - String; result of the getId() method of the mocked SingleSensor
        position - Length; result of the getLongitudinalPosition of the mocked SingleSensor
    • Method Detail

      • getMock

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

        public Length getLongitudinalPosition()
        Retrieve the position of the mocked sensor.
        Returns:
        Length; the longitudinal position of the mocked sensor