org.deri.wsmo4j.choreography.rule
Class IfThenRI

java.lang.Object
  extended by org.deri.wsmo4j.choreography.rule.AbstractTransitionRuleRI
      extended by org.deri.wsmo4j.choreography.rule.IfThenRI
All Implemented Interfaces:
ChoreographyIfThen, ChoreographyTransitionRule, ChoreographyRule, Rule

public class IfThenRI
extends AbstractTransitionRuleRI
implements ChoreographyIfThen

Reference Implementation for the IfThen rule.

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

Version:
$Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
Author:
Thomas Haselwanter, James Scicluna

Field Summary
 
Fields inherited from class org.deri.wsmo4j.choreography.rule.AbstractTransitionRuleRI
condition, rules
 
Constructor Summary
IfThenRI(Condition condition, ChoreographyRule rule)
           
IfThenRI(Condition condition, Set<ChoreographyRule> 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.choreography.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.choreography.rule.ChoreographyTransitionRule
addRule, addRules, clearNestedRules, getCondition, listNestedRules, removeRule, setCondition, setRules
 

Constructor Detail

IfThenRI

public IfThenRI(Condition condition,
                ChoreographyRule 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<ChoreographyRule> 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.