de.cau.cs.kieler.klay.layered.graph
Class LPort.TypeCondition
java.lang.Object
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

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 |
LPort.TypeCondition
public LPort.TypeCondition(PortType thetype)
- Creates a type condition.
- Parameters:
thetype
- the type of port to admit
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