Search in sources :

Example 6 with ResultSet

use of org.opentripplanner.analyst.ResultSet in project OpenTripPlanner by opentripplanner.

the class TNPropagatedTimesStore method makeResults.

/**
 * Make a ResultEnvelope directly from a given SampleSet.
 * The RaptorWorkerData must have been constructed from the same SampleSet.
 * This is how the accumulated results are returned back out to the PropagatedTimesStore's creator.
 */
public ResultEnvelope makeResults(PointSet pointSet, boolean includeTimes, boolean includeHistograms, boolean includeIsochrones) {
    ResultEnvelope envelope = new ResultEnvelope();
    envelope.worstCase = new ResultSet(maxs, pointSet, includeTimes, includeHistograms, includeIsochrones);
    envelope.avgCase = new ResultSet(avgs, pointSet, includeTimes, includeHistograms, includeIsochrones);
    envelope.bestCase = new ResultSet(mins, pointSet, includeTimes, includeHistograms, includeIsochrones);
    return envelope;
}
Also used : ResultEnvelope(org.opentripplanner.analyst.cluster.ResultEnvelope) ResultSet(org.opentripplanner.analyst.ResultSet)

Aggregations

ResultSet (org.opentripplanner.analyst.ResultSet)6 TIntArrayList (gnu.trove.list.array.TIntArrayList)2 ArrayList (java.util.ArrayList)2 ResultEnvelope (org.opentripplanner.analyst.cluster.ResultEnvelope)2 IsochroneData (org.opentripplanner.analyst.core.IsochroneData)2 WTWD (org.opentripplanner.analyst.request.SampleGridRenderer.WTWD)2 DelaunayIsolineBuilder (org.opentripplanner.common.geometry.DelaunayIsolineBuilder)2 OutputStream (java.io.OutputStream)1 HashMap (java.util.HashMap)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1 StreamingOutput (javax.ws.rs.core.StreamingOutput)1 PointSet (org.opentripplanner.analyst.PointSet)1 SampleSet (org.opentripplanner.analyst.SampleSet)1 TimeSurface (org.opentripplanner.analyst.TimeSurface)1 Router (org.opentripplanner.standalone.Router)1