Package org.shiwa.fgi.iwir.condition

Provides the necessary tools for evaluating a condition according to the IWIR specification.

See:
          Description

Class Summary
ConditionAST The Class AST provides the most important methods for creating and evaluating an IWIR condition AST.
ConditionNode The Class CondirtionNode provides the data structure and methods to create and evaluate a condition AST.
UnitTest  
 

Enum Summary
ConditionToken The Enum Token provides the token types for the condition ASt.
 

Exception Summary
ConditionParseException The Class ParseException.
 

Package org.shiwa.fgi.iwir.condition Description

Provides the necessary tools for evaluating a condition according to the IWIR specification. Following simplified example depicts the general usage:

WhileTask t = new WhileTask("while");
t.addInputPort(new InputPort("in",SimpleType.INTEGER));
t.setCondition(new ConditionExpression("in = 2"));
...     
t.setPortValue("in", 2);
Then
t.getCondition().eval();
returns true. See classes for more information.