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

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

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

A condition that checks the side of ports.

Rating red

Constructor Summary
LPort.SideCondition(PortSide theside)
          Creates a side 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.SideCondition

public LPort.SideCondition(PortSide theside)
Creates a side condition.

Parameters:
theside - the side 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