View Javadoc

1   /*
2    wsmo4j extension - a Choreography API and Reference Implementation
3   
4    Copyright (c) 2005, University of Innsbruck, Austria
5   
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  
19  package org.wsmo.service.choreography.rule;
20  
21  import java.util.Set;
22  
23  import org.wsmo.common.Entity;
24  import org.wsmo.service.rule.*;
25  
26  /**
27   * Interface or class description
28   * 
29   * @author James Scicluna
30   * @author Thomas Haselwanter
31   * 
32   * Created on 06-Dec-2005 Committed by $Author: vassil_momtchev $
33   * 
34   * $Source$,
35   * @version $Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
36   */
37  
38  public interface ChoreographyRules extends Entity {
39      /**
40       * Returns <code>Rules</code> that make up this choreography.
41       * 
42       * @return <code>Set</code> of <code>Rules</code>
43       */
44      public Set<ChoreographyRule> listRules();
45  
46      /**
47       * Removes the specified rule from the choreography
48       * 
49       * @param rule
50       *            Rule object to be removed
51       */
52      public void removeRule(ChoreographyRule rule);
53  
54      /**
55       * Adds a rule to the choreography
56       * 
57       * @param rule
58       *            Rule object to be added to the choreography
59       */
60      public void addRule(ChoreographyRule rule);
61  }