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   * Interface of a creator. A creator is used by the <code>Factory</code> to delegate the actual
12   * object creation. 
13   */
14  public interface Creator {
15  
16      Workflow newWorkflow();
17  
18      Workflow newWorkflow(String id) throws IllegalArgumentException;
19  
20      Token newToken();
21  
22      Token newToken(boolean value);
23  
24      Token newToken(boolean value, GenericProperties properties);
25  
26      Token newToken(String id, boolean value, GenericProperties properties);
27  
28      Token newToken(Data data);
29  
30      Token newToken(Data data, GenericProperties properties);
31  
32      Token newToken(String id, Data data, GenericProperties properties);
33  
34      Data newData();
35  
36      Data newData(Object o) throws WorkflowFormatException;
37  
38      Place newPlace();
39  
40      Transition newTransition();
41  
42      Operation newOperation();
43  
44      OperationClass newOperationClass();
45  
46      OperationCandidate newOperationCandidate();
47  
48      Edge newEdge();
49  
50      GenericProperties newProperties();
51  
52      Property newProperty(String key, String value);
53  
54      Property newProperty();
55  
56  }
57