Package org.opentrafficsim.draw.graphs
Interface ContourDataSource.ContourDataType<Z extends Number,I>
-
- Type Parameters:
Z
- value typeI
- intermediate data type
- Enclosing class:
- ContourDataSource<G extends GtuDataInterface>
public static interface ContourDataSource.ContourDataType<Z extends Number,I>
Interface for data types of which a contour plot can be made. Using this class, the data pool can determine and store cell values for a variable set of additional data types (besides total distance, total time and speed).Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 10 okt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Z
finalize(I intermediate)
Returns the final value of the intermediate result after all lanes.Quantity<Z,?>
getQuantity()
Returns the quantity that is being plotted on the z-axis for the EGTF filter.I
identity()
Returns the initial value for intermediate result.I
processSeries(I intermediate, List<TrajectoryGroup<?>> trajectories, List<Length> xFrom, List<Length> xTo, Time tFrom, Time tTo)
Calculate value from provided trajectories that apply to a single grid cell on a single series (lane).
-
-
-
Method Detail
-
identity
I identity()
Returns the initial value for intermediate result.- Returns:
- I, initial intermediate value
-
processSeries
I processSeries(I intermediate, List<TrajectoryGroup<?>> trajectories, List<Length> xFrom, List<Length> xTo, Time tFrom, Time tTo)
Calculate value from provided trajectories that apply to a single grid cell on a single series (lane).- Parameters:
intermediate
- I; intermediate value of previous series, starts as the identitytrajectories
- List<TrajectoryGroup<?>>; trajectories, all groups overlap the requested space-timexFrom
- List<Length>; start location of cell on the sectionxTo
- List<Length>; end location of cell on the section.tFrom
- Time; start time of celltTo
- Time; end time of cell- Returns:
- I; intermediate value
-
finalize
Z finalize(I intermediate)
Returns the final value of the intermediate result after all lanes.- Parameters:
intermediate
- I; intermediate result after all lanes- Returns:
- Z; final value
-
-