Class LaneTest.MockSensor
java.lang.Object
org.opentrafficsim.road.network.lane.LaneTest.MockSensor
- Enclosing class:
- LaneTest
Mock a Detector.
-
Constructor Summary
ConstructorDescriptionMockSensor
(String id, org.djunits.value.vdouble.scalar.Length position) Construct a new Mocked Detector. -
Method Summary
-
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 Detectorposition
- Length; result of the getLongitudinalPosition of the mocked Detector
-
-
Method Details
-
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
-