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