View Javadoc

1   /*
2    * Copyright 2010 Fraunhofer Gesellschaft, Munich, Germany,
3    * for its Fraunhofer Institute for Computer Architecture and Software
4    * Technology (FIRST), Berlin, Germany. All rights reserved.
5    * http://www.first.fraunhofer.de/
6    */
7   
8   package net.kwfgrid.gworkflowdl.structure;
9   
10  /***
11   * This is the public Interface to the OperationClass. A class operation is an abstract operation
12   * which may contain several operation candidates.
13   *
14   * @author Andreas Hoheisel
15   * @version $Id: OperationClass.java 1344 2010-01-27 15:36:48Z andreas.hoheisel@first.fraunhofer.de $
16   * @see Operation
17   */
18  public interface OperationClass extends Owls {
19  
20      static final Object DEFAULT_OPERATIONCANDIDATES = null;
21      static final String DEFAULT_OPERATIONCLASSNAME = null;
22  
23      /***
24       * Get total number of operation candidates for this operation class.
25       **/
26      int getOperationCount();
27  
28      /***
29       * Get the name of this operation class.
30       */
31      String getName();
32  
33      /***
34       * Set the name attribute of this operation class.
35       */
36      void setName(String name);
37  
38      /***
39       * Get the candidates of this operation class.
40       */
41      OperationCandidate[] getOperationCandidates();
42  
43      /***
44       * Set the candidates of this operation class.
45       * @param ocs
46       */
47      void setOperationCandidates(OperationCandidate[] ocs);
48  
49      /***
50       * Add an additional concrete operation to the candidates.
51       * @param operation The concrete operation.
52       */
53      void addOperationCandidate(OperationCandidate operationCandidate);
54  
55      /***
56       * Remove the i-th concrete operation candidate from operations list.
57       * @param i The index of the concrete operation.
58       */
59      void removeOperationCandidate(int i);
60  
61      /***
62       * get abstraction degree of operation.
63       * @return  color
64       */
65      int getAbstractionLevel();
66    
67  }