|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omg.PortableServer.Servant edu.stanford.slac.aida.dp.dpModel.DpModelIPOA edu.stanford.slac.aida.dp.dpModel.DpModelI_impl
public class DpModelI_impl
This class defines the (new) AIDA Model Data Provider CORBA server implementation, which gets online model data, computed by XAL, out of the Relational Database. DpModelI_impl implements the AIDA Data Provider "DpModelI" CORBA interface, by extending DpModelIPOA.
Aida Parameters: The get methods of this implementation take the following Ai da parameters (given as name/value pairs).
B If given the user wants the rMat from element A (the target) to that given in B parameter value. If A is downstream of B, then the inverse matrix of A->B is returned.
TYPE Can be "database" (equivalent to "computed"), or "design".
POS From where to get the model of sliced elements (QUADS, sliced BENDS etc). May be "beg", "beginning", "mid", "middle", or "end". Default is "end".
POSB If B param is given and is a sliced element, then POSB may be used to indicate to which position, begining, middle, or end, in B, the Rmat of A to B should be computed.
MODE The Modelling MODE for which the data is wanted. Devices can be modelled in more than one modelling mode. A mode identifies a beamline run under particular initial conditions and energy scaling. MODEs are identied by an integer in model//modes.
DGRP Deprecated
KNOWN BUG: Actually the bug is in the DB, not in code. A.t.t.o.w. (29th Sep 2008) the 1st section of a multi-section device like ACCL:IN2:400 has the model as it existed at the EXIT of that element, so ACCL:IN2:400//twiss POS=BEG does NOT get the model as it is entering the cavity!
Field Summary | |
---|---|
protected static boolean |
debug
|
Method Summary | |
---|---|
org.omg.PortableServer.POA |
_default_POA()
|
boolean |
get_boolean(java.lang.String target,
java.lang.String[] args)
|
boolean[] |
get_booleana(java.lang.String target,
java.lang.String[] args)
|
byte |
get_byte(java.lang.String target,
java.lang.String[] args)
|
byte[] |
get_bytea(java.lang.String target,
java.lang.String[] args)
|
char |
get_char(java.lang.String target,
java.lang.String[] args)
|
char[] |
get_chara(java.lang.String target,
java.lang.String[] args)
|
double |
get_double(java.lang.String target,
java.lang.String[] args)
|
double[] |
get_doublea(java.lang.String query,
java.lang.String[] args)
As get:Any, retrives the model parameters for a given element, subject to the AIDA parameters given, returning an array of doubles. |
float |
get_float(java.lang.String target,
java.lang.String[] args)
|
float[] |
get_floata(java.lang.String target,
java.lang.String[] args)
Retrives the model parameters for a given element, subject to the AIDA parameters given, and returning an array of floats. |
int |
get_long(java.lang.String target,
java.lang.String[] args)
|
int[] |
get_longa(java.lang.String target,
java.lang.String[] args)
|
short |
get_short(java.lang.String target,
java.lang.String[] args)
|
short[] |
get_shorta(java.lang.String target,
java.lang.String[] args)
|
java.lang.String |
get_string(java.lang.String target,
java.lang.String[] args)
|
java.lang.String[] |
get_stringa(java.lang.String target,
java.lang.String[] args)
|
char |
get_wchar(java.lang.String target,
java.lang.String[] args)
|
char[] |
get_wchara(java.lang.String target,
java.lang.String[] args)
|
java.lang.String |
get_wstring(java.lang.String target,
java.lang.String[] args)
|
org.omg.CORBA.Any |
get(java.lang.String query,
java.lang.String[] args)
Retrives the model parameters for a given element, subject to the AIDA parameters given, and returning an Any. |
void |
init()
|
void |
set(java.lang.String query,
java.lang.String[] args,
org.omg.CORBA.AnyHolder value)
|
void |
shutdown()
|
void |
startMonitor(java.lang.String name)
|
int |
status()
|
void |
stopMonitor(java.lang.String name)
|
Methods inherited from class edu.stanford.slac.aida.dp.dpModel.DpModelIPOA |
---|
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
---|
_get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final boolean debug
Method Detail |
---|
public org.omg.PortableServer.POA _default_POA()
_default_POA
in class org.omg.PortableServer.Servant
public void init() throws edu.stanford.slac.except.ServerInitialisationException
edu.stanford.slac.except.ServerInitialisationException
public org.omg.CORBA.Any get(java.lang.String query, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
modelledElement/modelledParameter
- The name of a modelled
element and the model parameter required for the element,
given as an AIDA name.args
- Array of name/value string pairs, as described in class
comments.
edu.stanford.slac.except.UnableToGetDataException
public double[] get_doublea(java.lang.String query, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
query
- The name of a modelled element and the model parameter
required for the element, given as an AIDA name.args
- Array of name/value string pairs, as described in class
comments.
edu.stanford.slac.except.UnableToGetDataException
public float[] get_floata(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
modelledElement/modelledParameter
- The name of a modelled
element and the model parameter required for the element,
given as an AIDA name.args
- Array of name/value string pairs, as described in class
comments.
edu.stanford.slac.except.UnableToGetDataException
public void set(java.lang.String query, java.lang.String[] args, org.omg.CORBA.AnyHolder value) throws edu.stanford.slac.except.UnableToSetDataException
edu.stanford.slac.except.UnableToSetDataException
public void startMonitor(java.lang.String name) throws edu.stanford.slac.except.MonitorStartupException
edu.stanford.slac.except.MonitorStartupException
public void stopMonitor(java.lang.String name) throws edu.stanford.slac.except.MonitorShutdownException
edu.stanford.slac.except.MonitorShutdownException
public int status()
public void shutdown()
public byte get_byte(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public short get_short(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public int get_long(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public boolean get_boolean(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public double get_double(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public float get_float(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public java.lang.String get_string(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public char get_char(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public java.lang.String get_wstring(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public char get_wchar(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public byte[] get_bytea(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public short[] get_shorta(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public int[] get_longa(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public boolean[] get_booleana(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public java.lang.String[] get_stringa(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public char[] get_chara(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
public char[] get_wchara(java.lang.String target, java.lang.String[] args) throws edu.stanford.slac.except.UnableToGetDataException
edu.stanford.slac.except.UnableToGetDataException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |