org.wsmo.service.orchestration.rule
Interface OrchestrationTransitionRule

All Superinterfaces:
Rule
All Known Subinterfaces:
OrchestrationChoose, OrchestrationForAll, OrchestrationIfThen, OrchestrationQuantifiedRule
All Known Implementing Classes:
AbstractQuantifiedRuleRI, AbstractTransitionRuleRI, ChooseRI, ForAllRI, IfThenRI

public interface OrchestrationTransitionRule
extends Rule

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: 1850 $ $Date: 2006-10-24 17:59:38 +0300 (Tue, 24 Oct 2006) $
Author:
James Scicluna, Thomas Haselwanter, Holger Lausen

Method Summary
 void addRule(Rule rule)
          Adds a nested Rule object
 void addRules(Set<Rule> 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<Rule> listNestedRules()
          Returns the list of Rule objects nested inside the transition rule
 void removeRule(Rule rule)
          Removes a nested rule
 void setCondition(Condition condition)
          Sets the Conditon of the rule.
 void setRules(Set<Rule> 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<Rule> listNestedRules()
Returns the list of Rule objects nested inside the transition rule

Returns:
Set of Rule objects

setRules

void setRules(Set<Rule> 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(Rule rule)
Adds a nested Rule object

Parameters:
rule - Adds a nested Rule object

addRules

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

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

removeRule

void removeRule(Rule rule)
Removes a nested rule

Parameters:
rule - Rule object to be removed


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