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