Package org.scictrl.mp.orbitcorrect
Class DBElementDescriptor
java.lang.Object
org.scictrl.mp.orbitcorrect.DBElementDescriptor
DBElementDescriptor class.
- Author:
- igor@scictrl.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstantEL_APERTURE=4static final intConstantEL_BPM=3static final intConstantEL_CAVITY=5static final String[]ConstantEL_CLASSESstatic final intConstantEL_DBINFO=0static final intConstantEL_HOR_CORRECTOR=8static final intConstantEL_KICKER=7static final intConstantEL_MARKER=2static final intConstantEL_POWER_SUPPLY=1static final intConstantEL_QUADRUPOLE=12static final intConstantEL_RBENDING=11static final intConstantEL_RF_GENERATOR=14static final intConstantEL_SBENDING=10static final intConstantEL_SEPTUM=6static final intConstantEL_SEXTUPOLE=13static final intConstantEL_VER_CORRECTOR=9static final DBElementDescriptorConstantELDES_APERTUREstatic final DBElementDescriptorConstantELDES_BPMstatic final DBElementDescriptorConstantELDES_CAVITYstatic final DBElementDescriptorConstantELDES_DBINFOstatic final DBElementDescriptorConstantELDES_HOR_CORRECTORstatic final DBElementDescriptorConstantELDES_KICKERstatic final DBElementDescriptorConstantELDES_MARKERstatic final DBElementDescriptorConstantELDES_POWER_SUPPLYstatic final DBElementDescriptorConstantELDES_QUADRUPOLEstatic final DBElementDescriptorConstantELDES_RBENDINGstatic final DBElementDescriptorConstantELDES_RF_GENERATORstatic final DBElementDescriptorConstantELDES_SBENDINGstatic final DBElementDescriptorConstantELDES_SEPTUMstatic final DBElementDescriptorConstantELDES_SEXTUPOLEstatic final DBElementDescriptorConstantELDES_VER_CORRECTORstatic final String[]ConstantELEMENT_CLASSESstatic final StringConstantELEMENT_TAG="element"static final String[]ConstantELEMENTS_CLASS_TAGSstatic final Object[][]ConstantPARAMETERSstatic final Class<?>[][]ConstantPARAMETERS_CLASSESstatic final String[][]ConstantPARAMETERS_TAGSstatic final Class<?>[]ConstantSINGLE_PARAMETER_CLASSstatic final StringConstantTEMPLATE_TAG="template" -
Method Summary
Modifier and TypeMethodDescriptionObject[]This method returns default values for descripted element.static DBElementDescriptorThis method returnsDBElementDescriptorfor element, whose tag is specified with parameter.static DBElementDescriptorfromInt(int code) This method returnsDBElementDescriptorfor 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.intThis method return number of descriptor tags of descripted element.String[]This method returns array of tags of descripted element.intvalue()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 returnsDBElementDescriptorfor 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- aStringobject- Returns:
- DBDescriptor
- Throws:
IllegalArgumentException- if any.- See Also:
-
fromInt
This method returnsDBElementDescriptorfor 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
-