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

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

public class PortSideProcessor
extends AbstractAlgorithm
implements ILayoutProcessor

Makes sure ports have at least a fixed side. If they don't, input ports are assigned to the left and output ports to the right side.

Precondition:
a layered graph.
Postcondition:
all nodes have their ports distributed, with port constraints set to fixed sides at the least.
Slots:
Before phase 3.
Same-slot dependencies:
None.

Rating red

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

PortSideProcessor

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