# PROTECTED REGION ID(EEHGMaster.additionnal_import) ENABLED START #
# PROTECTED REGION END # // EEHGMaster.additionnal_import
__all__=["EEHGMaster","main"]
classEEHGMaster(Device):
"""
Tango device server for EEHG operation for FERMI
**Properties:**
- Device Property
SuperGapDevice
- SuperGap tango device name
- Type:'DevString'
"""
# PROTECTED REGION ID(EEHGMaster.class_variable) ENABLED START #
# PROTECTED REGION END # // EEHGMaster.class_variable
# -----------------
# Device Properties
# -----------------
SuperGapDevice=device_property(
dtype='DevString',
)
# ----------
# Attributes
# ----------
fel_mode=attribute(
dtype='DevString',
access=AttrWriteType.READ_WRITE,
memorized=True,
hw_memorized=True,
doc="FEL operation mode:\nEEHG\nHGHG1\nHGHG1*\nHGHG2\n\nSpecify how the FEL need to be operated. EEHG is clear. \nHGHG1, means that one use seed1 on mod1 to to standard HGHG. \nHGHG1*, means that one use seed1 on mod2 to to standard HGHG. \nHGHG2 means that seed2 is used on mod2 for standard HGHG. \nThis setting define the method to be used for calculating the required configuration\n",
)
# ---------------
# General methods
# ---------------
definit_device(self):
"""Initialises the attributes and properties of the EEHGMaster."""
Device.init_device(self)
# PROTECTED REGION ID(EEHGMaster.init_device) ENABLED START #
self._fel_mode=''
# PROTECTED REGION END # // EEHGMaster.init_device
defalways_executed_hook(self):
"""Method always executed before any TANGO command is executed."""
# PROTECTED REGION ID(EEHGMaster.always_executed_hook) ENABLED START #
# PROTECTED REGION END # // EEHGMaster.always_executed_hook
defdelete_device(self):
"""Hook to delete resources allocated in init_device.
This method allows for any memory or other resources allocated in the
init_device method to be released. This method is called by the device
destructor and by the device Init command.
"""
# PROTECTED REGION ID(EEHGMaster.delete_device) ENABLED START #
# PROTECTED REGION END # // EEHGMaster.delete_device
# ------------------
# Attributes methods
# ------------------
defread_fel_mode(self):
# PROTECTED REGION ID(EEHGMaster.fel_mode_read) ENABLED START #
"""Return the fel_mode attribute."""
returnself._fel_mode
# PROTECTED REGION END # // EEHGMaster.fel_mode_read
defwrite_fel_mode(self,value):
# PROTECTED REGION ID(EEHGMaster.fel_mode_write) ENABLED START #
"""Set the fel_mode attribute."""
pass
# PROTECTED REGION END # // EEHGMaster.fel_mode_write
# --------
# Commands
# --------
@command(
)
@DebugIt()
defCalculate(self):
# PROTECTED REGION ID(EEHGMaster.Calculate) ENABLED START #
"""
:return:None
"""
pass
# PROTECTED REGION END # // EEHGMaster.Calculate
defis_Calculate_allowed(self):
# PROTECTED REGION ID(EEHGMaster.is_Calculate_allowed) ENABLED START #
<descriptiondescription="Tango device server for EEHG operation for FERMI"title="EEHG Master"sourcePath="/home/giulio.gaio/src/gitlab/cs/ds/eehg-master/src"language="PythonHL"filestogenerate="XMI file,Code files,Protected Regions"license="GPL"copyright=""hasMandatoryProperty="false"hasConcreteProperty="true"hasAbstractCommand="false"hasAbstractAttribute="false">
<commandsname="State"description="This command gets the device state (stored in its device_state data member) and returns it to the caller."execMethod="dev_state"displayLevel="OPERATOR"polledPeriod="0">
<commandsname="Status"description="This command gets the device status (stored in its device_status data member) and returns it to the caller."execMethod="dev_status"displayLevel="OPERATOR"polledPeriod="0">
<propertiesdescription="FEL operation mode:
EEHG
HGHG1
HGHG1*
HGHG2

Specify how the FEL need to be operated. EEHG is clear. 
HGHG1, means that one use seed1 on mod1 to to standard HGHG. 
HGHG1*, means that one use seed1 on mod2 to to standard HGHG. 
HGHG2 means that seed2 is used on mod2 for standard HGHG. 
This setting define the method to be used for calculating the required configuration
"label=""unit=""standardUnit=""displayUnit=""format=""maxValue=""minValue=""maxAlarm=""minAlarm=""maxWarning=""minWarning=""deltaTime=""deltaValue=""/>