All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentrafficsim.draw.graphs.AbstractSamplerPlot Maven / Gradle / Ivy

The newest version!
package org.opentrafficsim.draw.graphs;

import java.util.ArrayList;
import java.util.List;

import org.djunits.value.vdouble.scalar.Duration;
import org.djunits.value.vdouble.scalar.Length;
import org.djunits.value.vdouble.scalar.Time;
import org.opentrafficsim.draw.graphs.GraphPath.Section;
import org.opentrafficsim.kpi.interfaces.LaneData;
import org.opentrafficsim.kpi.sampling.SamplerData;
import org.opentrafficsim.kpi.sampling.TrajectoryGroup;

/**
 * Super class for plots that use sampler data. Sub classes may obtain trajectories using {@code 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
 * {@code getStartDistance(LaneData)}. Total length is obtained using {@code getEndLocation()}.
 * 

* Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License. *

* @author Alexander Verbraeck * @author Peter Knoppers * @author Wouter Schakel */ public abstract class AbstractSamplerPlot extends AbstractSpaceTimePlot { /** Sampler data. */ private final SamplerData samplerData; /** KPI lane directions registered in the sampler. */ private final GraphPath> path; /** Time when trajectories were last updated per series in the path. */ private List




© 2015 - 2024 Weber Informatics LLC | Privacy Policy