Class LaneTest.MockSensor
java.lang.Object
org.opentrafficsim.road.network.lane.LaneTest.MockSensor
- Enclosing class:
 - LaneTest
 
Mock a Detector.
- 
Constructor Summary
ConstructorsConstructorDescriptionMockSensor(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- result of the getId() method of the mocked Detectorposition- result of the getLongitudinalPosition of the mocked Detector
 
 - 
 - 
Method Details
- 
getMock
Retrieve the mocked sensor.- Returns:
 - the mocked sensor
 
 - 
getLongitudinalPosition
public org.djunits.value.vdouble.scalar.Length getLongitudinalPosition()Retrieve the position of the mocked sensor.- Returns:
 - the longitudinal position of the mocked sensor
 
 - 
toString
 
 -