org.deri.wsmo4j.choreography.rule
Class RulesRI

java.lang.Object
  extended by com.ontotext.wsmo4j.common.EntityImpl
      extended by org.deri.wsmo4j.choreography.rule.RulesRI
All Implemented Interfaces:
Iterable, org.wsmo.common.Entity, ChoreographyRules

public class RulesRI
extends com.ontotext.wsmo4j.common.EntityImpl
implements ChoreographyRules, Iterable

Interface or class description

Version:
$Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
Author:
James Scicluna, Thomas Haselwanter Created on 06-Dec-2005 Committed by $Author: vassil_momtchev $ $Source: /cvsroot/wsmo4j/ext/choreography/src/ri/org/deri/wsmo4j/choreography/rule/RulesRI.java,v $,

Constructor Summary
RulesRI(org.wsmo.common.Identifier id)
          Initializes the Rules container of Choreography Descriptions with the given Identifier
RulesRI(org.wsmo.common.Identifier id, Set<ChoreographyRule> rules)
          Initializes the Rules container of Choreography Descriptions with the given Identifier and rules
 
Method Summary
 void addRule(ChoreographyRule rule)
          Adds a rule to the choreography
 Iterator<ChoreographyRule> iterator()
           
 Set<ChoreographyRule> listRules()
          Returns Rules that make up this choreography.
 void removeRule(ChoreographyRule rule)
          Removes the specified rule from the choreography
 
Methods inherited from class com.ontotext.wsmo4j.common.EntityImpl
addNFPValue, addNFPValue, equals, getIdentifier, hashCode, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Constructor Detail

RulesRI

public RulesRI(org.wsmo.common.Identifier id)
Initializes the Rules container of Choreography Descriptions with the given Identifier

Parameters:
id - Identifier of the transition rules

RulesRI

public RulesRI(org.wsmo.common.Identifier id,
               Set<ChoreographyRule> rules)
Initializes the Rules container of Choreography Descriptions with the given Identifier and rules

Parameters:
id - Identifier of the Rules Container
rules - A set of rules to be put in the container
Method Detail

listRules

public Set<ChoreographyRule> listRules()
Description copied from interface: ChoreographyRules
Returns Rules that make up this choreography.

Specified by:
listRules in interface ChoreographyRules
Returns:
Set of Rules

removeRule

public void removeRule(ChoreographyRule rule)
Description copied from interface: ChoreographyRules
Removes the specified rule from the choreography

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

addRule

public void addRule(ChoreographyRule rule)
Description copied from interface: ChoreographyRules
Adds a rule to the choreography

Specified by:
addRule in interface ChoreographyRules
Parameters:
rule - Rule object to be added to the choreography

iterator

public Iterator<ChoreographyRule> iterator()
Specified by:
iterator in interface Iterable


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