KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > Connector > RoleBaseImpl


1 /* $Id: RoleBaseImpl.java,v 1.3 2004/05/20 14:23:50 bures Exp $ */
2 package SOFA.Connector;
3
4 import SOFA.Component.ThreadIDRegistry;
5
6 /** Implmentation of the RoleBase interface.
7   */

8 public class RoleBaseImpl implements RoleBase {
9
10     protected Reference ref;
11     protected ThreadIDRegistry thrReg;
12 // protected Register reg;
13
protected RoleBase cm;
14     protected DeploymentDescriptor dd;
15
16     public void link(Object JavaDoc 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 // public DeploymentDescriptor getDeploymentDescriptor() {
28
// return dd;
29
// }
30

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 JavaDoc getConnectorName() {
52           return ((SOFA.Connector.ECG.ConnectorOutputDescriptor) dd).name;
53         }
54 }
55
Popular Tags