public class QuickRouter extends java.lang.Object implements LinkRouter
| Constructor and Description |
|---|
QuickRouter(Diagram diagram)
Initializes a new instance of the QuickRouter class.
|
| Modifier and Type | Method and Description |
|---|---|
Granularity |
getGranularity()
Gets the granularity of the obstacles map generated by QuickRouter.
|
float |
getTurnCost()
Gets a value added to the total cost of a route if it makes a turn.
|
float |
getUBendMaxLen() |
void |
Resume(boolean routeDeferredLinks)
Implements
LinkRouter.Resume(boolean). |
void |
RouteAllLinks()
Routes all links in the diagram.
|
boolean |
RouteLink(DiagramLink link)
Implements
LinkRouter.RouteLink(DiagramLink). |
void |
RouteLinks(DiagramLinkList links)
Implements
LinkRouter.RouteLinks(DiagramLinkList). |
void |
setGranularity(Granularity value)
Sets the granularity of the obstacles map generated by QuickRouter.
|
void |
setTurnCost(float value)
Sets a value added to the total cost of a route if it makes a turn.
|
void |
setUBendMaxLen(float uBendMaxLen) |
void |
Suspend()
Implements
LinkRouter.Suspend(). |
public QuickRouter(Diagram diagram)
diagram - public boolean RouteLink(DiagramLink link)
LinkRouter.RouteLink(DiagramLink).RouteLink in interface LinkRouterlink - The DiagramLink to route.true if a path has been found successfully, otherwise false.public void RouteAllLinks()
public void RouteLinks(DiagramLinkList links)
LinkRouter.RouteLinks(DiagramLinkList).RouteLinks in interface LinkRouterlinks - A list of DiagramLink objects that should be routed.public void Suspend()
LinkRouter.Suspend().Suspend in interface LinkRouterpublic void Resume(boolean routeDeferredLinks)
LinkRouter.Resume(boolean).Resume in interface LinkRouterrouteDeferredLinks - true if the links should be routed, otherwise false.public Granularity getGranularity()
public void setGranularity(Granularity value)
public float getTurnCost()
public void setTurnCost(float value)
public float getUBendMaxLen()
public void setUBendMaxLen(float uBendMaxLen)