KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > Connector > EEG > ElementRoleBase


1 /*
2  * ElementRoleBase.java
3  *
4  * Created on 18. duben 2002, 20:13
5  */

6
7 package SOFA.Connector.EEG;
8
9 /**
10  *
11  * @author ghort
12  * @version
13  */

14 abstract public class ElementRoleBase implements ElementRoleInterface {
15
16     protected SOFA.Connector.EEG.ConnectorManagerInterface manager;
17     
18     /** Creates new ElementRoleBase */
19     public ElementRoleBase() {
20     }
21     
22     public void setManagerTie(SOFA.Connector.EEG.ConnectorManagerInterface manager) {
23         this.manager=manager;
24     }
25     
26     public SOFA.Connector.EEG.ConnectorManagerInterface getManagerTie() {
27         return manager;
28     }
29
30     public SOFA.Connector.Reference getSOFAReference() {
31         return manager.getSOFAReference();
32     }
33     
34     public void setSOFAReference(SOFA.Connector.Reference ref) {
35         manager.setSOFAReference(ref);
36     }
37
38     public void setDeploymentDescriptor(SOFA.Connector.DeploymentDescriptor dd) {
39         manager.setDeploymentDescriptor(dd);
40     }
41
42     public SOFA.Component.ThreadIDRegistry getThrIDRegistry() {
43         return manager.getThrIDRegistry();
44     }
45     
46     public void setThrIDRegistry(SOFA.Component.ThreadIDRegistry reg) {
47         manager.setThrIDRegistry(reg);
48     }
49     
50 // public void setRegister(SOFA.Component.Register reg) {
51
// manager.setRegister(reg);
52
// }
53

54     public SOFA.Connector.RoleBase getComponentManager() {
55         return manager.getComponentManager();
56     }
57     
58     public void setComponentManager(SOFA.Connector.RoleBase cm) {
59         manager.setComponentManager(cm);
60     }
61
62         protected String JavaDoc getConnectorName() {
63           return manager.getName();
64         }
65 }
66
Popular Tags