org.deri.wsmo4j.orchestration.rule
Class IfThenRI

java.lang.Object
  extended by org.deri.wsmo4j.orchestration.rule.AbstractTransitionRuleRI
      extended by org.deri.wsmo4j.orchestration.rule.IfThenRI
All Implemented Interfaces:
OrchestrationIfThen, OrchestrationTransitionRule, Rule

public class IfThenRI
extends AbstractTransitionRuleRI
implements OrchestrationIfThen

Reference Implementation for the IfThen rule.

     Created on Jul 26, 2005
     Committed by $Author: vassil_momtchev $
     $Source$
 

Version:
$Revision: 1851 $ $Date: 2006-10-24 18:01:07 +0300 (Tue, 24 Oct 2006) $
Author:
Thomas Haselwanter, James Scicluna

Field Summary
 
Fields inherited from class org.deri.wsmo4j.orchestration.rule.AbstractTransitionRuleRI
condition, rules
 
Constructor Summary
IfThenRI(Condition condition, Rule rule)
           
IfThenRI(Condition condition, Set<Rule> rules)
           
 
Method Summary
 void accept(Visitor visitor)
          Acceptor method for the Visitor.
 String toString()
           
 String toString(org.wsmo.common.TopEntity te)
          Returns a string representation of the Rule.
 
Methods inherited from class org.deri.wsmo4j.orchestration.rule.AbstractTransitionRuleRI
addRule, addRules, clearNestedRules, getCondition, listNestedRules, removeRule, setCondition, setRules, stringInnerRules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.wsmo.service.orchestration.rule.OrchestrationTransitionRule
addRule, addRules, clearNestedRules, getCondition, listNestedRules, removeRule, setCondition, setRules
 

Constructor Detail

IfThenRI

public IfThenRI(Condition condition,
                Rule rule)
Parameters:
condition - LogicalExpression object defining the condition of the rule.
rule - An inner Rule object of the rule

IfThenRI

public IfThenRI(Condition condition,
                Set<Rule> rules)
Parameters:
condition - LogicalExpression object defining the condition of the rule.
rules - A set of inner Rule objects of the rule
Method Detail

accept

public void accept(Visitor visitor)
Description copied from interface: Rule
Acceptor method for the Visitor.

Specified by:
accept in interface Rule
Parameters:
visitor - Rule-Visitor object

toString

public String toString(org.wsmo.common.TopEntity te)
Description copied from interface: Rule
Returns a string representation of the Rule.

Specified by:
toString in interface Rule
Returns:
String representing the rule object.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.