Search this API

y.layout.router.polyline
Class PathSearchConfiguration

java.lang.Object
  extended by y.layout.router.polyline.PathSearchConfiguration

public class PathSearchConfiguration
extends java.lang.Object

This class contains the basic configuration used by path search algorithms.

 
Your browser does not support SVG content.

Constructor Summary
PathSearchConfiguration(LayoutGraph graph, Grouping grouping, EdgeRouter edgeRouter)
          Creates a new instance of PathSearchConfiguration used for a path search.
 
Method Summary
 EdgeRouter getEdgeRouter()
          Returns the edge routing algorithm using this configuration.
 LayoutGraph getGraph()
          Returns the graph containing the edges whose path is searched.
 Grouping getGrouping()
          Returns the grouping information of the graph.
 long getRestOfComputingTime()
          Returns the remaining time (in milliseconds) within which the algorithm should complete its calculation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathSearchConfiguration

public PathSearchConfiguration(LayoutGraph graph,
                               Grouping grouping,
                               EdgeRouter edgeRouter)
Creates a new instance of PathSearchConfiguration used for a path search.

Parameters:
graph - the graph containing the edges whose path will be searched
grouping - the grouping information of the graph
edgeRouter - the edge routing algorithm using this configuration
Method Detail

getGraph

public LayoutGraph getGraph()
Returns the graph containing the edges whose path is searched.

Returns:
the current graph

getGrouping

public Grouping getGrouping()
Returns the grouping information of the graph.

Returns:
the grouping information of the graph

getEdgeRouter

public EdgeRouter getEdgeRouter()
Returns the edge routing algorithm using this configuration.

Returns:
the edge routing algorithm using this configuration

getRestOfComputingTime

public long getRestOfComputingTime()
Returns the remaining time (in milliseconds) within which the algorithm should complete its calculation.

Returns:
the remaining time for the calculation

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.