de.cau.cs.kieler.klay.layered.graph
Class LPort.TypeCondition

java.lang.Object
  extended by de.cau.cs.kieler.klay.layered.graph.LPort.TypeCondition
All Implemented Interfaces:
ICondition<LPort>
Enclosing class:
LPort

public static class LPort.TypeCondition
extends Object
implements ICondition<LPort>

A condition that checks the type of ports. If a port has incoming edges, it is considered an input port. If a port has outgoing edges, it is considered an output port. A port may be both, input and output port, or none.

Rating red

Constructor Summary
LPort.TypeCondition(PortType thetype)
          Creates a type condition.
 
Method Summary
 boolean evaluate(LPort object)
          Evaluate this condition on the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LPort.TypeCondition

public LPort.TypeCondition(PortType thetype)
Creates a type condition.

Parameters:
thetype - the type of port to admit
Method Detail

evaluate

public boolean evaluate(LPort object)
Evaluate this condition on the given object.

Specified by:
evaluate in interface ICondition<LPort>
Parameters:
object - a target object
Returns:
true if the condition is met for the object