org.deri.wsmo4j.orchestration.rule
Class AbstractTransitionRuleRI

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

public abstract class AbstractTransitionRuleRI
extends Object
implements OrchestrationTransitionRule

Implements common functionality for a Transition 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
protected  Condition condition
           
protected  Set<Rule> rules
           
 
Constructor Summary
AbstractTransitionRuleRI()
          Default constructor for Abstract Transition Rules
 
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
protected  String stringInnerRules()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wsmo.service.rule.Rule
accept, toString
 

Field Detail

condition

protected Condition condition

rules

protected Set<Rule> rules
Constructor Detail

AbstractTransitionRuleRI

public AbstractTransitionRuleRI()
Default constructor for Abstract Transition Rules

Method Detail

getCondition

public Condition getCondition()
Description copied from interface: OrchestrationTransitionRule
Returns the Logical Expression which defines the condition of the rule.

Specified by:
getCondition in interface OrchestrationTransitionRule
Returns:
Logical Expression defining the condition of the rule

setCondition

public void setCondition(Condition condition)
Description copied from interface: OrchestrationTransitionRule
Sets the Conditon of the rule.

Specified by:
setCondition in interface OrchestrationTransitionRule
Parameters:
condition - A Condition object defining the condition of the rule

listNestedRules

public Set<Rule> listNestedRules()
Description copied from interface: OrchestrationTransitionRule
Returns the list of Rule objects nested inside the transition rule

Specified by:
listNestedRules in interface OrchestrationTransitionRule
Returns:
Set of Rule objects

clearNestedRules

public void clearNestedRules()
Description copied from interface: OrchestrationTransitionRule
Removes all the nested rules

Specified by:
clearNestedRules in interface OrchestrationTransitionRule

addRule

public void addRule(Rule rule)
Description copied from interface: OrchestrationTransitionRule
Adds a nested Rule object

Specified by:
addRule in interface OrchestrationTransitionRule
Parameters:
rule - Adds a nested Rule object

addRules

public void addRules(Set<Rule> rules)
Description copied from interface: OrchestrationTransitionRule
Adds a set of rules

Specified by:
addRules in interface OrchestrationTransitionRule
Parameters:
rules - The set of Rule objects to be added

removeRule

public void removeRule(Rule rule)
Description copied from interface: OrchestrationTransitionRule
Removes a nested rule

Specified by:
removeRule in interface OrchestrationTransitionRule
Parameters:
rule - Rule object to be removed

setRules

public void setRules(Set<Rule> rules)
Description copied from interface: OrchestrationTransitionRule
Sets the inner rules of the rule

Specified by:
setRules in interface OrchestrationTransitionRule
Parameters:
rules - A set of Rule objects to be set as the inner rules

stringInnerRules

protected String stringInnerRules()


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