View Javadoc

1   /*
2    * Copyright (c) 2005, The K-Wf Grid Consortium
3    * Fraunhofer Institute for Computer Architecture and Software Technology
4    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
5    */
6   package net.kwfgrid.gworkflowdl.protocol.structure;
7   
8   import net.kwfgrid.gworkflowdl.structure.*;
9   
10  /***
11     Creator for protocol implementation of the GWorkflowDL API.
12   */
13  public abstract class ProtocolCreator implements Creator {
14      protected Creator _delegate;
15  
16      /***
17         Constructor.
18         @param delegate The creator used to create the delegate objects of the protocol structure.
19       */
20      public ProtocolCreator(Creator delegate) {
21  	_delegate = delegate;
22      }
23  
24      ///
25      /// Implementation of Creator
26      /// ....................................................................................................
27  
28      public Token newToken() { 
29  	return new ProtocolToken(_delegate.newToken());
30      }
31  
32      public Token newToken(boolean value) { 
33  	return new ProtocolToken(_delegate.newToken(value));
34      }
35  
36      public Token newToken(boolean value, GenericProperties properties) {
37  	return new ProtocolToken(_delegate.newToken(value,properties));
38      }
39  
40      public Token newToken(String id, boolean value, GenericProperties properties) {
41  	return new ProtocolToken(_delegate.newToken(id,value,properties));
42      }
43  
44      public Token newToken(Data data) {
45          return new ProtocolToken(_delegate.newToken(data));
46      }
47  
48      public Token newToken(Data data, GenericProperties properties) {
49  	return new ProtocolToken(_delegate.newToken(data,properties));
50      }
51  
52      public Token newToken(String id, Data data, GenericProperties properties) {
53  	return new ProtocolToken(_delegate.newToken(id,data,properties));
54      }
55  
56      public Data newData() {
57          return new ProtocolData(_delegate.newData());
58      }
59  
60      public Data newData(Object o) throws WorkflowFormatException {
61          return new ProtocolData(_delegate.newData(o));
62      }
63  
64      public Place newPlace() {
65  	return new ProtocolPlace(_delegate.newPlace());
66      }
67  
68      public Transition newTransition() {
69  	return new ProtocolTransition(_delegate.newTransition());
70      }
71  
72      public Operation newOperation() {
73  	return new ProtocolOperation(_delegate.newOperation());
74      }
75  
76      public OperationClass newOperationClass() {
77  	return new ProtocolOperationClass(_delegate.newOperationClass());
78      }
79  
80      public OperationCandidate newOperationCandidate() {
81  	return new ProtocolOperationCandidate(_delegate.newOperationCandidate());
82      }
83  
84      public Edge newEdge() {
85  	return new ProtocolEdge(_delegate.newEdge());
86      }
87  
88      public GenericProperties newProperties() { 
89  	return new ProtocolProperties(_delegate.newProperties());
90      }
91  
92      public Property newProperty(String key, String value) { 
93  	return new ProtocolProperty(_delegate.newProperty(key, value));
94      }
95  
96      public Property newProperty() { 
97  	return new ProtocolProperty(_delegate.newProperty());
98      }
99  }