de.cau.cs.kieler.klay.layered.intermediate
Class LayerConstraintProcessor

java.lang.Object
  extended by de.cau.cs.kieler.core.alg.AbstractAlgorithm
      extended by de.cau.cs.kieler.klay.layered.intermediate.LayerConstraintProcessor
All Implemented Interfaces:
IAlgorithm, ILayoutProcessor

public class LayerConstraintProcessor
extends AbstractAlgorithm
implements ILayoutProcessor

Moves nodes with layer constraints to the appropriate layers. To meet the preconditions of this processor, the EdgeAndLayerConstraintEdgeReverser can be used.

Precondition:
a layered graph; nodes to be placed in the first layer have only outgoing edges; nodes to be placed in the last layer have only incoming edges.
Postcondition:
nodes with layer constraints have been placed in the appropriate layers.
Slots:
Before phase 3.
Same-slot dependencies:
HierarchicalPortConstraintProcessor

See Also:
EdgeAndLayerConstraintEdgeReverser
Rating red

Constructor Summary
LayerConstraintProcessor()
           
 
Method Summary
 void process(LayeredGraph layeredGraph)
          Performs the phase's work on the given graph.
 
Methods inherited from class de.cau.cs.kieler.core.alg.AbstractAlgorithm
getMonitor, reset, reset, setProgressMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.cau.cs.kieler.core.alg.IAlgorithm
reset, reset, setProgressMonitor
 

Constructor Detail

LayerConstraintProcessor

public LayerConstraintProcessor()
Method Detail

process

public void process(LayeredGraph layeredGraph)
Performs the phase's work on the given graph.

Specified by:
process in interface ILayoutProcessor
Parameters:
layeredGraph - a layered graph