KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > InOut > Connector > InOut2ClientSRole


1 /**
2  * InOut2ClientSRole.java is a part of the SOFA project.
3  * This file was created by pepan on 16.4.2003.
4  */

5 package SOFA.SOFAnode.InOut.Connector;
6
7 import SOFA.Connector.RoleBaseImpl;
8 import SOFA.SOFAnode.InOut.Bundle;
9 import SOFA.SOFAnode.InOut.InOut2Client;
10 import SOFA.SOFAnode.InOut.InOutException;
11
12 /**
13  * @author Petr Panuska
14  */

15 public class InOut2ClientSRole extends RoleBaseImpl implements CNInOut2Client {
16   InOut2Client target;
17
18   public void link (Object JavaDoc target) throws SOFA.Connector.LinkException {
19     this.target = (InOut2Client) target;
20   }
21
22
23 /*
24   public void obtainComponent (String fullName, String sofanode) throws InOutException {
25 // target.obtainComponent(fullName, sofanode);
26   }
27
28   public void distributeComponent (String fullName, String[] sofanodes) throws InOutException {
29 // target.distributeComponent(fullName, sofanodes);
30   }
31 */

32
33
34   public void obtain (String JavaDoc[] offers, String JavaDoc[] components, String JavaDoc sofaNode) throws InOutException {
35     target.obtain(offers, components, sofaNode);
36   }
37
38   public void distribute (String JavaDoc[] offers, String JavaDoc[] components, String JavaDoc[] sofaNodes) throws InOutException {
39     target.distribute(offers, components, sofaNodes);
40   }
41
42   public void obtainOffers (String JavaDoc[] offers, String JavaDoc sofaNode) throws InOutException {
43     target.obtainOffers(offers, sofaNode);
44   }
45
46   public void distributeOffers (String JavaDoc[] offers, String JavaDoc[] sofaNodes) throws InOutException {
47     target.distributeOffers(offers, sofaNodes);
48   }
49
50   public void obtainComponents (String JavaDoc[] components, String JavaDoc sofaNode) throws InOutException {
51     target.obtainComponents(components, sofaNode);
52   }
53
54   public void distributeComponents (String JavaDoc[] components, String JavaDoc[] sofaNodes) throws InOutException {
55     target.distributeComponents(components, sofaNodes);
56   }
57
58   public Bundle list () throws InOutException {
59     return target.list();
60   }
61 }
62
Popular Tags