View Javadoc
1 package org.smartcomps.twister.engine.priv.core.definition.impl; 2 3 import org.smartcomps.twister.engine.priv.core.definition.Receive; 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 Receive interface. 12 * @see org.smartcomps.twister.engine.priv.core.definition.Receive 13 */ 14 public class ReceiveImpl extends BasicActivityImpl implements Receive { 15 16 private String partner; 17 private String portType; 18 private String operation; 19 private String variable; 20 private boolean createInstance = false; 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 getVariable() { 49 return variable; 50 } 51 52 public void setVariable(String variable) { 53 this.variable = variable; 54 } 55 56 public boolean isCreateInstance() { 57 return createInstance; 58 } 59 60 public void setCreateInstance(boolean createInstance) { 61 this.createInstance = createInstance; 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 80 }

This page was automatically generated by Maven