Package org.scictrl.mp.orbitcorrect
Class DBElementDescriptor
java.lang.Object
org.scictrl.mp.orbitcorrect.DBElementDescriptor
DBElementDescriptor class.
- Author:
- igor@scictrl.com
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
ConstantEL_APERTURE=4
static final int
ConstantEL_BPM=3
static final int
ConstantEL_CAVITY=5
static final String[]
ConstantEL_CLASSES
static final int
ConstantEL_DBINFO=0
static final int
ConstantEL_HOR_CORRECTOR=8
static final int
ConstantEL_KICKER=7
static final int
ConstantEL_MARKER=2
static final int
ConstantEL_POWER_SUPPLY=1
static final int
ConstantEL_QUADRUPOLE=12
static final int
ConstantEL_RBENDING=11
static final int
ConstantEL_RF_GENERATOR=14
static final int
ConstantEL_SBENDING=10
static final int
ConstantEL_SEPTUM=6
static final int
ConstantEL_SEXTUPOLE=13
static final int
ConstantEL_VER_CORRECTOR=9
static final DBElementDescriptor
ConstantELDES_APERTURE
static final DBElementDescriptor
ConstantELDES_BPM
static final DBElementDescriptor
ConstantELDES_CAVITY
static final DBElementDescriptor
ConstantELDES_DBINFO
static final DBElementDescriptor
ConstantELDES_HOR_CORRECTOR
static final DBElementDescriptor
ConstantELDES_KICKER
static final DBElementDescriptor
ConstantELDES_MARKER
static final DBElementDescriptor
ConstantELDES_POWER_SUPPLY
static final DBElementDescriptor
ConstantELDES_QUADRUPOLE
static final DBElementDescriptor
ConstantELDES_RBENDING
static final DBElementDescriptor
ConstantELDES_RF_GENERATOR
static final DBElementDescriptor
ConstantELDES_SBENDING
static final DBElementDescriptor
ConstantELDES_SEPTUM
static final DBElementDescriptor
ConstantELDES_SEXTUPOLE
static final DBElementDescriptor
ConstantELDES_VER_CORRECTOR
static final String[]
ConstantELEMENT_CLASSES
static final String
ConstantELEMENT_TAG="element"
static final String[]
ConstantELEMENTS_CLASS_TAGS
static final Object[][]
ConstantPARAMETERS
static final Class<?>[][]
ConstantPARAMETERS_CLASSES
static final String[][]
ConstantPARAMETERS_TAGS
static final Class<?>[]
ConstantSINGLE_PARAMETER_CLASS
static final String
ConstantTEMPLATE_TAG="template"
-
Method Summary
Modifier and TypeMethodDescriptionObject[]
This method returns default values for descripted element.static DBElementDescriptor
This method returnsDBElementDescriptor
for element, whose tag is specified with parameter.static DBElementDescriptor
fromInt
(int code) This method returnsDBElementDescriptor
for element, whose code is specified with parameter.This method return class name of descripted element.This method return class name of descripted element, with full classpath.This method return class tag of descripted element.getParameterTag
(int par) This method returns specified parameters tag of descripted element.Class<?>[]
parametersClasses.int
This method return number of descriptor tags of descripted element.String[]
This method returns array of tags of descripted element.int
value()
This method returns code of descripted element.
-
Field Details
-
EL_DBINFO
public static final int EL_DBINFOConstantEL_DBINFO=0
- See Also:
-
EL_POWER_SUPPLY
public static final int EL_POWER_SUPPLYConstantEL_POWER_SUPPLY=1
- See Also:
-
EL_MARKER
public static final int EL_MARKERConstantEL_MARKER=2
- See Also:
-
EL_BPM
public static final int EL_BPMConstantEL_BPM=3
- See Also:
-
EL_APERTURE
public static final int EL_APERTUREConstantEL_APERTURE=4
- See Also:
-
EL_CAVITY
public static final int EL_CAVITYConstantEL_CAVITY=5
- See Also:
-
EL_SEPTUM
public static final int EL_SEPTUMConstantEL_SEPTUM=6
- See Also:
-
EL_KICKER
public static final int EL_KICKERConstantEL_KICKER=7
- See Also:
-
EL_HOR_CORRECTOR
public static final int EL_HOR_CORRECTORConstantEL_HOR_CORRECTOR=8
- See Also:
-
EL_VER_CORRECTOR
public static final int EL_VER_CORRECTORConstantEL_VER_CORRECTOR=9
- See Also:
-
EL_SBENDING
public static final int EL_SBENDINGConstantEL_SBENDING=10
- See Also:
-
EL_RBENDING
public static final int EL_RBENDINGConstantEL_RBENDING=11
- See Also:
-
EL_QUADRUPOLE
public static final int EL_QUADRUPOLEConstantEL_QUADRUPOLE=12
- See Also:
-
EL_SEXTUPOLE
public static final int EL_SEXTUPOLEConstantEL_SEXTUPOLE=13
- See Also:
-
EL_RF_GENERATOR
public static final int EL_RF_GENERATORConstantEL_RF_GENERATOR=14
- See Also:
-
ELDES_DBINFO
ConstantELDES_DBINFO
-
ELDES_POWER_SUPPLY
ConstantELDES_POWER_SUPPLY
-
ELDES_MARKER
ConstantELDES_MARKER
-
ELDES_BPM
ConstantELDES_BPM
-
ELDES_APERTURE
ConstantELDES_APERTURE
-
ELDES_CAVITY
ConstantELDES_CAVITY
-
ELDES_SEPTUM
ConstantELDES_SEPTUM
-
ELDES_KICKER
ConstantELDES_KICKER
-
ELDES_HOR_CORRECTOR
ConstantELDES_HOR_CORRECTOR
-
ELDES_VER_CORRECTOR
ConstantELDES_VER_CORRECTOR
-
ELDES_SBENDING
ConstantELDES_SBENDING
-
ELDES_RBENDING
ConstantELDES_RBENDING
-
ELDES_QUADRUPOLE
ConstantELDES_QUADRUPOLE
-
ELDES_SEXTUPOLE
ConstantELDES_SEXTUPOLE
-
ELDES_RF_GENERATOR
ConstantELDES_RF_GENERATOR
-
ELEMENT_TAG
ConstantELEMENT_TAG="element"
- See Also:
-
TEMPLATE_TAG
ConstantTEMPLATE_TAG="template"
- See Also:
-
PARAMETERS_TAGS
ConstantPARAMETERS_TAGS
-
ELEMENTS_CLASS_TAGS
ConstantELEMENTS_CLASS_TAGS
-
PARAMETERS
ConstantPARAMETERS
-
SINGLE_PARAMETER_CLASS
ConstantSINGLE_PARAMETER_CLASS
-
PARAMETERS_CLASSES
ConstantPARAMETERS_CLASSES
-
ELEMENT_CLASSES
ConstantELEMENT_CLASSES
-
EL_CLASSES
ConstantEL_CLASSES
-
-
Method Details
-
defaultParameters
This method returns default values for descripted element.- Returns:
- java.lang.Object[]
-
fromElementClassTag
This method returnsDBElementDescriptor
for element, whose tag is specified with parameter. It checks all element from ELEMENT_CLASS_TAGS and if any of them has the same tag as specified with parameter, it is returned.- Parameters:
tag
- aString
object- Returns:
- DBDescriptor
- Throws:
IllegalArgumentException
- if any.- See Also:
-
fromInt
This method returnsDBElementDescriptor
for element, whose code is specified with parameter.- Parameters:
code
- int- Returns:
- DBDescriptor
- Throws:
IllegalArgumentException
- if any.- See Also:
-
getElClass
This method return class name of descripted element.- Returns:
- java.lang.String
-
getElementClass
This method return class name of descripted element, with full classpath.- Returns:
- java.lang.String
-
getElementClassTag
This method return class tag of descripted element.- Returns:
- java.lang.String
-
getParameterTag
This method returns specified parameters tag of descripted element.- Parameters:
par
- int specification, which tag (name, energy, virtual, ...)- Returns:
- java.lang.String tag
- Throws:
IllegalArgumentException
- if any.- See Also:
-
parametersClasses
parametersClasses.
- Returns:
- java.lang.String
-
parametersCount
public int parametersCount()This method return number of descriptor tags of descripted element.- Returns:
- int
-
parametersTags
This method returns array of tags of descripted element.- Returns:
- java.lang.String tag
- See Also:
-
value
public int value()This method returns code of descripted element. Code is provided by constructor and with this code is determinated element, because each element has it unique code, which can be seen at fields, starting with EL_ (EL_KICKER, EL_MARKER,..., except EL_CLASSES).- Returns:
- int
-