de.cau.cs.kieler.klay.layered.intermediate
Class PortListSorter
java.lang.Object
de.cau.cs.kieler.core.alg.AbstractAlgorithm
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

Method Summary |
void |
process(LayeredGraph layeredGraph)
Performs the phase's work on the given graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortListSorter
public PortListSorter()
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