public class GraphRestriction extends Object
We store a list of via-nodes even for via-way restrictions. It stores the nodes connecting the via-ways,
see WayToEdgeConverter.EdgeResult
. For via-node restrictions the list simply contains the single via node.
This class only contains the 'topology' of the restriction. The RestrictionType
is handled separately,
because opposite to the type the topology does not depend on the vehicle type.
Modifier and Type | Method and Description |
---|---|
com.carrotsearch.hppc.IntArrayList |
getFromEdges() |
com.carrotsearch.hppc.IntArrayList |
getToEdges() |
com.carrotsearch.hppc.IntArrayList |
getViaEdges() |
com.carrotsearch.hppc.IntArrayList |
getViaNodes() |
boolean |
isViaWayRestriction() |
static GraphRestriction |
node(com.carrotsearch.hppc.IntArrayList fromEdges,
int viaNode,
com.carrotsearch.hppc.IntArrayList toEdges) |
static GraphRestriction |
node(int fromEdge,
int viaNode,
int toEdge) |
static GraphRestriction |
way(com.carrotsearch.hppc.IntArrayList fromEdges,
com.carrotsearch.hppc.IntArrayList viaEdges,
com.carrotsearch.hppc.IntArrayList toEdges,
com.carrotsearch.hppc.IntArrayList viaNodes) |
static GraphRestriction |
way(int fromEdge,
com.carrotsearch.hppc.IntArrayList viaEdges,
int toEdge,
com.carrotsearch.hppc.IntArrayList viaNodes) |
static GraphRestriction |
way(int fromEdge,
int viaEdge,
int toEdge,
com.carrotsearch.hppc.IntArrayList viaNodes) |
public static GraphRestriction node(int fromEdge, int viaNode, int toEdge)
public static GraphRestriction node(com.carrotsearch.hppc.IntArrayList fromEdges, int viaNode, com.carrotsearch.hppc.IntArrayList toEdges)
public static GraphRestriction way(int fromEdge, int viaEdge, int toEdge, com.carrotsearch.hppc.IntArrayList viaNodes)
public static GraphRestriction way(int fromEdge, com.carrotsearch.hppc.IntArrayList viaEdges, int toEdge, com.carrotsearch.hppc.IntArrayList viaNodes)
public static GraphRestriction way(com.carrotsearch.hppc.IntArrayList fromEdges, com.carrotsearch.hppc.IntArrayList viaEdges, com.carrotsearch.hppc.IntArrayList toEdges, com.carrotsearch.hppc.IntArrayList viaNodes)
public boolean isViaWayRestriction()
public com.carrotsearch.hppc.IntArrayList getViaNodes()
public com.carrotsearch.hppc.IntArrayList getFromEdges()
public com.carrotsearch.hppc.IntArrayList getViaEdges()
public com.carrotsearch.hppc.IntArrayList getToEdges()
Copyright © 2012–2022. All rights reserved.