1 /***
2 * _FIPA_Agent_97ImplBase.java
3 * Generated by the IDL-to-Java compiler (portable), version "3.0"
4 * from FIPA_Agent_97.idl
5 * 08 August 2000 13:41:52 o'clock BST
6 */
7 package fipa97;
8
9 public abstract class _FIPA_Agent_97ImplBase extends org.omg.CORBA.portable.ObjectImpl
10 implements FIPA_Agent_97, org.omg.CORBA.portable.InvokeHandler
11 {
12
13
14 public _FIPA_Agent_97ImplBase ()
15 {
16 }
17
18 private static java.util.Hashtable _methods = new java.util.Hashtable ();
19 static
20 {
21 _methods.put ("message", new java.lang.Integer (0));
22 }
23
24 public org.omg.CORBA.portable.OutputStream _invoke (String method,
25 org.omg.CORBA.portable.InputStream in,
26 org.omg.CORBA.portable.ResponseHandler rh)
27 {
28 org.omg.CORBA.portable.OutputStream out = null;
29 java.lang.Integer __method = (java.lang.Integer)_methods.get (method);
30 if (__method == null)
31 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
32
33 switch (__method.intValue ())
34 {
35 case 0:
36 {
37 String acl_message = in.read_string ();
38 this.message (acl_message);
39 out = rh.createReply();
40 break;
41 }
42
43 default:
44 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
45 }
46
47 return out;
48 }
49
50
51 private static String[] __ids = {
52 "IDL:FIPA_Agent_97:1.0"};
53
54 public String[] _ids ()
55 {
56 return __ids;
57 }
58
59
60 }