public class Sampling extends Object implements EventListenerInterface
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
Sampling(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
TrajectoryGroup |
getTrajectoryGroup(LaneDirection laneDirection)
Returns the trajectory group of given lane direction.
|
int |
hashCode() |
void |
notify(EventInterface event) |
void |
registerSpaceTimeRegion(SpaceTimeRegion spaceTimeRegion) |
void |
startRecording(org.djunits.value.vdouble.scalar.Duration time,
LaneDirection laneDirection)
Start recording at the given time (which should be the current time) on the given lane direction.
|
void |
stopRecording(org.djunits.value.vdouble.scalar.Duration time,
LaneDirection laneDirection)
Stop recording at given lane direction.
|
String |
toString() |
public Sampling(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
simulator - simulatorpublic final void registerSpaceTimeRegion(SpaceTimeRegion spaceTimeRegion)
spaceTimeRegion - space-time regionIllegalStateException - if data is not available from the requested start timepublic final void startRecording(org.djunits.value.vdouble.scalar.Duration time,
LaneDirection laneDirection)
time - current timelaneDirection - lane directionpublic final void stopRecording(org.djunits.value.vdouble.scalar.Duration time,
LaneDirection laneDirection)
time - to stoplaneDirection - lane directionpublic final void notify(EventInterface event) throws RemoteException
notify in interface EventListenerInterfaceRemoteExceptionpublic final TrajectoryGroup getTrajectoryGroup(LaneDirection laneDirection)
laneDirection - lane directionnull if noneCopyright © 2014–2016 Delft University of Technology. All rights reserved.