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.calls;
7   
8   import net.kwfgrid.gworkflowdl.protocol.structure.*;
9   
10  import java.io.IOException;
11  
12  import org.xmlpull.v1.XmlSerializer;
13  
14  public class OperationClassRemoveOperationCandidate extends AbstractMethodCall {
15      protected ProtocolOperationClass _operation;
16      protected int _i;
17  
18      public OperationClassRemoveOperationCandidate(ProtocolOperationClass operation, int i) {
19  	super(operation.getRoot());
20  	_operation = operation;
21  	_i = i;
22      }
23      
24      public void marshal(IMethodCallMarshaller encoder, XmlSerializer serializer) throws IOException {
25  	encoder.marshalOperationClassRemoveOperationCandidate(serializer, _operation, _i);
26      }
27  
28      public Object execute() {
29  	_operation.__removeOperationCandidate(_i);
30  	setExecuted();
31  	return null;
32      }
33  }