00001 package Sct_SctApi;
00002
00003
00011 public class _JustTopLevelStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.JustTopLevel
00012 {
00013
00014 public Sct_SctApi.CrateIPC getCrate (Sct.Corba.UniqueCrateIdentifier ucid)
00015 {
00016 org.omg.CORBA.portable.InputStream $in = null;
00017 try {
00018 org.omg.CORBA.portable.OutputStream $out = _request ("getCrate", true);
00019 Sct.Corba.UCIDHelper.write ($out, ucid);
00020 $in = _invoke ($out);
00021 Sct_SctApi.CrateIPC $result = Sct_SctApi.CrateIPCHelper.read ($in);
00022 return $result;
00023 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00024 $in = $ex.getInputStream ();
00025 String _id = $ex.getId ();
00026 throw new org.omg.CORBA.MARSHAL (_id);
00027 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00028 return getCrate (ucid );
00029 } finally {
00030 _releaseReply ($in);
00031 }
00032 }
00033
00034 public Sct_SctApi.CrateIPC getCrateLegacy (int partition, int crate)
00035 {
00036 org.omg.CORBA.portable.InputStream $in = null;
00037 try {
00038 org.omg.CORBA.portable.OutputStream $out = _request ("getCrateLegacy", true);
00039 $out.write_ulong (partition);
00040 $out.write_ulong (crate);
00041 $in = _invoke ($out);
00042 Sct_SctApi.CrateIPC $result = Sct_SctApi.CrateIPCHelper.read ($in);
00043 return $result;
00044 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00045 $in = $ex.getInputStream ();
00046 String _id = $ex.getId ();
00047 throw new org.omg.CORBA.MARSHAL (_id);
00048 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00049 return getCrateLegacy (partition, crate );
00050 } finally {
00051 _releaseReply ($in);
00052 }
00053 }
00054
00055 public Sct.Corba.UniqueCrateIdentifier[] getCrateUCIDs ()
00056 {
00057 org.omg.CORBA.portable.InputStream $in = null;
00058 try {
00059 org.omg.CORBA.portable.OutputStream $out = _request ("getCrateUCIDs", true);
00060 $in = _invoke ($out);
00061 Sct.Corba.UniqueCrateIdentifier $result[] = Sct.Corba.UCIDsHelper.read ($in);
00062 return $result;
00063 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00064 $in = $ex.getInputStream ();
00065 String _id = $ex.getId ();
00066 throw new org.omg.CORBA.MARSHAL (_id);
00067 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00068 return getCrateUCIDs ( );
00069 } finally {
00070 _releaseReply ($in);
00071 }
00072 }
00073
00074 public void standardRegisterDumpURID (Sct.Corba.UniqueRodIdentifier urid)
00075 {
00076 org.omg.CORBA.portable.InputStream $in = null;
00077 try {
00078 org.omg.CORBA.portable.OutputStream $out = _request ("standardRegisterDumpURID", true);
00079 Sct.Corba.URIDHelper.write ($out, urid);
00080 $in = _invoke ($out);
00081 return;
00082 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00083 $in = $ex.getInputStream ();
00084 String _id = $ex.getId ();
00085 throw new org.omg.CORBA.MARSHAL (_id);
00086 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00087 standardRegisterDumpURID (urid );
00088 } finally {
00089 _releaseReply ($in);
00090 }
00091 }
00092
00093 public Sct_SctApi.Scan createScan ()
00094 {
00095 org.omg.CORBA.portable.InputStream $in = null;
00096 try {
00097 org.omg.CORBA.portable.OutputStream $out = _request ("createScan", true);
00098 $in = _invoke ($out);
00099 Sct_SctApi.Scan $result = Sct_SctApi.ScanHelper.read ($in);
00100 return $result;
00101 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00102 $in = $ex.getInputStream ();
00103 String _id = $ex.getId ();
00104 throw new org.omg.CORBA.MARSHAL (_id);
00105 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00106 return createScan ( );
00107 } finally {
00108 _releaseReply ($in);
00109 }
00110 }
00111
00112 public Sct_SctApi.Scan getDefaultScan ()
00113 {
00114 org.omg.CORBA.portable.InputStream $in = null;
00115 try {
00116 org.omg.CORBA.portable.OutputStream $out = _request ("getDefaultScan", true);
00117 $in = _invoke ($out);
00118 Sct_SctApi.Scan $result = Sct_SctApi.ScanHelper.read ($in);
00119 return $result;
00120 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00121 $in = $ex.getInputStream ();
00122 String _id = $ex.getId ();
00123 throw new org.omg.CORBA.MARSHAL (_id);
00124 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00125 return getDefaultScan ( );
00126 } finally {
00127 _releaseReply ($in);
00128 }
00129 }
00130
00131
00132
00133 public Sct_SctApi.Trigger createTrigger ()
00134 {
00135 org.omg.CORBA.portable.InputStream $in = null;
00136 try {
00137 org.omg.CORBA.portable.OutputStream $out = _request ("createTrigger", true);
00138 $in = _invoke ($out);
00139 Sct_SctApi.Trigger $result = Sct_SctApi.TriggerHelper.read ($in);
00140 return $result;
00141 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00142 $in = $ex.getInputStream ();
00143 String _id = $ex.getId ();
00144 throw new org.omg.CORBA.MARSHAL (_id);
00145 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00146 return createTrigger ( );
00147 } finally {
00148 _releaseReply ($in);
00149 }
00150 }
00151
00152
00153
00154 public Sct_SctApi.Scan[] knownScans ()
00155 {
00156 org.omg.CORBA.portable.InputStream $in = null;
00157 try {
00158 org.omg.CORBA.portable.OutputStream $out = _request ("knownScans", true);
00159 $in = _invoke ($out);
00160 Sct_SctApi.Scan $result[] = Sct_SctApi.ScanListHelper.read ($in);
00161 return $result;
00162 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00163 $in = $ex.getInputStream ();
00164 String _id = $ex.getId ();
00165 throw new org.omg.CORBA.MARSHAL (_id);
00166 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00167 return knownScans ( );
00168 } finally {
00169 _releaseReply ($in);
00170 }
00171 }
00172
00173
00174 private static String[] __ids = {
00175 "IDL:Sct_SctApi/JustTopLevel:1.0",
00176 "IDL:Sct_SctApi/CrateAccessTopLevel:1.0",
00177 "IDL:Sct_SctApi/DebugOptionsJustTop:1.0",
00178 "IDL:Sct_SctApi/ScanMethods:1.0"};
00179
00180 public String[] _ids ()
00181 {
00182 return (String[])__ids.clone ();
00183 }
00184
00185 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00186 {
00187 String str = s.readUTF ();
00188 String[] args = null;
00189 java.util.Properties props = null;
00190 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00191 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00192 _set_delegate (delegate);
00193 }
00194
00195 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00196 {
00197 String[] args = null;
00198 java.util.Properties props = null;
00199 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00200 s.writeUTF (str);
00201 }
00202 }