|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.router.polyline.PathRequest
public class PathRequest
A PathRequest
describes a routing request from a source obstacle
to a
target obstacle
which is handled and considered during a PathSearch
.
The path that is searched for an edge is potentially split into multiple requests. The path finding algorithm finds a path for each request and, finally, the results are put together to a final, full path for the actual edge. Multiple request are introduced, for example, to model intermediate routing points.
PathSearchExtension.initializeCurrentPathRequest(PathSearchContext)
,
PathSearchExtension.cancelCurrentPathRequest(PathSearchContext)
Method Summary | |
---|---|
EdgeLayoutDescriptor |
getDescriptor()
Returns the EdgeLayoutDescriptor that describes routing settings for this path request. |
Path |
getFoundPath()
Returns the path that was found for this path request. |
Obstacle |
getSource()
Returns the source obstacle describing the area where this request starts. |
java.util.Collection |
getSourcePortCandidates()
Returns the source PortCandidate s associated with this path request and describing how
the path must connect to the source obstacle. |
Obstacle |
getTarget()
Returns the target obstacle describing the area where this request ends. |
java.util.Collection |
getTargetPortCandidates()
Returns the target PortCandidate s associated with this path request and describing how
the path must connect to the target obstacle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Obstacle getSource()
public Obstacle getTarget()
public EdgeLayoutDescriptor getDescriptor()
EdgeLayoutDescriptor
that describes routing settings for this path request.
When implementing PathSearchExtension
s and using descriptor settings,
always this descriptor belonging to the current request should be queried. It may be different
from the one originally registered for the edge when there are multiple PathRequest
s for an edge.
EdgeLayoutDescriptor
of this path requestpublic java.util.Collection getSourcePortCandidates()
PortCandidate
s associated with this path request and describing how
the path must connect to the source obstacle.
PortCandidate
s of this requestpublic java.util.Collection getTargetPortCandidates()
PortCandidate
s associated with this path request and describing how
the path must connect to the target obstacle.
PortCandidate
s of this requestpublic Path getFoundPath()
null
if none was found yet
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |