View Javadoc

1   /***
2   * _FIPA_Agent_97Stub.java
3   * Generated by the IDL-to-Java compiler (portable), version "3.0"
4   * from FIPA_Agent_97.idl
5   * 08 August 2000 13:12:52 o'clock BST
6   */
7   package fipa97;
8   
9   public class _FIPA_Agent_97Stub extends org.omg.CORBA.portable.ObjectImpl implements FIPA_Agent_97
10  {
11    // Constructors
12    // NOTE:  If the default constructor is used, the
13    //        object is useless until _set_delegate (...)
14    //        is called.
15    public _FIPA_Agent_97Stub ()
16    {
17      super ();
18    }
19  
20    public _FIPA_Agent_97Stub (org.omg.CORBA.portable.Delegate delegate)
21    {
22      super ();
23      _set_delegate (delegate);
24    }
25  
26    public void message (String acl_message)
27    {
28      org.omg.CORBA.portable.InputStream _in = null;
29      try {
30         org.omg.CORBA.portable.OutputStream _out = _request ("message", false);
31         _out.write_string (acl_message);
32         _in = _invoke (_out);
33      } catch (org.omg.CORBA.portable.ApplicationException _ex) {
34         _in = _ex.getInputStream ();
35         String _id = _ex.getId ();
36         throw new org.omg.CORBA.MARSHAL (_id);
37      } catch (org.omg.CORBA.portable.RemarshalException _rm) {
38         message (acl_message);
39      } finally {
40          _releaseReply (_in);
41      }
42    } // message
43  
44    // Type-specific CORBA::Object operations
45    private static String[] __ids = {
46      "IDL:FIPA_Agent_97:1.0"};
47  
48    public String[] _ids ()
49    {
50      return (String[])__ids.clone ();
51    }
52  
53    private void readObject (java.io.ObjectInputStream s)
54    {
55       try 
56       {
57         String str = s.readUTF ();
58         org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init ().string_to_object (str);
59         org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
60         _set_delegate (delegate);
61       } catch (java.io.IOException e) {}
62    }
63  
64    private void writeObject (java.io.ObjectOutputStream s)
65    {
66       try 
67       {
68         String str = org.omg.CORBA.ORB.init ().object_to_string (this);
69         s.writeUTF (str);
70       } catch (java.io.IOException e) {}
71    }
72  } // class _FIPA_Agent_97Stub