suvi.alg.policies
Class SimplisticEdgeRoutingPolicy

java.lang.Object
  |
  +--suvi.alg.policies.SimplisticEdgeRoutingPolicy
All Implemented Interfaces:
EdgeRoutingPolicy, GraphLayoutAttrConsumer

public class SimplisticEdgeRoutingPolicy
extends java.lang.Object
implements EdgeRoutingPolicy

Calculates the BSpline representations of edges. The BSpline of an edge contains coordinates for each of the nodes in the preprocessed graph that the corresponding preprocessed edge travels through. The first coordinates in the BSpline are the coordinates of the source and the last are the coordinates of the target.


Constructor Summary
SimplisticEdgeRoutingPolicy()
           
 
Method Summary
 GraphLayoutAttr[] defaultAttrs()
          This policy uses the following attributes: EdgeGapAttr NodeExtentAttr
 EdgeRouting edgeRouting(javautils.graph.adt.AugmentedGraph original, javautils.graph.adt.AugmentedGraph preprocessed, GraphTopology topology, GraphLayoutAttrMap attrMap, AugmentedNodeRanking ranking, AugmentedNodeOrdering ordering, AugmentedNodePositioning positioning)
          Edge routing for the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplisticEdgeRoutingPolicy

public SimplisticEdgeRoutingPolicy()
Method Detail

defaultAttrs

public GraphLayoutAttr[] defaultAttrs()

This policy uses the following attributes:

Specified by:
defaultAttrs in interface GraphLayoutAttrConsumer

edgeRouting

public EdgeRouting edgeRouting(javautils.graph.adt.AugmentedGraph original,
                               javautils.graph.adt.AugmentedGraph preprocessed,
                               GraphTopology topology,
                               GraphLayoutAttrMap attrMap,
                               AugmentedNodeRanking ranking,
                               AugmentedNodeOrdering ordering,
                               AugmentedNodePositioning positioning)
Description copied from interface: EdgeRoutingPolicy

Edge routing for the graph.

Specified by:
edgeRouting in interface EdgeRoutingPolicy