org.deri.wsmo4j.choreography.rule
Class ChooseRI

java.lang.Object
  extended by org.deri.wsmo4j.choreography.rule.AbstractTransitionRuleRI
      extended by org.deri.wsmo4j.choreography.rule.AbstractQuantifiedRuleRI
          extended by org.deri.wsmo4j.choreography.rule.ChooseRI
All Implemented Interfaces:
ChoreographyChoose, ChoreographyQuantifiedRule, ChoreographyTransitionRule, ChoreographyRule, Rule

public class ChooseRI
extends AbstractQuantifiedRuleRI
implements ChoreographyChoose

Reference Implementation for the Choose 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.AbstractQuantifiedRuleRI
variables
 
Fields inherited from class org.deri.wsmo4j.choreography.rule.AbstractTransitionRuleRI
condition, rules
 
Constructor Summary
ChooseRI(Set<org.omwg.ontology.Variable> variables, Condition condition, ChoreographyRule rule)
          Constructor for a choose rule
ChooseRI(Set<org.omwg.ontology.Variable> variables, Condition condition, Set<ChoreographyRule> rules)
          Constructor for a choose rule
ChooseRI(org.omwg.ontology.Variable variable, Condition condition, ChoreographyRule rule)
          Constructor for a choose rule.
ChooseRI(org.omwg.ontology.Variable variable, Condition condition, Set<ChoreographyRule> rules)
          Constructor for a choose rule.
 
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.AbstractQuantifiedRuleRI
addVariable, addVariables, listVariables, makeSet, removeVariable, stringVariables
 
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.ChoreographyQuantifiedRule
addVariable, addVariables, listVariables, removeVariable
 
Methods inherited from interface org.wsmo.service.choreography.rule.ChoreographyTransitionRule
addRule, addRules, clearNestedRules, getCondition, listNestedRules, removeRule, setCondition, setRules
 

Constructor Detail

ChooseRI

public ChooseRI(org.omwg.ontology.Variable variable,
                Condition condition,
                ChoreographyRule rule)
Constructor for a choose rule.

Parameters:
variable - Quantified variable object.
condition - A LogicalExpression defining the condition of the rule
rule - Inner Rule of choose

ChooseRI

public ChooseRI(Set<org.omwg.ontology.Variable> variables,
                Condition condition,
                ChoreographyRule rule)
Constructor for a choose rule

Parameters:
variables - A set of quantified Variable objects
condition - A LogicalExpression defining the condition of the rule
rule - Inner Rule of choose

ChooseRI

public ChooseRI(org.omwg.ontology.Variable variable,
                Condition condition,
                Set<ChoreographyRule> rules)
Constructor for a choose rule.

Parameters:
variable - Quantified variable object.
condition - A LogicalExpression defining the condition of the rule
rules - A set of inner Rule objects

ChooseRI

public ChooseRI(Set<org.omwg.ontology.Variable> variables,
                Condition condition,
                Set<ChoreographyRule> rules)
Constructor for a choose rule

Parameters:
variables - A set of quantified Variable objects
condition - A LogicalExpression defining the condition of the rule
rules - A set of inner Rule objects
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.