public class PathSearchResult extends Object
Path
s found for each edge and provides according EdgeInfo
s.
These are used by the ChannelBasedPathRouting
algorithm to calculate the final segment locations for the
segments of an edge path.
Constructor and Description |
---|
PathSearchResult(PathSearchConfiguration configuration)
Creates a new instance of
PathSearchResult . |
Modifier and Type | Method and Description |
---|---|
EdgeInfo |
getEdgeInfo(Edge edge)
Returns an
EdgeInfo for the given edge. |
EdgeInfo |
getEdgeInfo(Path path)
Returns an
EdgeInfo for the given path. |
Path |
getPath(Edge edge)
Returns the previously registered path found for the edge.
|
void |
setPath(Edge edge,
Path path)
Specifies a found path for an edge.
|
public PathSearchResult(PathSearchConfiguration configuration)
PathSearchResult
.configuration
- the configuration used for the path searchpublic EdgeInfo getEdgeInfo(Edge edge)
EdgeInfo
for the given edge.
If the given edge shall be routed but no path has been set for it, yet, null
is returned. If no EdgeInfo
has been created for the path by this context before, a new one is instantiated, otherwise the stored one is returned.
edge
- the edge for which the EdgeInfo
will be returnedEdgeInfo
describing the path of the edgesetPath(Edge, Path)
public Path getPath(Edge edge)
edge
- the edge for which the path is providednull
if no path has been registered, yet