5 * subastas/_coordinadorSubastaStub.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
8 * domingo 8 de junio de 2008 19H22' CEST
11 public class _coordinadorSubastaStub extends org.omg.CORBA.portable.ObjectImpl implements subastas.coordinadorSubasta
16 * coordinadorSubasta: interfaz de objetos que gestionan el
17 * desarrollo de la subasta de cada bien subastado por la empresa.
19 * La subasta pasara por tres estados:
25 public subastas.clienteSubastas ganador_provisional ()
27 org.omg.CORBA.portable.InputStream $in = null;
29 org.omg.CORBA.portable.OutputStream $out = _request ("_get_ganador_provisional", true);
31 subastas.clienteSubastas $result = subastas.clienteSubastasHelper.read ($in);
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 return ganador_provisional ( );
42 } // ganador_provisional
44 public subastas.clienteSubastas[] clientes ()
46 org.omg.CORBA.portable.InputStream $in = null;
48 org.omg.CORBA.portable.OutputStream $out = _request ("_get_clientes", true);
50 subastas.clienteSubastas $result[] = subastas.lista_clientesHelper.read ($in);
52 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
53 $in = $ex.getInputStream ();
54 String _id = $ex.getId ();
55 throw new org.omg.CORBA.MARSHAL (_id);
56 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
65 org.omg.CORBA.portable.InputStream $in = null;
67 org.omg.CORBA.portable.OutputStream $out = _request ("_get_valor", true);
69 float $result = $in.read_float ();
71 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
72 $in = $ex.getInputStream ();
73 String _id = $ex.getId ();
74 throw new org.omg.CORBA.MARSHAL (_id);
75 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
82 public String descripcion ()
84 org.omg.CORBA.portable.InputStream $in = null;
86 org.omg.CORBA.portable.OutputStream $out = _request ("_get_descripcion", true);
88 String $result = $in.read_string ();
90 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
91 $in = $ex.getInputStream ();
92 String _id = $ex.getId ();
93 throw new org.omg.CORBA.MARSHAL (_id);
94 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
95 return descripcion ( );
102 // Inscripcion -> Abierta -> Cerrada
103 public String estado ()
105 org.omg.CORBA.portable.InputStream $in = null;
107 org.omg.CORBA.portable.OutputStream $out = _request ("_get_estado", true);
108 $in = _invoke ($out);
109 String $result = $in.read_string ();
111 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
112 $in = $ex.getInputStream ();
113 String _id = $ex.getId ();
114 throw new org.omg.CORBA.MARSHAL (_id);
115 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
122 public void inscribirCliente (subastas.clienteSubastas cl)
124 org.omg.CORBA.portable.InputStream $in = null;
126 org.omg.CORBA.portable.OutputStream $out = _request ("inscribirCliente", true);
127 subastas.clienteSubastasHelper.write ($out, cl);
128 $in = _invoke ($out);
130 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
131 $in = $ex.getInputStream ();
132 String _id = $ex.getId ();
133 throw new org.omg.CORBA.MARSHAL (_id);
134 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
135 inscribirCliente (cl );
139 } // inscribirCliente
141 public void abrirSubasta ()
143 org.omg.CORBA.portable.InputStream $in = null;
145 org.omg.CORBA.portable.OutputStream $out = _request ("abrirSubasta", true);
146 $in = _invoke ($out);
148 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
149 $in = $ex.getInputStream ();
150 String _id = $ex.getId ();
151 throw new org.omg.CORBA.MARSHAL (_id);
152 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
159 public boolean pujar (float cantidad, subastas.clienteSubastas cl)
161 org.omg.CORBA.portable.InputStream $in = null;
163 org.omg.CORBA.portable.OutputStream $out = _request ("pujar", true);
164 $out.write_float (cantidad);
165 subastas.clienteSubastasHelper.write ($out, cl);
166 $in = _invoke ($out);
167 boolean $result = $in.read_boolean ();
169 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
170 $in = $ex.getInputStream ();
171 String _id = $ex.getId ();
172 throw new org.omg.CORBA.MARSHAL (_id);
173 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
174 return pujar (cantidad, cl );
180 public void ultimaPuja (subastas.clienteSubastas cl)
182 org.omg.CORBA.portable.InputStream $in = null;
184 org.omg.CORBA.portable.OutputStream $out = _request ("ultimaPuja", true);
185 subastas.clienteSubastasHelper.write ($out, cl);
186 $in = _invoke ($out);
188 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
189 $in = $ex.getInputStream ();
190 String _id = $ex.getId ();
191 throw new org.omg.CORBA.MARSHAL (_id);
192 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
199 public subastas.clienteSubastas ganador ()
201 org.omg.CORBA.portable.InputStream $in = null;
203 org.omg.CORBA.portable.OutputStream $out = _request ("ganador", true);
204 $in = _invoke ($out);
205 subastas.clienteSubastas $result = subastas.clienteSubastasHelper.read ($in);
207 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
208 $in = $ex.getInputStream ();
209 String _id = $ex.getId ();
210 throw new org.omg.CORBA.MARSHAL (_id);
211 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
218 // Type-specific CORBA::Object operations
219 private static String[] __ids = {
220 "IDL:subastas/coordinadorSubasta:1.0"};
222 public String[] _ids ()
224 return (String[])__ids.clone ();
227 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
229 String str = s.readUTF ();
230 String[] args = null;
231 java.util.Properties props = null;
232 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
233 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
234 _set_delegate (delegate);
237 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
239 String[] args = null;
240 java.util.Properties props = null;
241 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
244 } // class _coordinadorSubastaStub