public interface Sensor extends Serializable, Comparable<Sensor>
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
Lane |
getLane() |
DoubleScalar.Abs<LengthUnit> |
getLongitudinalPosition() |
double |
getLongitudinalPositionSI() |
RelativePosition.TYPE |
getPositionType() |
void |
trigger(LaneBasedGTU<?> gtu)
Trigger an action on the GTU.
|
compareTo
Lane getLane()
DoubleScalar.Abs<LengthUnit> getLongitudinalPosition()
double getLongitudinalPositionSI()
RelativePosition.TYPE getPositionType()
void trigger(LaneBasedGTU<?> gtu) throws RemoteException
sensor.trigger(this);
.gtu
- the GTU for which to carry out the trigger action.RemoteException
- on communications failureCopyright © 2014–2015 Delft University of Technology. All rights reserved.