1 package org.smartcomps.twister.engine.priv.core.definition.impl;
2
3 import org.smartcomps.twister.engine.priv.core.definition.Invoke;
4 import org.smartcomps.twister.engine.priv.core.definition.CorrelationRef;
5
6 import java.util.Collection;
7 import java.util.HashSet;
8 import java.util.Set;
9
10 /***
11 * Persistent implementation of the Invoke interface.
12 * @see org.smartcomps.twister.engine.priv.core.definition.Invoke
13 */
14 public class InvokeImpl extends BasicActivityImpl implements Invoke {
15
16 private String partner;
17 private String portType;
18 private String operation;
19 private String inputVariable;
20 private String outputVariable;
21
22 private Collection correlations = new HashSet();
23
24 public String getPartner() {
25 return partner;
26 }
27
28 public void setPartner(String partner) {
29 this.partner = partner;
30 }
31
32 public String getPortType() {
33 return portType;
34 }
35
36 public void setPortType(String portType) {
37 this.portType = portType;
38 }
39
40 public String getOperation() {
41 return operation;
42 }
43
44 public void setOperation(String operation) {
45 this.operation = operation;
46 }
47
48 public String getInputVariable() {
49 return inputVariable;
50 }
51
52 public void setInputVariable(String inputVariable) {
53 this.inputVariable = inputVariable;
54 }
55
56 public String getOutputVariable() {
57 return outputVariable;
58 }
59
60 public void setOutputVariable(String outputVariable) {
61 this.outputVariable = outputVariable;
62 }
63
64 public Collection getCorrelations() {
65 return correlations;
66 }
67
68 public void setCorrelations(Collection correlations) {
69 if (correlations instanceof Set) {
70 this.correlations = correlations;
71 } else {
72 this.correlations = new HashSet(correlations);
73 }
74 }
75
76 public void addCorrelation(CorrelationRef correlationRef) {
77 correlations.add(correlationRef);
78 }
79 }
This page was automatically generated by Maven