de.fhg.igd.jhsm
Interface Condition

All Known Implementing Classes:
AbstractCondition

public interface Condition

A condition that must be satisfied in order to enable an associated transition to fire. In terms of state machines this is called a guard condition.

Version:
"$Id: Condition.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Jan Haevecker
See Also:
Transition

Method Summary
 boolean evaluate(Context context)
          Tests if the condition is satisfied.
 

Method Detail

evaluate

public boolean evaluate(Context context)
Tests if the condition is satisfied. This is the hook for the interpreter.

Parameters:
context - Used to publish and retrieve global data.
Returns:
true if the condition is satisfied, false if it is not.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.