public class TrajectoryPlot extends AbstractSamplerPlot implements XYDataset
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 |
|---|
TrajectoryPlot(String caption,
Duration updateInterval,
OTSSimulatorInterface simulator,
Sampler<?> sampler,
GraphPath<KpiLaneDirection> path)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DomainOrder |
getDomainOrder() |
GraphType |
getGraphType()
Return the graph type for transceiver.
|
int |
getItemCount(int series) |
List<Boolean> |
getLaneVisible()
Retrieve the lane visibility flags.
|
LegendItemCollection |
getLegend()
Retrieve the legend.
|
int |
getSeriesCount() |
Comparable<Integer> |
getSeriesKey(int series) |
String |
getStatusLabel(double domainValue,
double rangeValue)
Returns the status label when the mouse is over the given location.
|
Number |
getX(int series,
int item) |
double |
getXValue(int series,
int item) |
Number |
getY(int series,
int item) |
double |
getYValue(int series,
int item) |
protected void |
increaseTime(Time time)
Increase the simulated time span.
|
int |
indexOf(Comparable seriesKey) |
String |
toString() |
getEndLocation, getPath, getSampler, getTrajectoriessetAutoBoundDomain, setAutoBoundRange, setChart, update, updateFixedDomainRangesetLowerDomainBound, setLowerRangeBound, setUpperDomainBound, setUpperRangeBoundaddChangeListener, encodeAsPng, getCaption, getChart, getGroup, getId, getSimulator, getUpdateTime, notifyPlotChange, removeChangeListener, setGroup, setUpdateIntervalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChangeListener, getGroup, removeChangeListener, setGrouppublic TrajectoryPlot(String caption, Duration updateInterval, OTSSimulatorInterface simulator, Sampler<?> sampler, GraphPath<KpiLaneDirection> path)
caption - String; captionupdateInterval - Duration; regular update interval (simulation time)simulator - OTSSimulatorInterface; simulatorsampler - Sampler<?>; road samplerpath - GraphPath<KpiLaneDirection>; pathpublic GraphType getGraphType()
getGraphType in class AbstractPlotpublic String getStatusLabel(double domainValue, double rangeValue)
getStatusLabel in class AbstractPlotdomainValue - double; domain value (x-axis)rangeValue - double; range value (y-axis)protected void increaseTime(Time time)
increaseTime in class AbstractPlottime - Time; time to increase topublic int getSeriesCount()
getSeriesCount in interface SeriesDatasetpublic Comparable<Integer> getSeriesKey(int series)
getSeriesKey in interface SeriesDatasetpublic int indexOf(Comparable seriesKey)
indexOf in interface SeriesDatasetpublic DomainOrder getDomainOrder()
getDomainOrder in interface XYDatasetpublic int getItemCount(int series)
getItemCount in interface XYDatasetpublic double getXValue(int series,
int item)
public double getYValue(int series,
int item)
public LegendItemCollection getLegend()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.