org.deri.wsmo4j.orchestration.rule
Class AbstractQuantifiedRuleRI
java.lang.Object
org.deri.wsmo4j.orchestration.rule.AbstractTransitionRuleRI
org.deri.wsmo4j.orchestration.rule.AbstractQuantifiedRuleRI
- All Implemented Interfaces:
- OrchestrationQuantifiedRule, OrchestrationTransitionRule, Rule
- Direct Known Subclasses:
- ChooseRI, ForAllRI
public abstract class AbstractQuantifiedRuleRI
- extends AbstractTransitionRuleRI
- implements OrchestrationQuantifiedRule
Provides common implementation methods for the quantified rules (Forall and
Choose).
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 Set<org.omwg.ontology.Variable> |
variables
|
Method Summary |
void |
addVariable(org.omwg.ontology.Variable variable)
Adds a quantified variable object |
void |
addVariables(Set<org.omwg.ontology.Variable> variable)
Adds a quantified variable object |
Set<org.omwg.ontology.Variable> |
listVariables()
Returns the set of Variable objects which are quantified by the Rule |
protected static
|
makeSet(E element)
|
void |
removeVariable(org.omwg.ontology.Variable variable)
Removes a quantified variable object from the rule |
protected String |
stringVariables()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
variables
protected Set<org.omwg.ontology.Variable> variables
AbstractQuantifiedRuleRI
public AbstractQuantifiedRuleRI(Set<org.omwg.ontology.Variable> variables,
Condition condition,
Set<Rule> rules)
- Parameters:
variables
- A Set of Quantified Variable objectscondition
- Logical Expression defining the condition of the rulerules
- A set of inner Rule objects of the rule
makeSet
protected static <E> Set<E> makeSet(E element)
listVariables
public Set<org.omwg.ontology.Variable> listVariables()
- Description copied from interface:
OrchestrationQuantifiedRule
- Returns the set of Variable objects which are quantified by the Rule
- Specified by:
listVariables
in interface OrchestrationQuantifiedRule
- Returns:
- Set of Variable objects
addVariable
public void addVariable(org.omwg.ontology.Variable variable)
- Description copied from interface:
OrchestrationQuantifiedRule
- Adds a quantified variable object
- Specified by:
addVariable
in interface OrchestrationQuantifiedRule
- Parameters:
variable
- Variable object
addVariables
public void addVariables(Set<org.omwg.ontology.Variable> variable)
- Description copied from interface:
OrchestrationQuantifiedRule
- Adds a quantified variable object
- Specified by:
addVariables
in interface OrchestrationQuantifiedRule
- Parameters:
variable
- Variable object
removeVariable
public void removeVariable(org.omwg.ontology.Variable variable)
- Description copied from interface:
OrchestrationQuantifiedRule
- Removes a quantified variable object from the rule
- Specified by:
removeVariable
in interface OrchestrationQuantifiedRule
- Parameters:
variable
- Variable object to be removed
stringVariables
protected String stringVariables()
Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.