org.wsmo.service.choreography.rule
Interface ChoreographyTransitionRule

All Superinterfaces:
ChoreographyRule, Rule
All Known Subinterfaces:
ChoreographyChoose, ChoreographyForAll, ChoreographyIfThen, ChoreographyQuantifiedRule
All Known Implementing Classes:
AbstractQuantifiedRuleRI, AbstractTransitionRuleRI, ChooseRI, ForAllRI, IfThenRI

public interface ChoreographyTransitionRule
extends ChoreographyRule

Defines the simplest type of transition rule which takes the form of "if Condition then 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:
James Scicluna, Thomas Haselwanter, Holger Lausen

Method Summary
 void addRule(ChoreographyRule rule)
          Adds a nested Rule object
 void addRules(Set<ChoreographyRule> rules)
          Adds a set of rules
 void clearNestedRules()
          Removes all the nested rules
 Condition getCondition()
          Returns the Logical Expression which defines the condition of the rule.
 Set<ChoreographyRule> listNestedRules()
          Returns the list of Rule objects nested inside the transition rule
 void removeRule(ChoreographyRule rule)
          Removes a nested rule
 void setCondition(Condition condition)
          Sets the Conditon of the rule.
 void setRules(Set<ChoreographyRule> rules)
          Sets the inner rules of the rule
 
Methods inherited from interface org.wsmo.service.rule.Rule
accept, toString
 

Method Detail

getCondition

Condition getCondition()
Returns the Logical Expression which defines the condition of the rule.

Returns:
Logical Expression defining the condition of the rule

setCondition

void setCondition(Condition condition)
Sets the Conditon of the rule.

Parameters:
condition - A Condition object defining the condition of the rule

listNestedRules

Set<ChoreographyRule> listNestedRules()
Returns the list of Rule objects nested inside the transition rule

Returns:
Set of Rule objects

setRules

void setRules(Set<ChoreographyRule> rules)
Sets the inner rules of the rule

Parameters:
rules - A set of Rule objects to be set as the inner rules

clearNestedRules

void clearNestedRules()
Removes all the nested rules


addRule

void addRule(ChoreographyRule rule)
Adds a nested Rule object

Parameters:
rule - Adds a nested Rule object

addRules

void addRules(Set<ChoreographyRule> rules)
Adds a set of rules

Parameters:
rules - The set of Rule objects to be added

removeRule

void removeRule(ChoreographyRule rule)
Removes a nested rule

Parameters:
rule - Rule object to be removed


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