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

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

public class PortListSorter
extends AbstractAlgorithm
implements ILayoutProcessor

Sorts the port lists of nodes with fixed port orders. The node's list of ports is sorted beginning at the leftmost northern port, going clockwise.

Note that this processor is placed before phase 3. Another instance may be used before phase 4. This is because in phase 3, nodes may have their port orders assigned. This processor can then be used to sort the port lists accordingly.

Precondition:
a layered graph.
Postcondition:
the port lists of nodes with fixed port orders are sorted..
Slots:
Before phase 3. May additionally be used before phase 4 as well.
Same-slot dependencies:
None.

Rating red

Constructor Summary
PortListSorter()
           
 
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

PortListSorter

public PortListSorter()
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