Class AbstractOCAppServer
- All Implemented Interfaces:
IDataBushServer
- Direct Known Subclasses:
FastModeOCServer
,GenericOCAppServer
This is top level application server abstract class, loads configuration which binds published PV names with underlying functionality, which is same for all OrbitCorrections application servers.
It has own application name and associated configuration, which is distinct from MachinePhysics engine (Databush).
- Author:
- igor@scictrl.com
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantCMD_ABORT="Cmd:Abort"
static final String
ConstantCMD_BPMS_H_SELECT_ALL="Cmd:BPMsH:SelectAll"
static final String
ConstantCMD_BPMS_H_SELECT_NONE="Cmd:BPMsH:SelectNone"
static final String
ConstantCMD_BPMS_V_SELECT_ALL="Cmd:BPMsV:SelectAll"
static final String
ConstantCMD_BPMS_V_SELECT_NONE="Cmd:BPMsV:SelectNone"
static final String
ConstantCMD_CALC_CORR="Cmd:CalcCorr"
static final String
ConstantCMD_CORR_H_SELECT_ALL="Cmd:CorrH:SelectAll"
static final String
ConstantCMD_CORR_H_SELECT_NONE="Cmd:CorrH:SelectNone"
static final String
ConstantCMD_CORR_V_SELECT_ALL="Cmd:CorrV:SelectAll"
static final String
ConstantCMD_CORR_V_SELECT_NONE="Cmd:CorrV:SelectNone"
static final String
ConstantCMD_DUMP_DATA="Cmd:DumpData"
static final String
ConstantCMD_START_CONTINUOUS="Cmd:StartContinuous"
static final String
ConstantCMD_START_SINGLE_LOOP="Cmd:StartSingleLoop"
static final String
ConstantCMD_START_SINGLE_STEP="Cmd:StartSingleStep"
static final String
ConstantCMD_STOP="Cmd:Stop"
static final String
ConstantCMD_TEST_ALL="Cmd:TestAll"
static final String
ConstantCMD_UNDO="Cmd:Undo"
static final String
ConstantCONTROL_BPMS_H_SEL="Control:BPMsH:Sel"
static final String
ConstantCONTROL_BPMS_NAMES="Control:BPMs:Names"
static final String
ConstantCONTROL_BPMS_POS="Control:BPMs:Pos"
static final String
ConstantCONTROL_BPMS_V_SEL="Control:BPMsV:Sel"
static final String
ConstantCONTROL_CORR_H_NAMES="Control:CorrH:Names"
static final String
ConstantCONTROL_CORR_H_POS="Control:CorrH:Pos"
static final String
ConstantCONTROL_CORR_H_SEL="Control:CorrH:Sel"
static final String
ConstantCONTROL_CORR_V_NAMES="Control:CorrV:Names"
static final String
ConstantCONTROL_CORR_V_POS="Control:CorrV:Pos"
static final String
ConstantCONTROL_CORR_V_SEL="Control:CorrV:Sel"
static final String
ConstantCONTROL_CORRECT_H="Control:CorrectH"
static final String
ConstantCONTROL_CORRECT_V="Control:CorrectV"
static final String
ConstantCONTROL_DEBUG_DATA_ENABLE="Control:DataEnabled"
static final String
ConstantCONTROL_MAX_STEP_H="Control:MaxStepH"
static final String
ConstantCONTROL_MAX_STEP_V="Control:MaxStepV"
static final String
ConstantCONTROL_MINIMAL_EIGENVALUE_H="Control:MinEigenvalH"
static final String
ConstantCONTROL_MINIMAL_EIGENVALUE_V="Control:MinEigenvalV"
static final String
ConstantCONTROL_MODEL_H="Control:ModelH"
static final String
ConstantCONTROL_MODEL_V="Control:ModelV"
static final String
ConstantCONTROL_OPTIC_NAMES="Control:Optic:Names"
static final String
ConstantCONTROL_OPTIC_POS="Control:Optic:Pos"
static final String
ConstantCONTROL_SCALE="Control:Scale"
static final String
ConstantDATA_ALPHA_H="Data:AlphaH"
static final String
ConstantDATA_ALPHA_V="Data:AlphaV"
static final String
ConstantDATA_BETA_H="Data:BetaH"
static final String
ConstantDATA_BETA_V="Data:BetaV"
static final String
ConstantDATA_DISPERSION="Data:Dispersion"
static final String
ConstantDATA_DISPERSION_DP="Data:DispersionDP"
static final String
ConstantDATA_EIGENVAL_H="Data:EigenvalH"
static final String
ConstantDATA_EIGENVAL_USED_H="Data:EigenvalUsedH"
static final String
ConstantDATA_EIGENVAL_USED_V="Data:EigenvalUsedV"
static final String
ConstantDATA_EIGENVAL_V="Data:EigenvalV"
static final String
ConstantDATA_ENERGY="Data:Energy"
static final String
ConstantDATA_QBAD="Data:QBAD"
static final String
ConstantDATA_TUNE_H="Data:TuneH"
static final String
ConstantDATA_TUNE_V="Data:TuneV"
static final String
ConstantINFO_ID="Info:ID"
static final String
ConstantPROPERTY_OC_AVAILABLE_CORR_MODELS_H="oc.availableCorrModelsH"
static final String
ConstantPROPERTY_OC_AVAILABLE_CORR_MODELS_V="oc.availableCorrModelsV"
static final String
ConstantPROPERTY_OC_BPM_NAMES_PV="oc.bpmNamesPV"
static final String
ConstantPROPERTY_OC_CONFIGURABLE_REMOTELY="oc.configurableRemotely"
static final String
ConstantPROPERTY_OC_CORRECTION_MODEL_H="oc.correctionModelH"
static final String
ConstantPROPERTY_OC_CORRECTION_MODEL_V="oc.correctionModelV"
static final String
ConstantPROPERTY_OC_CORRECTION_SCALE="oc.correctionScale"
static final String
ConstantPROPERTY_OC_PV_PREFIX="oc.pvPrefix"
static final String
ConstantPROPERTY_OC_REFERENCE_ORBIT_PV="oc.referenceOrbitPV"
static final String
ConstantPROPERTY_OC_SEMAPHORE_PV="oc.semaphorePV"
static final String
ConstantSTATUS_AUTO_MODE="Status:AutoMode"
static final String
ConstantSTATUS_CAN_UNDO="Status:CanUndo"
static final String
ConstantSTATUS_CONFIG_REMOTE="Status:ConfigRemote"
static final String
ConstantSTATUS_CORRECTING="Status:Correcting"
static final String
ConstantSTATUS_LOG="Status:Log"
static final String
ConstantSTATUS_MESSAGE="Status:Message"
static final String
ConstantSTATUS_STATE="Status:State"
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abortCorrection.protected abstract void
configure
(IOrbitCorrectionModel model) configure.abstract IAutomaticOCModel
getAutomaticOC.Getter for the fieldcontroller
.getDataBush.getDataModel.Getter for the fieldengine
.Getter for the fieldoperator
.protected org.scictrl.csshell.epics.server.Record
getRecord.getServer.void
initialize.protected void
Does initialization for specific correction model.boolean
isActive()
isActive.boolean
isConfigurableRemotely.protected void
notifyRecordChange.protected void
notifyRecordWrite.protected void
reportElementsUsage
(ElementList<?> selected) reportElementsUsage.void
shutdown()
shutdown.void
startCalcCorr.void
startContinunous.void
startSingleLoop.void
startSingleStep.void
stopCorrection.void
testAll()
testAll.void
startSingleStep.protected void
updateReference
(double[] d, Orientation ori) updateReference.
-
Field Details
-
CONTROL_MAX_STEP_H
ConstantCONTROL_MAX_STEP_H="Control:MaxStepH"
- See Also:
-
CONTROL_MAX_STEP_V
ConstantCONTROL_MAX_STEP_V="Control:MaxStepV"
- See Also:
-
CONTROL_SCALE
ConstantCONTROL_SCALE="Control:Scale"
- See Also:
-
CONTROL_CORRECT_H
ConstantCONTROL_CORRECT_H="Control:CorrectH"
- See Also:
-
CONTROL_CORRECT_V
ConstantCONTROL_CORRECT_V="Control:CorrectV"
- See Also:
-
CONTROL_MODEL_H
ConstantCONTROL_MODEL_H="Control:ModelH"
- See Also:
-
CONTROL_MODEL_V
ConstantCONTROL_MODEL_V="Control:ModelV"
- See Also:
-
CONTROL_BPMS_H_SEL
ConstantCONTROL_BPMS_H_SEL="Control:BPMsH:Sel"
- See Also:
-
CONTROL_BPMS_V_SEL
ConstantCONTROL_BPMS_V_SEL="Control:BPMsV:Sel"
- See Also:
-
CONTROL_BPMS_NAMES
ConstantCONTROL_BPMS_NAMES="Control:BPMs:Names"
- See Also:
-
CONTROL_BPMS_POS
ConstantCONTROL_BPMS_POS="Control:BPMs:Pos"
- See Also:
-
CONTROL_CORR_H_SEL
ConstantCONTROL_CORR_H_SEL="Control:CorrH:Sel"
- See Also:
-
CONTROL_CORR_V_SEL
ConstantCONTROL_CORR_V_SEL="Control:CorrV:Sel"
- See Also:
-
CONTROL_CORR_H_NAMES
ConstantCONTROL_CORR_H_NAMES="Control:CorrH:Names"
- See Also:
-
CONTROL_CORR_V_NAMES
ConstantCONTROL_CORR_V_NAMES="Control:CorrV:Names"
- See Also:
-
CONTROL_CORR_H_POS
ConstantCONTROL_CORR_H_POS="Control:CorrH:Pos"
- See Also:
-
CONTROL_CORR_V_POS
ConstantCONTROL_CORR_V_POS="Control:CorrV:Pos"
- See Also:
-
CONTROL_OPTIC_NAMES
ConstantCONTROL_OPTIC_NAMES="Control:Optic:Names"
- See Also:
-
CONTROL_OPTIC_POS
ConstantCONTROL_OPTIC_POS="Control:Optic:Pos"
- See Also:
-
CONTROL_DEBUG_DATA_ENABLE
ConstantCONTROL_DEBUG_DATA_ENABLE="Control:DataEnabled"
- See Also:
-
CONTROL_MINIMAL_EIGENVALUE_H
ConstantCONTROL_MINIMAL_EIGENVALUE_H="Control:MinEigenvalH"
- See Also:
-
CONTROL_MINIMAL_EIGENVALUE_V
ConstantCONTROL_MINIMAL_EIGENVALUE_V="Control:MinEigenvalV"
- See Also:
-
DATA_EIGENVAL_H
ConstantDATA_EIGENVAL_H="Data:EigenvalH"
- See Also:
-
DATA_EIGENVAL_V
ConstantDATA_EIGENVAL_V="Data:EigenvalV"
- See Also:
-
DATA_EIGENVAL_USED_H
ConstantDATA_EIGENVAL_USED_H="Data:EigenvalUsedH"
- See Also:
-
DATA_EIGENVAL_USED_V
ConstantDATA_EIGENVAL_USED_V="Data:EigenvalUsedV"
- See Also:
-
DATA_ENERGY
ConstantDATA_ENERGY="Data:Energy"
- See Also:
-
DATA_QBAD
ConstantDATA_QBAD="Data:QBAD"
- See Also:
-
DATA_TUNE_H
ConstantDATA_TUNE_H="Data:TuneH"
- See Also:
-
DATA_TUNE_V
ConstantDATA_TUNE_V="Data:TuneV"
- See Also:
-
DATA_BETA_H
ConstantDATA_BETA_H="Data:BetaH"
- See Also:
-
DATA_BETA_V
ConstantDATA_BETA_V="Data:BetaV"
- See Also:
-
DATA_ALPHA_H
ConstantDATA_ALPHA_H="Data:AlphaH"
- See Also:
-
DATA_ALPHA_V
ConstantDATA_ALPHA_V="Data:AlphaV"
- See Also:
-
DATA_DISPERSION
ConstantDATA_DISPERSION="Data:Dispersion"
- See Also:
-
DATA_DISPERSION_DP
ConstantDATA_DISPERSION_DP="Data:DispersionDP"
- See Also:
-
STATUS_CORRECTING
ConstantSTATUS_CORRECTING="Status:Correcting"
- See Also:
-
STATUS_AUTO_MODE
ConstantSTATUS_AUTO_MODE="Status:AutoMode"
- See Also:
-
STATUS_LOG
ConstantSTATUS_LOG="Status:Log"
- See Also:
-
STATUS_MESSAGE
ConstantSTATUS_MESSAGE="Status:Message"
- See Also:
-
STATUS_STATE
ConstantSTATUS_STATE="Status:State"
- See Also:
-
STATUS_CONFIG_REMOTE
ConstantSTATUS_CONFIG_REMOTE="Status:ConfigRemote"
- See Also:
-
STATUS_CAN_UNDO
ConstantSTATUS_CAN_UNDO="Status:CanUndo"
- See Also:
-
INFO_ID
ConstantINFO_ID="Info:ID"
- See Also:
-
CMD_START_SINGLE_STEP
ConstantCMD_START_SINGLE_STEP="Cmd:StartSingleStep"
- See Also:
-
CMD_START_SINGLE_LOOP
ConstantCMD_START_SINGLE_LOOP="Cmd:StartSingleLoop"
- See Also:
-
CMD_TEST_ALL
ConstantCMD_TEST_ALL="Cmd:TestAll"
- See Also:
-
CMD_START_CONTINUOUS
ConstantCMD_START_CONTINUOUS="Cmd:StartContinuous"
- See Also:
-
CMD_STOP
ConstantCMD_STOP="Cmd:Stop"
- See Also:
-
CMD_ABORT
ConstantCMD_ABORT="Cmd:Abort"
- See Also:
-
CMD_UNDO
ConstantCMD_UNDO="Cmd:Undo"
- See Also:
-
CMD_CALC_CORR
ConstantCMD_CALC_CORR="Cmd:CalcCorr"
- See Also:
-
CMD_BPMS_H_SELECT_ALL
ConstantCMD_BPMS_H_SELECT_ALL="Cmd:BPMsH:SelectAll"
- See Also:
-
CMD_BPMS_V_SELECT_ALL
ConstantCMD_BPMS_V_SELECT_ALL="Cmd:BPMsV:SelectAll"
- See Also:
-
CMD_CORR_H_SELECT_ALL
ConstantCMD_CORR_H_SELECT_ALL="Cmd:CorrH:SelectAll"
- See Also:
-
CMD_CORR_V_SELECT_ALL
ConstantCMD_CORR_V_SELECT_ALL="Cmd:CorrV:SelectAll"
- See Also:
-
CMD_BPMS_H_SELECT_NONE
ConstantCMD_BPMS_H_SELECT_NONE="Cmd:BPMsH:SelectNone"
- See Also:
-
CMD_BPMS_V_SELECT_NONE
ConstantCMD_BPMS_V_SELECT_NONE="Cmd:BPMsV:SelectNone"
- See Also:
-
CMD_CORR_H_SELECT_NONE
ConstantCMD_CORR_H_SELECT_NONE="Cmd:CorrH:SelectNone"
- See Also:
-
CMD_CORR_V_SELECT_NONE
ConstantCMD_CORR_V_SELECT_NONE="Cmd:CorrV:SelectNone"
- See Also:
-
CMD_DUMP_DATA
ConstantCMD_DUMP_DATA="Cmd:DumpData"
- See Also:
-
PROPERTY_OC_CORRECTION_SCALE
ConstantPROPERTY_OC_CORRECTION_SCALE="oc.correctionScale"
- See Also:
-
PROPERTY_OC_REFERENCE_ORBIT_PV
ConstantPROPERTY_OC_REFERENCE_ORBIT_PV="oc.referenceOrbitPV"
- See Also:
-
PROPERTY_OC_BPM_NAMES_PV
ConstantPROPERTY_OC_BPM_NAMES_PV="oc.bpmNamesPV"
- See Also:
-
PROPERTY_OC_CORRECTION_MODEL_H
ConstantPROPERTY_OC_CORRECTION_MODEL_H="oc.correctionModelH"
- See Also:
-
PROPERTY_OC_CORRECTION_MODEL_V
ConstantPROPERTY_OC_CORRECTION_MODEL_V="oc.correctionModelV"
- See Also:
-
PROPERTY_OC_AVAILABLE_CORR_MODELS_H
ConstantPROPERTY_OC_AVAILABLE_CORR_MODELS_H="oc.availableCorrModelsH"
- See Also:
-
PROPERTY_OC_AVAILABLE_CORR_MODELS_V
ConstantPROPERTY_OC_AVAILABLE_CORR_MODELS_V="oc.availableCorrModelsV"
- See Also:
-
PROPERTY_OC_PV_PREFIX
ConstantPROPERTY_OC_PV_PREFIX="oc.pvPrefix"
- See Also:
-
PROPERTY_OC_CONFIGURABLE_REMOTELY
ConstantPROPERTY_OC_CONFIGURABLE_REMOTELY="oc.configurableRemotely"
- See Also:
-
PROPERTY_OC_SEMAPHORE_PV
ConstantPROPERTY_OC_SEMAPHORE_PV="oc.semaphorePV"
- See Also:
-
-
Constructor Details
-
AbstractOCAppServer
Constructor for AbstractOCAppServer.
- Parameters:
name
- aString
object
-
-
Method Details
-
getAutomaticOC
getAutomaticOC.
- Returns:
- a
IAutomaticOCModel
object
-
getOperator
Getter for the field
operator
.- Returns:
- a
AutomaticOrbitCorrectionOperator
object
-
getController
Getter for the field
controller
.- Returns:
- a
OrbitCorrectionController
object
-
reportElementsUsage
reportElementsUsage.
- Parameters:
selected
- aElementList
object
-
getEngine
Getter for the field
engine
.- Returns:
- a
ApplicationEngine
object
-
getServer
getServer.
- Returns:
- a
DataBushServerLocal
object
-
getDataBush
getDataBush.
- Specified by:
getDataBush
in interfaceIDataBushServer
- Returns:
- a
DataBush
object
-
getDataModel
getDataModel.
- Specified by:
getDataModel
in interfaceIDataBushServer
- Returns:
- a
ServerDataModel
object
-
testAll
public void testAll()testAll.
-
startSingleLoop
public void startSingleLoop()startSingleLoop.
-
startSingleStep
public void startSingleStep()startSingleStep.
-
undoCorrection
public void undoCorrection()startSingleStep.
-
startContinunous
public void startContinunous()startContinunous.
-
startCalcCorr
public void startCalcCorr()startCalcCorr.
-
stopCorrection
public void stopCorrection()stopCorrection.
-
abortCorrection
public void abortCorrection()abortCorrection.
-
initialize
public void initialize()initialize.
initialize.
- Specified by:
initialize
in interfaceIDataBushServer
-
initializeFor
Does initialization for specific correction model.- Parameters:
m
- aIOrbitCorrectionModel
object
-
notifyRecordChange
notifyRecordChange.
- Parameters:
evt
- aPropertyChangeEvent
object
-
notifyRecordWrite
notifyRecordWrite.
- Parameters:
evt
- aPropertyChangeEvent
object
-
isActive
public boolean isActive()isActive.
- Returns:
- a boolean
-
shutdown
public void shutdown()shutdown.
shutdown.
- Specified by:
shutdown
in interfaceIDataBushServer
-
updateReference
updateReference.
- Parameters:
d
- an array ofinvalid reference
double
ori
- aOrientation
object
-
getRecord
getRecord.
- Parameters:
name
- aString
object- Returns:
- a
Record
object
-
configure
configure.
- Parameters:
model
- aIOrbitCorrectionModel
object
-
isConfigurableRemotely
public boolean isConfigurableRemotely()isConfigurableRemotely.
- Returns:
- a boolean
-