1 2 package SOFA.Connector; 3 4 import SOFA.Component.ThreadIDRegistry; 5 6 8 public class RoleBaseImpl implements RoleBase { 9 10 protected Reference ref; 11 protected ThreadIDRegistry thrReg; 12 protected RoleBase cm; 14 protected DeploymentDescriptor dd; 15 16 public void link(Object target) throws LinkException { 17 } 18 19 public Reference getSOFAReference() { 20 return ref; 21 } 22 23 public void setSOFAReference(Reference ref) { 24 this.ref = ref; 25 } 26 27 31 public void setDeploymentDescriptor(DeploymentDescriptor dd) { 32 this.dd = dd; 33 } 34 35 public ThreadIDRegistry getThrIDRegistry() { 36 return thrReg; 37 } 38 39 public void setThrIDRegistry(ThreadIDRegistry reg) { 40 this.thrReg = reg; 41 } 42 43 public RoleBase getComponentManager() { 44 return cm; 45 } 46 47 public void setComponentManager(RoleBase cm) { 48 this.cm = cm; 49 } 50 51 protected String getConnectorName() { 52 return ((SOFA.Connector.ECG.ConnectorOutputDescriptor) dd).name; 53 } 54 } 55 | Popular Tags |