org.deri.wsmo4j.choreography.rule
Class AbstractTransitionRuleRI

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

public abstract class AbstractTransitionRuleRI
extends Object
implements ChoreographyTransitionRule

Implements common functionality for a Transition 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
protected  Condition condition
           
protected  Set<ChoreographyRule> rules
           
 
Constructor Summary
AbstractTransitionRuleRI()
          Default constructor for Abstract Transition Rules
 
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
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<ChoreographyRule> rules
Constructor Detail

AbstractTransitionRuleRI

public AbstractTransitionRuleRI()
Default constructor for Abstract Transition Rules

Method Detail

getCondition

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

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

setCondition

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

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

listNestedRules

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

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

clearNestedRules

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

Specified by:
clearNestedRules in interface ChoreographyTransitionRule

addRule

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

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

addRules

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

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

removeRule

public void removeRule(ChoreographyRule rule)
Description copied from interface: ChoreographyTransitionRule
Removes a nested rule

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

setRules

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

Specified by:
setRules in interface ChoreographyTransitionRule
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.