de.cau.cs.kieler.klay.layered.p3order
Interface IPortDistributor

All Known Implementing Classes:
NodeRelativePortDistributor

public interface IPortDistributor

calculates port ranks and distributes ports.

Rating red

Method Summary
 void calculatePortRanks(LNode[] layer)
          Determine positions for all ports in the given layer.
 void distributePorts(LNode[][] layeredGraph)
          Distribute the ports of the layered graph depending on the port constraints.
 List<LPort> getSortedInputPorts(LNode node)
          Returns a list of input ports, beginning at the top right port of the eastern side, going clockwise.
 

Method Detail

calculatePortRanks

void calculatePortRanks(LNode[] layer)
Determine positions for all ports in the given layer. Input and output ports are processed separately.

Parameters:
layer - a layer

getSortedInputPorts

List<LPort> getSortedInputPorts(LNode node)
Returns a list of input ports, beginning at the top right port of the eastern side, going clockwise.

Parameters:
node - the node whose input ports to return.
Returns:
list of input ports.

distributePorts

void distributePorts(LNode[][] layeredGraph)
Distribute the ports of the layered graph depending on the port constraints.

Parameters:
layeredGraph - a layered graph