Package gda.device.zebra.controller.impl
Class ZebraDummy
java.lang.Object
gda.factory.FindableBase
gda.device.zebra.controller.impl.ZebraDummy
public class ZebraDummy
extends FindableBase
implements Zebra, org.springframework.beans.factory.InitializingBean
-
Field Summary
Fields inherited from interface gda.device.zebra.controller.Zebra
CONFIG_LOAD_OK, PC_ARM_SOURCE_EXTERNAL, PC_ARM_SOURCE_SOFT, PC_DIR_NEGATIVE, PC_DIR_POSITIVE, PC_ENC_ENC1, PC_ENC_ENC2, PC_ENC_ENC3, PC_ENC_ENC4, PC_ENC_ENCSUM, PC_GATE_SOURCE_EXTERNAL, PC_GATE_SOURCE_POSITION, PC_GATE_SOURCE_TIME, PC_MODE_POSITION, PC_MODE_TIME, PC_PULSE_SOURCE_EXTERNAL, PC_PULSE_SOURCE_POSITION, PC_PULSE_SOURCE_TIME, PC_TIMEUNIT_10SEC, PC_TIMEUNIT_MS, PC_TIMEUNIT_SEC, PULSE_TIMEUNIT_10SEC, PULSE_TIMEUNIT_MS, PULSE_TIMEUNIT_SEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidapplyAndGateConfig(int gateNumber, LogicGateConfiguration config) Applies aLogicGateConfigurationto the specified AND gate.voidapplyOrGateConfig(int gateNumber, LogicGateConfiguration config) Applies aLogicGateConfigurationto the specified OR gate.voidvoidencCopyMotorPosToZebra(int posNum) doublegetDivDivisor(int divId) Get Divisor for the specified DIV blockReadOnlyPV<Double[]> Deprecated.ReadOnlyPV<Double[]> getEncPV(int encoder) intintReadOnlyPV<Double[]> getPcCapturePV(int capture) intgetPCDir()intgetPCEnc()intintdoubledoubledoubledoubledoubleintintbooleandoubledoubleintintdoubledoubledoubledoubledoubledoubleReadOnlyPV<Double[]> intgda.observable.Observable<SoftInputChangedEvent> Returns anObservablethat can be used to receive events about changes to soft inputs.booleangetTtlOutputState(int output) Returns the state of the specified TTL output.booleanbooleanisSoftInputSet(int inputNumber) Returns whether a soft input is set.booleanvoidpcArm()voidvoidpcDisarm()voidreset()Reset the zebra box and all internal counters.voidsetDivDivisor(int divId, double divisor) Set Divisor on the DIV blockvoidsetOutTTL(int outId, int val) voidsetPCArmInput(int input) voidsetPCArmSource(int ordinal) voidsetPCCaptureBitField(int val) voidsetPCDir(int i) voidsetPCEnc(int val) voidsetPCGateInput(int input) voidsetPCGateNumberOfGates(int numberOfGates) voidsetPCGateSource(int ordinal) voidsetPCGateStart(double start) voidsetPCGateStep(double step) voidsetPCGateWidth(double width) voidsetPCNumberOfPointsCaptured(int val) voidsetPCPulseDelay(double delay) voidsetPCPulseInput(int input) voidsetPCPulseMax(int numberTriggers) voidsetPCPulseSource(int ordinal) voidsetPCPulseStart(double val) voidsetPCPulseStep(double step) voidsetPCPulseWidth(double width) voidsetPCTimeUnit(int i) voidsetPulseDelay(int pulseId, double delay) voidsetPulseInput(int pulseId, int input) voidsetPulseTimeUnit(int pulseId, int timeunit) voidsetPulseWidth(int pulseId, double width) voidsetPvFactory(CachedLazyPVFactory pvFactory) voidsetSoftInput(int inputNumber, boolean set) Sets a soft input.voidsetUseAvalField(boolean useAvalField) voidsetValue(String beforeUnderscore, int beforeUnderscoreId, String afterUnderscore, int afterUnderscoreId, int val) voidsetZebraConfigPath(String zebraConfigPath) voidsetZebraPrefix(String zebraPrefix) voidwaitUntilArmed(int timeout) voidwaitUntilNotArmed(int timeout) Methods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setName
-
Constructor Details
-
ZebraDummy
public ZebraDummy()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getPCPulseDelay
- Specified by:
getPCPulseDelayin interfaceZebra- Throws:
Exception
-
getPCPulseDelayRBV
- Specified by:
getPCPulseDelayRBVin interfaceZebra- Throws:
Exception
-
setPCPulseDelay
- Specified by:
setPCPulseDelayin interfaceZebra- Throws:
Exception
-
getPCPulseWidth
- Specified by:
getPCPulseWidthin interfaceZebra- Throws:
Exception
-
getPCPulseWidthRBV
- Specified by:
getPCPulseWidthRBVin interfaceZebra- Throws:
Exception
-
setPCPulseWidth
- Specified by:
setPCPulseWidthin interfaceZebra- Throws:
Exception
-
getPCPulseStep
- Specified by:
getPCPulseStepin interfaceZebra- Throws:
Exception
-
getPCPulseStepRBV
- Specified by:
getPCPulseStepRBVin interfaceZebra- Throws:
Exception
-
setPCPulseStep
- Specified by:
setPCPulseStepin interfaceZebra- Throws:
Exception
-
setPCPulseSource
- Specified by:
setPCPulseSourcein interfaceZebra- Parameters:
ordinal- should be PC_PULSE_SOURCE_POSITION, PC_PULSE_SOURCE_TIME or PC_PULSE_SOURCE_EXTERNAL- Throws:
Exception
-
getPCPulseSource
- Specified by:
getPCPulseSourcein interfaceZebra- Throws:
Exception
-
getPCGateSource
- Specified by:
getPCGateSourcein interfaceZebra- Throws:
Exception
-
setPCGateSource
- Specified by:
setPCGateSourcein interfaceZebra- Parameters:
ordinal- should be PC_GATE_SOURCE_POSITION, PC_GATE_SOURCE_TIME or PC_GATE_SOURCE_EXTERNAL- Throws:
Exception
-
setPCGateInput
- Specified by:
setPCGateInputin interfaceZebra- Throws:
Exception
-
getPCGateStart
- Specified by:
getPCGateStartin interfaceZebra- Throws:
Exception
-
getPCGateStartRBV
- Specified by:
getPCGateStartRBVin interfaceZebra- Throws:
Exception
-
getPCGateWidth
- Specified by:
getPCGateWidthin interfaceZebra- Throws:
Exception
-
getPCGateNumberOfGates
- Specified by:
getPCGateNumberOfGatesin interfaceZebra- Throws:
Exception
-
getPCGateStep
- Specified by:
getPCGateStepin interfaceZebra- Throws:
Exception
-
setPCGateStart
- Specified by:
setPCGateStartin interfaceZebra- Throws:
Exception
-
setPCGateWidth
- Specified by:
setPCGateWidthin interfaceZebra- Throws:
Exception
-
getPCGateWidthRBV
- Specified by:
getPCGateWidthRBVin interfaceZebra- Throws:
Exception
-
setPCGateNumberOfGates
- Specified by:
setPCGateNumberOfGatesin interfaceZebra- Throws:
Exception
-
setPCGateStep
- Specified by:
setPCGateStepin interfaceZebra- Throws:
Exception
-
getPCArmSource
- Specified by:
getPCArmSourcein interfaceZebra- Throws:
Exception
-
setPCArmSource
- Specified by:
setPCArmSourcein interfaceZebra- Parameters:
ordinal- should be PC_ARM_SOURCE_SOFT or PC_ARM_SOURCE_EXTERNAL- Throws:
Exception
-
isPCArmed
-
pcArm
-
waitUntilArmed
public void waitUntilArmed(int timeout) - Specified by:
waitUntilArmedin interfaceZebra
-
pcDisarm
-
pcArmNoWait
- Specified by:
pcArmNoWaitin interfaceZebra- Throws:
Exception
-
waitUntilNotArmed
- Specified by:
waitUntilNotArmedin interfaceZebra- Throws:
Exception
-
setPCCaptureBitField
- Specified by:
setPCCaptureBitFieldin interfaceZebra- Throws:
Exception
-
getPCCaptureBitField
- Specified by:
getPCCaptureBitFieldin interfaceZebra- Throws:
Exception
-
setPCEnc
-
getPCEnc
-
getPcCapturePV
- Specified by:
getPcCapturePVin interfaceZebra
-
getEnc1AvalPV
Deprecated.- Specified by:
getEnc1AvalPVin interfaceZebra
-
getEncPV
-
getNumberOfPointsCapturedPV
- Specified by:
getNumberOfPointsCapturedPVin interfaceZebra
-
setPCNumberOfPointsCaptured
- Specified by:
setPCNumberOfPointsCapturedin interfaceZebra- Throws:
Exception
-
getPCNumberOfPointsCaptured
- Specified by:
getPCNumberOfPointsCapturedin interfaceZebra- Throws:
Exception
-
getPCNumberOfPointsDownloaded
- Specified by:
getPCNumberOfPointsDownloadedin interfaceZebra- Throws:
Exception
-
getPCPointDownloadInProgress
- Specified by:
getPCPointDownloadInProgressin interfaceZebra- Throws:
Exception
-
setPCTimeUnit
- Specified by:
setPCTimeUnitin interfaceZebra- Parameters:
i- should be PC_TIMEUNIT_SEC or PC_TIMEUNIT_MS- Throws:
Exception
-
getPCTimeUnit
- Specified by:
getPCTimeUnitin interfaceZebra- Throws:
Exception
-
setPCPulseMax
- Specified by:
setPCPulseMaxin interfaceZebra- Throws:
Exception
-
getPCPulseMax
- Specified by:
getPCPulseMaxin interfaceZebra- Throws:
Exception
-
setPCPulseInput
- Specified by:
setPCPulseInputin interfaceZebra- Throws:
Exception
-
getNumberOfPointsDownloadedPV
- Specified by:
getNumberOfPointsDownloadedPVin interfaceZebra
-
getPCTimePV
- Specified by:
getPCTimePVin interfaceZebra
-
setPCDir
-
getPCDir
-
setPulseInput
- Specified by:
setPulseInputin interfaceZebra- Throws:
Exception
-
setPulseDelay
- Specified by:
setPulseDelayin interfaceZebra- Throws:
Exception
-
setPulseWidth
- Specified by:
setPulseWidthin interfaceZebra- Throws:
Exception
-
setPulseTimeUnit
- Specified by:
setPulseTimeUnitin interfaceZebra- Throws:
Exception
-
setOutTTL
-
getTtlOutputState
Description copied from interface:ZebraReturns the state of the specified TTL output.- Specified by:
getTtlOutputStatein interfaceZebra- Throws:
IOException
-
setPCArmInput
- Specified by:
setPCArmInputin interfaceZebra- Throws:
Exception
-
isSoftInputSet
Description copied from interface:ZebraReturns whether a soft input is set.- Specified by:
isSoftInputSetin interfaceZebra- Throws:
IOException
-
setSoftInput
Description copied from interface:ZebraSets a soft input.- Specified by:
setSoftInputin interfaceZebra- Throws:
IOException
-
getSoftInputObservable
Description copied from interface:ZebraReturns anObservablethat can be used to receive events about changes to soft inputs.- Specified by:
getSoftInputObservablein interfaceZebra
-
reset
Description copied from interface:ZebraReset the zebra box and all internal counters.- Specified by:
resetin interfaceZebra- Throws:
IOException
-
setPCPulseStart
- Specified by:
setPCPulseStartin interfaceZebra- Throws:
Exception
-
getPCPulseStart
- Specified by:
getPCPulseStartin interfaceZebra- Throws:
Exception
-
getPCPulseStartRBV
- Specified by:
getPCPulseStartRBVin interfaceZebra- Throws:
Exception
-
setUseAvalField
public void setUseAvalField(boolean useAvalField) - Specified by:
setUseAvalFieldin interfaceZebra
-
isUseAvalField
public boolean isUseAvalField()- Specified by:
isUseAvalFieldin interfaceZebra
-
setPvFactory
- Specified by:
setPvFactoryin interfaceZebra
-
getZebraPrefix
- Specified by:
getZebraPrefixin interfaceZebra
-
setZebraPrefix
- Specified by:
setZebraPrefixin interfaceZebra
-
setValue
-
encCopyMotorPosToZebra
- Specified by:
encCopyMotorPosToZebrain interfaceZebra- Throws:
Exception
-
applyAndGateConfig
Description copied from interface:ZebraApplies aLogicGateConfigurationto the specified AND gate.- Specified by:
applyAndGateConfigin interfaceZebra- Throws:
IOException
-
applyOrGateConfig
Description copied from interface:ZebraApplies aLogicGateConfigurationto the specified OR gate.- Specified by:
applyOrGateConfigin interfaceZebra- Throws:
IOException
-
setDivDivisor
Description copied from interface:ZebraSet Divisor on the DIV block- Specified by:
setDivDivisorin interfaceZebra- Parameters:
divId- id to identify the DIV blockdivisor- numerical value of divisor- Throws:
Exception
-
getDivDivisor
Description copied from interface:ZebraGet Divisor for the specified DIV block- Specified by:
getDivDivisorin interfaceZebra- Parameters:
divId- id to identify the DIV block- Returns:
- numerical value of divisor (or null if not set)
- Throws:
Exception
-
applyZebraConfig
- Specified by:
applyZebraConfigin interfaceZebra- Throws:
IOException
-
getZebraConfigPath
- Specified by:
getZebraConfigPathin interfaceZebra- Throws:
IOException
-
setZebraConfigPath
- Specified by:
setZebraConfigPathin interfaceZebra- Throws:
IOException
-
getZebraConfigStatus
- Specified by:
getZebraConfigStatusin interfaceZebra- Throws:
IOException
-