scorej
Interface SignalEvaluator
- public interface SignalEvaluator
This interface encapsulates a method that will be used to filter a Signal.
The evaluate method takes a Signal argument, and returns
a boolean determining whether or not the Signal "passes".
The purpose of a SignalEvaluator is to allow the programmer to use an
arbitrarily complex piece of code to match against incoming Signals in
a waitForSignal.
- See Also:
Signal,
S
|
Method Summary |
boolean |
evaluate(Signal signal)
Evaluate method takes a Signal argument and runs it through some
user defined test. |
java.lang.String |
toString()
|
evaluate
public boolean evaluate(Signal signal)
- Evaluate method takes a Signal argument and runs it through some
user defined test. If the Signal passes, evaluate returns true, else
it returns false
- Returns:
- true if the signal passes, false if not
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object