public abstract class AbstractSamplerPlot extends AbstractSpaceTimePlot
getTrajectories(), or
alternatively maintain some other -possibly more efficient- connection to the sampler. This class also connects the plot to a
path, consisting of a list of lanes. Start distance along the path for each lane is provided to sub classes using
getStartDistance(KpiLaneDirection). Total length is obtained using getEndLocation().
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
DEFAULT_INITIAL_UPPER_TIME_BOUND, GRAPH_ADD_EVENT, GRAPH_REMOVE_EVENT| Constructor and Description |
|---|
AbstractSamplerPlot(String caption,
Duration updateInterval,
OTSSimulatorInterface simulator,
Sampler<?> sampler,
GraphPath<KpiLaneDirection> path,
Duration delay)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Length |
getEndLocation()
Returns the total path length.
|
GraphPath<KpiLaneDirection> |
getPath()
Returns the path.
|
protected Sampler<?> |
getSampler()
Returns the sampler.
|
protected List<TrajectoryGroup<?>> |
getTrajectories(int series)
Returns all trajectories for the series, in order of the path.
|
setAutoBoundDomain, setAutoBoundRange, setChart, update, updateFixedDomainRangesetLowerDomainBound, setLowerRangeBound, setUpperDomainBound, setUpperRangeBoundaddChangeListener, encodeAsPng, getCaption, getChart, getGraphType, getGroup, getId, getSimulator, getStatusLabel, getUpdateTime, increaseTime, notifyPlotChange, removeChangeListener, setGroup, setUpdateIntervalpublic AbstractSamplerPlot(String caption, Duration updateInterval, OTSSimulatorInterface simulator, Sampler<?> sampler, GraphPath<KpiLaneDirection> path, Duration delay)
caption - String; captionupdateInterval - Duration; regular update interval (simulation time)simulator - OTSSimulatorInterface; simulatorsampler - Sampler<?>; road samplerpath - GraphPath<KpiLaneDirection>; pathdelay - Duration; amount of time that chart runs behind simulation to prevent gaps in the charted dataprotected List<TrajectoryGroup<?>> getTrajectories(int series)
series - int; series numberpublic final GraphPath<KpiLaneDirection> getPath()
protected final Length getEndLocation()
getEndLocation in class AbstractSpaceTimePlotprotected final Sampler<?> getSampler()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.