com.sun.emp.pathway.bean
Interface TerminalCondition


public interface TerminalCondition

An abstract condition used in waiting for a Terminal.

The waitCondition() method in the Terminal is controlled by an object implementing this interface.


Method Summary
 boolean isSatisfied(Terminal aTerminal)
          Determines if this condition is satisfied.
 

Method Detail

isSatisfied

public boolean isSatisfied(Terminal aTerminal)
Determines if this condition is satisfied.

Implementations of this method should adhere to the following guidelines:

It should be noted that any runtime exception thrown by this method will result in any relevant waitCondition() method returning by throwing a TerminalConditionException.

Parameters:
aTerminal - The Terminal being monitored.
Returns:
true signifies that the condition is satisfied.