public class LinkedPointSet extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LinkedPointSet.TravelTimeFunction
A functional interface for fetching the travel time to any street vertex in the transport network.
|
Modifier and Type | Field and Description |
---|---|
PointSet |
pointSet
LinkedPointSets are long-lived and not extremely numerous, so we keep references to the objects it was built from.
|
List<int[]> |
stopTrees |
StreetLayer |
streetLayer
We need to retain the street layer so we can look up edge endpoint vertices for the edge IDs.
|
Constructor and Description |
---|
LinkedPointSet(PointSet pointSet,
StreetLayer streetLayer)
A LinkedPointSet is a PointSet that has been pre-connected to a StreetLayer in a non-destructive, reversible way.
|
Modifier and Type | Method and Description |
---|---|
PointSetTimes |
eval(LinkedPointSet.TravelTimeFunction travelTimeForVertex)
Determine the travel time to every temporary vertex in this set.
|
void |
makeStopTrees()
Makes one stop tree for each transit stop in the associated TransportNetwork.
|
int |
size() |
public final PointSet pointSet
public final StreetLayer streetLayer
public transient List<int[]> stopTrees
public LinkedPointSet(PointSet pointSet, StreetLayer streetLayer)
public int size()
public PointSetTimes eval(LinkedPointSet.TravelTimeFunction travelTimeForVertex)
public void makeStopTrees()
Copyright © 2015. All rights reserved.