-tttlll_OBJECTS =
-
-# Configuration Database Files
-# ----------------------------
-CDB_SCHEMAS = AmcBase
-
-# IDL Files and flags
-IDL_FILES = AmcBase Amc
-TAO_IDLFLAGS =
-USER_IDL =
-# Jarfiles and their directories
-JARFILES= Amc_lib
-Amc_lib_DIRS= astri
-jjj_EXTRAS=
-# For expressing dependencies between jarfiles (parallel builds)
-jjj_JLIBS=
-# java sources in Jarfile on/off
-DEBUG = on
-# ACS XmlIdl generation on/off
-XML_IDL=
-# Java Component Helper Classes generation on/off
-COMPONENT_HELPERS=
-# Java Entity Classes generation on/off
-XSDBIND=
-# Schema Config files for the above
-XSDBIND_INCLUDE=
-# man pages to be done
-# --------------------
-MANSECTIONS =
-MAN1 =
-MAN3 =
-MAN5 =
-MAN7 =
-MAN8 =
-
-# local man pages
-# ---------------
-MANl =
-
-# ASCII file to be converted into Framemaker-MIF
-# --------------------
-ASCII_TO_MIF =
-
-# other files to be installed
-#----------------------------
-INSTALL_FILES =
-
-# list of all possible C-sources (used to create automatic dependencies)
-# ------------------------------
-CSOURCENAMES = \
- $(foreach exe, $(EXECUTABLES) $(EXECUTABLES_L), $($(exe)_OBJECTS)) \
- $(foreach rtos, $(RTAI_MODULES) , $($(rtos)_OBJECTS)) \
- $(foreach lib, $(LIBRARIES) $(LIBRARIES_L), $($(lib)_OBJECTS))
-
-#>>>>> END OF standard rules
-
-# INCLUDE STANDARDS
-# -----------------
-
-MAKEDIRTMP := $(shell searchFile include/acsMakefile)
-ifneq ($(MAKEDIRTMP),\#error\#)
- MAKEDIR := $(MAKEDIRTMP)/include
- include $(MAKEDIR)/acsMakefile
-endif
-
-# TARGETS
-# -------
-all: do_all
- @echo " . . . 'all' done"
-
-clean : clean_all
- @echo " . . . clean done"
-
-clean_dist : clean_all clean_dist_all
- @echo " . . . clean_dist done"
-
-man : do_man
- @echo " . . . man page(s) done"
-
-install : install_all
- @echo " . . . installation done"
-
-
-#___oOo___
diff --git a/test/tmp/Amc/src/TCL/AmcBase.py b/test/tmp/Amc/src/TCL/AmcBase.py
deleted file mode 100644
index 2c12f4ceec0627fa6b90145dc55cb1889d204852..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/src/TCL/AmcBase.py
+++ /dev/null
@@ -1,732 +0,0 @@
-"""
- * ASTRI - Template for Hardware device scipt based on ALMA Software Templates
- * (c) INAF/UNIPG, 2021
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: Amc Interface
- * Filename: AmcBase.py
- *
-"""
-
-"""
-This package is part of the Telescope Command Language (TCL).
-It contains the code used for accessing Amc.
-"""
-
-import math
-import TCL.HardwareDevice
-
-from TCL.Container import getComponent
-from TCL.Container import getDynamicComponent
-from TCL.logging import getLogger
-
-class AmcBase(TCL.HardwareDevice.HardwareDevice):
-
- def __init__(self, telescopeName = None, componentName = None, stickyFlag = False):
- """
- The constructor creates a Amc object or a group of Amc
- objects.
-
- If the telescopeName is defined then this constructor references
- the component running on that . Alternativly the full
- componentName can be specified if desired.
-
- If telescopeName or componentName are specified as list then a set of
- Amc components are created.
-
- The AmcBase class is a python proxy to the Amc
- component. The component can be running before creating this
- proxy but if it is not it will be started. The object reference
- is obtained using a call to getComponent (stickyFlag = True)
- or to getComponentNonSticky (stickyFlag = False, default).
-
- An exception is thrown if there is a problem creating
- this component, establishing the connection to the
- previously mentioned hardware components, or if either
- both or neither telescopeName and componentName are specified.
-
- EXAMPLE:
- import TCL.AmcBase
- obj = TCL.AmcBase.AmcBase("ASTRI1")
-
- or
-
- import TCL.AmcBase
- obj = TCL.AmcBase.AmcBase(["ASTRI1", "ASTRI2",...])
- """
-
- self._devices = {}
-
- if ((isinstance(telescopeName, list) == True) or
- (isinstance(componentName, list) == True)):
- if isinstance(telescopeName, list) == True:
- if len(telescopeName) != 0:
- for idx in range(0, len(telescopeName)):
- self._devices["SCADA/" + telescopeName[idx] + "/"+"Amc"] = ""
- if isinstance(componentName, list) == True:
- if len(componentName) != 0:
- for idx in range(0, len(componentName)):
- self._devices[componentName[idx]] = ""
- else:
- if((telescopeName == None) and (componentName == None)):
- raise (NameError, "missing telescopeName or componentName")
- elif((telescopeName != None) and (componentName != None)):
- raise (NameError, "missing telescopeName or componentName")
-
- if telescopeName != None:
- self._devices["SCADA/" + telescopeName + "/"+"Amc"] = ""
-
- if componentName != None:
- self._devices[componentName] = ""
-
- for key, val in self._devices.items():
- TCL.HardwareDevice.HardwareDevice.__init__(self, key, stickyFlag)
- self._devices[key] = self._HardwareDevice__hw
- self.__logger = getLogger()
-
- def __del__(self):
- for key, val in self._devices.items():
- instance = self._devices[key]
- del(instance)
- TCL.HardwareDevice.HardwareDevice.__del__(self)
-
-
- # --------------------- Monitor Points ---------------------
-
- # MAXTEMPWARNING_GETVAR
- def GET_MAXTEMPWARNING_GETVAR(self):
- """
- Value of external temperature, expressed in degrees Celsius.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_MAXTEMPWARNING_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M1TEMPWARNING_GETVAR
- def GET_M1TEMPWARNING_GETVAR(self):
- """
- Read the actual temperature of the Nanotech boards for M1
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M1TEMPWARNING_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M2TEMPWARNING_GETVAR
- def GET_M2TEMPWARNING_GETVAR(self):
- """
- Read the actual temperature of the Nanotech boards for M2
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M2TEMPWARNING_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # MAXPOWRCONSUMP_GETVAR
- def GET_MAXPOWRCONSUMP_GETVAR(self):
- """
- Read the set power consumption limit for the Nanotech Boards
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_MAXPOWRCONSUMP_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M1POS_GETVAR
- def GET_M1POS_GETVAR(self):
- """
- Retrieves the position of the 18 segments of the primary mirror in the X and Y directions with respect to the nominal position (which is defined during the calibration procedures). First 18 elements of the are the X position, while the last 18 are the Y positions
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M1POS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M2POS_GETVAR
- def GET_M2POS_GETVAR(self):
- """
- Retrieves the position of defocus (along the Z axis) and tilt (about the Y and X axes) of the secondary mirror. First two elements of the are the tilt about the Y and X axes respectively, and third element is the Z position. Positions are defined with respect to the nominal position determined during the calibration procedures.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M2POS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M1POSABS_GETVAR
- def GET_M1POSABS_GETVAR(self):
- """
- Retrieves the position of each single actuator of M1
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M1POSABS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M2POSABS_GETVAR
- def GET_M2POSABS_GETVAR(self):
- """
- Retrieves the position of each single actuator of M2
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M2POSABS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M1ABSLIMITS_GETVAR
- def GET_M1ABSLIMITS_GETVAR(self):
- """
- Retrieves the minimum and maximum movements limits of each single actuator of M1
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M1ABSLIMITS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M2ABSLIMITS_GETVAR
- def GET_M2ABSLIMITS_GETVAR(self):
- """
- Retrieves the minimum and maximum movements limits of each single actuator of M2
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M2ABSLIMITS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M1ACTSTATUS_GETVAR
- def GET_M1ACTSTATUS_GETVAR(self):
- """
- Retrieves the status of all the M1 actuators
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M1ACTSTATUS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M1ERRORSTS_GETVAR
- def GET_M1ERRORSTS_GETVAR(self):
- """
- Retrieves the error status of all the M1 actuators
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M1ERRORSTS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M2ACTSTATUS_GETVAR
- def GET_M2ACTSTATUS_GETVAR(self):
- """
- Retrieves the status of all the M2 actuators
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M2ACTSTATUS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M2ERRORSTS_GETVAR
- def GET_M2ERRORSTS_GETVAR(self):
- """
- Retrieves the error status of all the M2 actuators
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_M2ERRORSTS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ETHERCATERROR_GETVAR
- def GET_ETHERCATERROR_GETVAR(self):
- """
- The monitor collects any error from the ethercat connection between AMCU Module
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ETHERCATERROR_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # SWVERSION_GETVAR
- def GET_SWVERSION_GETVAR(self):
- """
- The command retrieve the Sw Version that is running
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_SWVERSION_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # CANOPEN_STATUS_M1_GETVAR
- def GET_CANOPEN_STATUS_M1_GETVAR(self):
- """
- The command retrieves the status of the Can Open module dedicated to M1
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_CANOPEN_STATUS_M1_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # CANOPEN_STATUS_M2_GETVAR
- def GET_CANOPEN_STATUS_M2_GETVAR(self):
- """
- The command retrieves the status of the Can Open module dedicated to 2
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_CANOPEN_STATUS_M2_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ENDAT_STATUS_GETVAR
- def GET_ENDAT_STATUS_GETVAR(self):
- """
- Retrieve status of both En-Dat modules
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ENDAT_STATUS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ENCODERPOS_1_GETVAR
- def GET_ENCODERPOS_1_GETVAR(self):
- """
- Retrieve the position of the two Encoders of M2
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ENCODERPOS_1_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ENCODERPOS_2_GETVAR
- def GET_ENCODERPOS_2_GETVAR(self):
- """
- Retrieve the position of the two Encoders of M2
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ENCODERPOS_2_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ENCODERPOS_3_GETVAR
- def GET_ENCODERPOS_3_GETVAR(self):
- """
- Retrieve the position of the two Encoders of M2
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ENCODERPOS_3_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # STATUS_GETVAR
- def GET_STATUS_GETVAR(self):
- """
- Retrieves the status of the AMC system
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_STATUS_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ERROR_NUMBER_GETVAR
- def GET_ERROR_NUMBER_GETVAR(self):
- """
- The monitor reports the number of errors that has been occurred
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ERROR_NUMBER_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ERROR_INFORMATION_GETVAR
- def GET_ERROR_INFORMATION_GETVAR(self):
- """
- The monitor reports the information about the required error. The format is (code,origin,class,timestamp) . Class filed 1: Alarm 2: Error 3:Warning . The timestamp is in UTC format. Origin and Code are available in a separate document.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ERROR_INFORMATION_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ERROR_RECOVERED_GETVAR
- def GET_ERROR_RECOVERED_GETVAR(self):
- """
- The monitor shows the lists of error that has been occurred and recovered. (1:True,2:False,…). The False status means that the corresponding error has been recovered.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ERROR_RECOVERED_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ERROR_NUMBER_RECOVERED_GETVAR
- def GET_ERROR_NUMBER_RECOVERED_GETVAR(self):
- """
- The monitor reports the number of errors that has been recovered
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ERROR_NUMBER_RECOVERED_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ERROR_NUMBER_OUTOFRANGE_GETVAR
- def GET_ERROR_NUMBER_OUTOFRANGE_GETVAR(self):
- """
- The monitor became TRUE when the size of the error buffe is full.The reset command has to be performed.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_ERROR_NUMBER_OUTOFRANGE_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # COMMAND_ACCEPTED_GETVAR
- def GET_COMMAND_ACCEPTED_GETVAR(self):
- """
- As some commands will be accepted only when the AMC is in defined status this variable will be set to true when the last command has been accepted.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_AMC_COMMAND_ACCEPTED_GETCMD()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
-
-
- # --------------------- SET Points ---------------------
-
- # M1DELTA_SETVAR
- def SET_M1DELTA_SETVAR(self, arg):
-
- """
- Defines the requested relative displacement along the X and Y axis (wrt the focal plane) for each of the 18 segments to be applied by the MODE_AMC_MOVEM1 command. First 18 elements of the array are the X displacements, while the last 18 are the Y displacements.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_M1DELTA_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M2DELTA_SETVAR
- def SET_M2DELTA_SETVAR(self, arg):
-
- """
- Change the WS update time (value = 4)
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_M2DELTA_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # MAXTEMPWARNING_SETVAR
- def SET_MAXTEMPWARNING_SETVAR(self, arg):
-
- """
- The command set the max allowable temperature threshold set for the Nanotec boards.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_MAXTEMPWARNING_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M1ABSLIMITS_SETVAR
- def SET_M1ABSLIMITS_SETVAR(self, arg):
-
- """
- Defines the min and max limits of the motors movements. The first 36 elements defines the minimum limits of the M1 motors and the last 36 the maximum limits.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_M1ABSLIMITS_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M2ABSLIMITS_SETVAR
- def SET_M2ABSLIMITS_SETVAR(self, arg):
-
- """
- Defines the min and max limits of the motors movements. The first 3 elements defines the minimum limits of the M2 motors and the last 3 the maximum limits.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_M2ABSLIMITS_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M1STEPS_SETVAR
- def SET_M1STEPS_SETVAR(self, arg):
-
- """
- Defines the requested displacement for each of the 36th motors to be applied by MODE_AMC_MOVEM1 command.STEPS.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_M1STEPS_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # CALDIR_SETVAR
- def SET_CALDIR_SETVAR(self, arg):
-
- """
- Set the directory containing the calibration coefficients defined by the parameter. In order to load the coefficients use CMD.AMC_LOADCONF command
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_CALDIR_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M1ABSPOS_SETVAR
- def SET_M1ABSPOS_SETVAR(self, arg):
-
- """
- Used to move one single actuator of the primary mirror. To be used only to recover from an error.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_M1ABSPOS_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # M2ABSPOS_SETVAR
- def SET_M2ABSPOS_SETVAR(self, arg):
-
- """
- Used to move one single actuator of the secondary mirror. To be used only to recover from an error.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_M2ABSPOS_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ERROR_INFO_SETVAR
- def SET_ERROR_INFO_SETVAR(self, arg):
-
- """
- This command enables access to the information about the required error.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_AMC_ERROR_INFO_SETCMD(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
-
- # ----------------- List of Monitor Points ------------------
- def getMonitorList(self):
- """
- This method returns a list containing all monitor point
- names of this hardware device.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- monitorList = []
- monitorList.append("MAXTEMPWARNING_GETVAR --> xx.GET_MAXTEMPWARNING_GETVAR()")
- monitorList.append("M1TEMPWARNING_GETVAR --> xx.GET_M1TEMPWARNING_GETVAR()")
- monitorList.append("M2TEMPWARNING_GETVAR --> xx.GET_M2TEMPWARNING_GETVAR()")
- monitorList.append("MAXPOWRCONSUMP_GETVAR --> xx.GET_MAXPOWRCONSUMP_GETVAR()")
- monitorList.append("M1POS_GETVAR --> xx.GET_M1POS_GETVAR()")
- monitorList.append("M2POS_GETVAR --> xx.GET_M2POS_GETVAR()")
- monitorList.append("M1POSABS_GETVAR --> xx.GET_M1POSABS_GETVAR()")
- monitorList.append("M2POSABS_GETVAR --> xx.GET_M2POSABS_GETVAR()")
- monitorList.append("M1ABSLIMITS_GETVAR --> xx.GET_M1ABSLIMITS_GETVAR()")
- monitorList.append("M2ABSLIMITS_GETVAR --> xx.GET_M2ABSLIMITS_GETVAR()")
- monitorList.append("M1ACTSTATUS_GETVAR --> xx.GET_M1ACTSTATUS_GETVAR()")
- monitorList.append("M1ERRORSTS_GETVAR --> xx.GET_M1ERRORSTS_GETVAR()")
- monitorList.append("M2ACTSTATUS_GETVAR --> xx.GET_M2ACTSTATUS_GETVAR()")
- monitorList.append("M2ERRORSTS_GETVAR --> xx.GET_M2ERRORSTS_GETVAR()")
- monitorList.append("ETHERCATERROR_GETVAR --> xx.GET_ETHERCATERROR_GETVAR()")
- monitorList.append("SWVERSION_GETVAR --> xx.GET_SWVERSION_GETVAR()")
- monitorList.append("CANOPEN_STATUS_M1_GETVAR --> xx.GET_CANOPEN_STATUS_M1_GETVAR()")
- monitorList.append("CANOPEN_STATUS_M2_GETVAR --> xx.GET_CANOPEN_STATUS_M2_GETVAR()")
- monitorList.append("ENDAT_STATUS_GETVAR --> xx.GET_ENDAT_STATUS_GETVAR()")
- monitorList.append("ENCODERPOS_1_GETVAR --> xx.GET_ENCODERPOS_1_GETVAR()")
- monitorList.append("ENCODERPOS_2_GETVAR --> xx.GET_ENCODERPOS_2_GETVAR()")
- monitorList.append("ENCODERPOS_3_GETVAR --> xx.GET_ENCODERPOS_3_GETVAR()")
- monitorList.append("STATUS_GETVAR --> xx.GET_STATUS_GETVAR()")
- monitorList.append("ERROR_NUMBER_GETVAR --> xx.GET_ERROR_NUMBER_GETVAR()")
- monitorList.append("ERROR_INFORMATION_GETVAR --> xx.GET_ERROR_INFORMATION_GETVAR()")
- monitorList.append("ERROR_RECOVERED_GETVAR --> xx.GET_ERROR_RECOVERED_GETVAR()")
- monitorList.append("ERROR_NUMBER_RECOVERED_GETVAR --> xx.GET_ERROR_NUMBER_RECOVERED_GETVAR()")
- monitorList.append("ERROR_NUMBER_OUTOFRANGE_GETVAR --> xx.GET_ERROR_NUMBER_OUTOFRANGE_GETVAR()")
- monitorList.append("COMMAND_ACCEPTED_GETVAR --> xx.GET_COMMAND_ACCEPTED_GETVAR()")
- result[telName] = monitorList
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ----------------- List of SET Points ------------------
- def getSetList(self):
- """
- This method returns a list containing all set point
- names of this hardware device.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- setList = []
- setList.append("M1DELTA_SETVAR --> xx.SET_M1DELTA_SETVAR(val)")
- setList.append("M2DELTA_SETVAR --> xx.SET_M2DELTA_SETVAR(val)")
- setList.append("MAXTEMPWARNING_SETVAR --> xx.SET_MAXTEMPWARNING_SETVAR(val)")
- setList.append("M1ABSLIMITS_SETVAR --> xx.SET_M1ABSLIMITS_SETVAR(val)")
- setList.append("M2ABSLIMITS_SETVAR --> xx.SET_M2ABSLIMITS_SETVAR(val)")
- setList.append("M1STEPS_SETVAR --> xx.SET_M1STEPS_SETVAR(val)")
- setList.append("CALDIR_SETVAR --> xx.SET_CALDIR_SETVAR(val)")
- setList.append("M1ABSPOS_SETVAR --> xx.SET_M1ABSPOS_SETVAR(val)")
- setList.append("M2ABSPOS_SETVAR --> xx.SET_M2ABSPOS_SETVAR(val)")
- setList.append("ERROR_INFO_SETVAR --> xx.SET_ERROR_INFO_SETVAR(val)")
- result[telName] = setList
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
-
-
diff --git a/test/tmp/Amc/src/TCL/__init__.py b/test/tmp/Amc/src/TCL/__init__.py
deleted file mode 100644
index 95db4138427b73f6b3f370cc13c5f3fe6a6dd3dd..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/src/TCL/__init__.py
+++ /dev/null
@@ -1,16 +0,0 @@
-"""
- * ASTRI - Template for Hardware device init script based on ALMA Software Templates
- * (c) INAF/UNIPG, 2021
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: Amc Interface
- * Filename: AmcBase.py
- *
-"""
-
-from pkgutil import extend_path
-__path__ = extend_path(__path__, __name__)
-
diff --git a/test/tmp/Amc/src/astri/tcs/AmcBaseImpl/AmcBaseComponentHelper.java b/test/tmp/Amc/src/astri/tcs/AmcBaseImpl/AmcBaseComponentHelper.java
deleted file mode 100644
index 5cc129f901aef128f0a319952e4a746c39947093..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/src/astri/tcs/AmcBaseImpl/AmcBaseComponentHelper.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * ALMA - Atacama Large Millimiter Array
- * (c) European Southern Observatory, 2002
- * Copyright by ESO (in the framework of the ALMA collaboration),
- * All rights reserved
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-package astri.tcs.AmcBaseImpl;
-
-import java.util.logging.Logger;
-
-import org.omg.PortableServer.Servant;
-import alma.ACS.ACSComponentOperations;
-import alma.acs.component.ComponentLifecycle;
-import alma.acs.container.ComponentHelper;
-import astri.tcs.AmcBaseOperations;
-import astri.tcs.AmcBasePOATie;
-import astri.tcs.AmcBaseImpl.AmcBaseImpl;
-
-/**
- * Component helper class.
- * Generated for convenience, but can be modified by the component developer.
- * Must therefore be treated like any other Java class (CVS, ...).
- *
- * To create an entry for your component in the Configuration Database,
- * copy the line below into a new entry in the file $ACS_CDB/MACI/Components/Components.xml
- * and modify the instance name of the component and the container:
- *
- * Name="AmcBase_1" Code="astri.tcs.AmcBaseImpl.AmcBaseComponentHelper" Type="IDL:astri.tcs.AmcBase:1.0" Container="frodoContainer" ImplLang="java"
- *
- * @author alma-component-helper-generator-tool
- */
-public class AmcBaseComponentHelper extends ComponentHelper
-{
- /**
- * Constructor
- * @param containerLogger logger used only by the parent class.
- */
- public AmcBaseComponentHelper(Logger containerLogger)
- {
- super(containerLogger);
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#_createComponentImpl()
- */
- protected ComponentLifecycle _createComponentImpl()
- {
- return new AmcBaseImpl();
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#_getPOATieClass()
- */
- protected Class extends Servant> _getPOATieClass()
- {
- return AmcBasePOATie.class;
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#getOperationsInterface()
- */
- protected Class extends ACSComponentOperations> _getOperationsInterface()
- {
- return AmcBaseOperations.class;
- }
-
-}
diff --git a/test/tmp/Amc/src/astri/tcs/AmcBaseImpl/AmcBaseImpl.java b/test/tmp/Amc/src/astri/tcs/AmcBaseImpl/AmcBaseImpl.java
deleted file mode 100644
index 4d53677a98402d81a3f109da0ddf5ba375a1d06f..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/src/astri/tcs/AmcBaseImpl/AmcBaseImpl.java
+++ /dev/null
@@ -1,2293 +0,0 @@
-/**
- * ASTRI - Template based on ALMA Software Templates
- * (c) INAF/UNIPG, 2014
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY, without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- * ---------------------------------------------------------
- * | This is generated code! Do not modify this file. |
- * | Any changes will be lost when the file is re-generated. |
- * ---------------------------------------------------------
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: Amc Interface
- *
- */
-
-package astri.tcs.AmcBaseImpl;
-
-import alma.ACS.ROboolean;
-import alma.ACS.RObooleanHelper;
-import alma.ACS.RObooleanPOATie;
-import alma.ACS.impl.RObooleanImpl;
-import alma.ACS.ROdouble;
-import alma.ACS.ROdoubleHelper;
-import alma.ACS.ROdoublePOATie;
-import alma.ACS.impl.ROdoubleImpl;
-import alma.ACS.ROfloat;
-import alma.ACS.ROfloatHelper;
-import alma.ACS.ROfloatPOATie;
-import alma.ACS.impl.ROfloatImpl;
-import alma.ACS.ROlong;
-import alma.ACS.ROlongHelper;
-import alma.ACS.ROlongPOATie;
-import alma.ACS.impl.ROlongImpl;
-import alma.ACS.ROlongLong;
-import alma.ACS.ROlongLongHelper;
-import alma.ACS.ROlongLongPOATie;
-import alma.ACS.impl.ROlongLongImpl;
-import alma.ACS.ROstring;
-import alma.ACS.ROstringHelper;
-import alma.ACS.ROstringPOATie;
-import alma.ACS.impl.ROstringImpl;
-import alma.ACS.RWboolean;
-import alma.ACS.RWbooleanHelper;
-import alma.ACS.RWbooleanPOATie;
-import alma.ACS.impl.RWbooleanImpl;
-import alma.ACS.RWdouble;
-import alma.ACS.RWdoubleHelper;
-import alma.ACS.RWdoublePOATie;
-import alma.ACS.impl.RWdoubleImpl;
-import alma.ACS.RWfloat;
-import alma.ACS.RWfloatHelper;
-import alma.ACS.RWfloatPOATie;
-import alma.ACS.impl.RWfloatImpl;
-import alma.ACS.RWlong;
-import alma.ACS.RWlongHelper;
-import alma.ACS.RWlongPOATie;
-import alma.ACS.impl.RWlongImpl;
-import alma.ACS.RWlongLong;
-import alma.ACS.RWlongLongHelper;
-import alma.ACS.RWlongLongPOATie;
-import alma.ACS.impl.RWlongLongImpl;
-import alma.ACS.RWstring;
-import alma.ACS.RWstringHelper;
-import alma.ACS.RWstringPOATie;
-import alma.ACS.impl.RWstringImpl;
-
-import alma.ACS.ROdoubleSeq;
-import alma.ACS.ROdoubleSeqHelper;
-import alma.ACS.ROdoubleSeqPOATie;
-import alma.ACS.impl.ROdoubleSeqImpl;
-import alma.ACS.ROfloatSeq;
-import alma.ACS.ROfloatSeqHelper;
-import alma.ACS.ROfloatSeqPOATie;
-import alma.ACS.impl.ROfloatSeqImpl;
-import alma.ACS.ROlongSeq;
-import alma.ACS.ROlongSeqHelper;
-import alma.ACS.ROlongSeqPOATie;
-import alma.ACS.impl.ROlongSeqImpl;
-import alma.ACS.ROstringSeq;
-import alma.ACS.ROstringSeqHelper;
-import alma.ACS.ROstringSeqPOATie;
-import alma.ACS.impl.ROstringSeqImpl;
-import alma.ACS.RWdoubleSeq;
-import alma.ACS.RWdoubleSeqHelper;
-import alma.ACS.RWdoubleSeqPOATie;
-import alma.ACS.impl.RWdoubleSeqImpl;
-import alma.ACS.RWfloatSeq;
-import alma.ACS.RWfloatSeqHelper;
-import alma.ACS.RWfloatSeqPOATie;
-import alma.ACS.impl.RWfloatSeqImpl;
-import alma.ACS.RWlongSeq;
-import alma.ACS.RWlongSeqHelper;
-import alma.ACS.RWlongSeqPOATie;
-import alma.ACS.impl.RWlongSeqImpl;
-
-import alma.ACS.ROuLongLong;
-import alma.ACS.ROuLongLongHelper;
-import alma.ACS.ROuLongLongPOATie;
-import alma.ACS.impl.ROuLongLongImpl;
-
-import alma.ACS.RWuLongLong;
-import alma.ACS.RWuLongLongHelper;
-import alma.ACS.RWuLongLongPOATie;
-import alma.ACS.impl.RWuLongLongImpl;
-
-import org.omg.CORBA.LongHolder;
-
-import cta.acs.opcua.da.UaDataSupport;
-import astri.cta.acs.opcua.da.UaDataSupport.extensions.UaDataSupportInt16;
-import cta.acs.opcua.da.extension.UaDataSupportUInt16;
-import cta.acs.opcua.da.extension.UaDataSupportUInt32;
-
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.logging.Level;
-import java.io.IOException;
-
-import alma.ACS.NoSuchCharacteristic;
-import alma.ACS.jbaci.PropertyInitializationFailed;
-import alma.ACSErr.CompletionHolder;
-import alma.acs.component.ComponentLifecycleException;
-import alma.JavaContainerError.wrappers.AcsJContainerServicesEx;
-import alma.acs.container.ContainerServices;
-import alma.maciErrType.wrappers.AcsJComponentCleanUpEx;
-
-import astri.tcs.AmcBaseOperations;
-import astri.tcs.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl;
-import astri.tcs.TCSHardwareDevicePackage.tcshwState;
-import astri.TCSControlExceptions.INACTErrorEx;
-import astri.TCSControlExceptions.OPCUAErrorEx;
-import astri.TCSControlExceptions.IllegalParameterErrorEx;
-import alma.acs.exceptions.AcsJCompletion;
-import alma.acs.exceptions.AcsJException;
-import alma.acs.util.UTCUtility;
-
-import com.prosysopc.ua.ServiceException;
-import com.prosysopc.ua.StatusException;
-import cta.acs.opcua.da.UaClientPool;
-import alma.ACSErr.Completion;
-
-/**
- * @author Generated by: Gino Tosti
- * @Date: 21/06/16
- * @Description: Amc Interface
- *
- */
-public class AmcBaseImpl extends TCSHardwareDeviceImpl implements AmcBaseOperations {
-
- // OPC-UA server url key in CDB
- private static final String KEY_OPC_URL = "opc_url";
- private static final String KEY_SERIAL_NUMBER = "SerialNumber";
- private static final String KEY_MONITOR_COLLECTOR = "MonitoringCollectorName";
- private String opc_url;
- private String serial_number;
- private String monitor_collector_name;
- private ROlong MAXTEMPWARNING_GETVAR;
- private ROlongSeq M1TEMPWARNING_GETVAR;
- private ROlongSeq M2TEMPWARNING_GETVAR;
- private ROlong MAXPOWRCONSUMP_GETVAR;
- private ROdoubleSeq M1POS_GETVAR;
- private ROdoubleSeq M2POS_GETVAR;
- private ROdoubleSeq M1POSABS_GETVAR;
- private ROdoubleSeq M2POSABS_GETVAR;
- private ROdoubleSeq M1ABSLIMITS_GETVAR;
- private ROdoubleSeq M2ABSLIMITS_GETVAR;
- private ROlongSeq M1ACTSTATUS_GETVAR;
- private ROlongSeq M1ERRORSTS_GETVAR;
- private ROlongSeq M2ACTSTATUS_GETVAR;
- private ROlongSeq M2ERRORSTS_GETVAR;
- private ROlong ETHERCATERROR_GETVAR;
- private ROlong SWVERSION_GETVAR;
- private ROlong CANOPEN_STATUS_M1_GETVAR;
- private ROlong CANOPEN_STATUS_M2_GETVAR;
- private ROlongSeq ENDAT_STATUS_GETVAR;
- private ROlong ENCODERPOS_1_GETVAR;
- private ROlong ENCODERPOS_2_GETVAR;
- private ROlong ENCODERPOS_3_GETVAR;
- private ROlong STATUS_GETVAR;
- private ROlong ERROR_NUMBER_GETVAR;
- private ROstring ERROR_INFORMATION_GETVAR;
- private ROstring ERROR_RECOVERED_GETVAR;
- private ROlong ERROR_NUMBER_RECOVERED_GETVAR;
- private ROboolean ERROR_NUMBER_OUTOFRANGE_GETVAR;
- private ROboolean COMMAND_ACCEPTED_GETVAR;
- private RWdoubleSeq M1DELTA_SETVAR;
- private RWdoubleSeq M2DELTA_SETVAR;
- private RWlong MAXTEMPWARNING_SETVAR;
- private RWdoubleSeq M1ABSLIMITS_SETVAR;
- private RWdoubleSeq M2ABSLIMITS_SETVAR;
- private RWdoubleSeq M1STEPS_SETVAR;
- private RWstring CALDIR_SETVAR;
- private RWlongSeq M1ABSPOS_SETVAR;
- private RWlongSeq M2ABSPOS_SETVAR;
- private RWlong ERROR_INFO_SETVAR;
- private RWboolean MODE_AMC_INIT;
- private RWboolean MODE_AMC_START;
- private RWboolean MODE_AMC_OFFLINE;
- private RWboolean MODE_AMC_STOP;
- private RWboolean MODE_AMC_SHUTDOWN;
- private RWboolean MODE_AMC_FALLBACK;
- private RWboolean MODE_AMC_CALIBRATION;
- private RWboolean MODE_AMC_RESTART;
- private RWboolean MODE_AMC_MAINTENANCE;
- private RWboolean MODE_AMC_REINIT;
- private RWboolean MODE_AMC_MOVEM1;
- private RWboolean MODE_AMC_MOVEM2;
- private RWboolean MODE_AMC_MOVEM1STEPS;
- private RWboolean CMD_AMC_LOADCONF;
- private RWboolean CMD_AMC_M1ABSPOS;
- private RWboolean CMD_AMC_M2ABSPOS;
- private RWboolean CMD_AMC_CALIBRATE_M1;
- private RWboolean CMD_AMC_ERROR_RESET;
- /*
- * ACS Properties and DataAccess
- */
- private Map dataAccess = new HashMap();
- /* (non-Javadoc)
- * @see alma.ACS.impl.CharacteristicComponentImpl#initialize(alma.acs.container.ContainerServices)
- */
- public void initialize(ContainerServices cs) throws ComponentLifecycleException {
- if (cs != null) {
- m_logger=cs.getLogger();
- m_logger.info("Inizializing Amc component");
- super.initialize(cs);
- }
- /*
- * Loading OPC-UA configuration from CDB
- */
- try {
- opc_url = loadFromCDB(KEY_OPC_URL);
- } catch (NoSuchCharacteristic e) {
- m_logger.log(Level.SEVERE, "No OPC-UA server url found in CDB "+e);
- }
- try {
- monitor_collector_name = loadFromCDB(KEY_MONITOR_COLLECTOR);
- if(!monitor_collector_name.equals("TDB")){
- setMonitoringCollectorName(monitor_collector_name);
- }else{
- m_logger.log(Level.SEVERE, "MONITOR_COLLECTOR_NAME is not defined in CDB ");
- throw new ComponentLifecycleException();
- }
- } catch (NoSuchCharacteristic e) {
- m_logger.log(Level.SEVERE, "MONITOR_COLLECTOR_NAME found in CDB "+e);
- }
- try {
- serial_number = loadFromCDB(KEY_SERIAL_NUMBER);
- setSerialNumber(serial_number);
- } catch (NoSuchCharacteristic e) {
- m_logger.log(Level.SEVERE, "No SERIAL NUMBER found in CDB "+e);
- }
- try {
- UaClientPool.create(opc_url);
- UaClientPool.connect(opc_url);
- } catch (IOException e1) {
- m_logger.fine(e1.getMessage());
- throw new ComponentLifecycleException("Failed to connect to the server:"+opc_url);
- }
- if (UaClientPool.isConnected(opc_url)){
- try {
- createDataPoints();
- } catch (Exception e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- throw new ComponentLifecycleException("Failed to create properties"+e);
- }
- }
- }
-
- @Override
- public void connectToDevice(String opc_url){
-
- }
- public String getOpc_url() {
- return opc_url;
- }
-
- public void setOpc_url(String opc_url) {
- this.opc_url = opc_url;
- }
-
- private void createDataPoints() throws IllegalArgumentException,PropertyInitializationFailed, ServiceException, StatusException{
- try {
- dataAccess.put("MAXTEMPWARNING_GETVAR", new UaDataSupport(opc_url,"ns=4;s=GET.AMC_MAXTEMPWARNING" ));
- MAXTEMPWARNING_GETVAR = createROlongProp("MAXTEMPWARNING_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M1TEMPWARNING" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1TEMPWARNING_GETVAR", d);
- M1TEMPWARNING_GETVAR = createROlongSeqProp("M1TEMPWARNING_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M2TEMPWARNING" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M2TEMPWARNING_GETVAR", d);
- M2TEMPWARNING_GETVAR = createROlongSeqProp("M2TEMPWARNING_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("MAXPOWRCONSUMP_GETVAR", new UaDataSupport(opc_url,"ns=4;s=GET.AMC_MAXPOWRCONSUMP" ));
- MAXPOWRCONSUMP_GETVAR = createROlongProp("MAXPOWRCONSUMP_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M1POS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1POS_GETVAR", d);
- M1POS_GETVAR = createROdoubleSeqProp("M1POS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M2POS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M2POS_GETVAR", d);
- M2POS_GETVAR = createROdoubleSeqProp("M2POS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M1POSABS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1POSABS_GETVAR", d);
- M1POSABS_GETVAR = createROdoubleSeqProp("M1POSABS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M2POSABS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M2POSABS_GETVAR", d);
- M2POSABS_GETVAR = createROdoubleSeqProp("M2POSABS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M1ABSLIMITS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1ABSLIMITS_GETVAR", d);
- M1ABSLIMITS_GETVAR = createROdoubleSeqProp("M1ABSLIMITS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M2ABSLIMITS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M2ABSLIMITS_GETVAR", d);
- M2ABSLIMITS_GETVAR = createROdoubleSeqProp("M2ABSLIMITS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M1ACTSTATUS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1ACTSTATUS_GETVAR", d);
- M1ACTSTATUS_GETVAR = createROlongSeqProp("M1ACTSTATUS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M1ERRORSTS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1ERRORSTS_GETVAR", d);
- M1ERRORSTS_GETVAR = createROlongSeqProp("M1ERRORSTS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M2ACTSTATUS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M2ACTSTATUS_GETVAR", d);
- M2ACTSTATUS_GETVAR = createROlongSeqProp("M2ACTSTATUS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_M2ERRORSTS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M2ERRORSTS_GETVAR", d);
- M2ERRORSTS_GETVAR = createROlongSeqProp("M2ERRORSTS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ETHERCATERROR_GETVAR", new UaDataSupportUInt16(opc_url,"ns=4;s=GET.AMC_ETHERCATERROR" ));
- ETHERCATERROR_GETVAR = createROlongProp("ETHERCATERROR_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("SWVERSION_GETVAR", new UaDataSupportInt16(opc_url,"ns=4;s=GET.AMC_SWVERSION" ));
- SWVERSION_GETVAR = createROlongProp("SWVERSION_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("CANOPEN_STATUS_M1_GETVAR", new UaDataSupportUInt16(opc_url,"ns=4;s=GET.AMC_CANOPEN_STATUS_M1" ));
- CANOPEN_STATUS_M1_GETVAR = createROlongProp("CANOPEN_STATUS_M1_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("CANOPEN_STATUS_M2_GETVAR", new UaDataSupportUInt16(opc_url,"ns=4;s=GET.AMC_CANOPEN_STATUS_M2" ));
- CANOPEN_STATUS_M2_GETVAR = createROlongProp("CANOPEN_STATUS_M2_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=GET.AMC_ENDAT_STATUS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("ENDAT_STATUS_GETVAR", d);
- ENDAT_STATUS_GETVAR = createROlongSeqProp("ENDAT_STATUS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ENCODERPOS_1_GETVAR", new UaDataSupport(opc_url,"ns=4;s=GET.AMC_ENCODERPOS_1" ));
- ENCODERPOS_1_GETVAR = createROlongProp("ENCODERPOS_1_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ENCODERPOS_2_GETVAR", new UaDataSupport(opc_url,"ns=4;s=GET.AMC_ENCODERPOS_2" ));
- ENCODERPOS_2_GETVAR = createROlongProp("ENCODERPOS_2_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ENCODERPOS_3_GETVAR", new UaDataSupport(opc_url,"ns=4;s=GET.AMC_ENCODERPOS_3" ));
- ENCODERPOS_3_GETVAR = createROlongProp("ENCODERPOS_3_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("STATUS_GETVAR", new UaDataSupportInt16(opc_url,"ns=4;s=GET.AMC_STATUS" ));
- STATUS_GETVAR = createROlongProp("STATUS_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ERROR_NUMBER_GETVAR", new UaDataSupportInt16(opc_url,"ns=4;s=GET.AMC_ERROR_NUMBER" ));
- ERROR_NUMBER_GETVAR = createROlongProp("ERROR_NUMBER_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ERROR_INFORMATION_GETVAR", new UaDataSupport(opc_url,"ns=4;s=GET.AMC_ERROR_INFORMATION" ));
- ERROR_INFORMATION_GETVAR = createROstringProp("ERROR_INFORMATION_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ERROR_RECOVERED_GETVAR", new UaDataSupport(opc_url,"ns=4;s=GET.AMC_ERROR_RECOVERED" ));
- ERROR_RECOVERED_GETVAR = createROstringProp("ERROR_RECOVERED_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ERROR_NUMBER_RECOVERED_GETVAR", new UaDataSupportInt16(opc_url,"ns=4;s=GET.AMC_ERROR_NUMBER_RECOVERED" ));
- ERROR_NUMBER_RECOVERED_GETVAR = createROlongProp("ERROR_NUMBER_RECOVERED_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ERROR_NUMBER_OUTOFRANGE_GETVAR", new UaDataSupport(opc_url,"ns=4;s=GET.AMC_ERROR_NUMBER_OUTOFRANGE" ));
- ERROR_NUMBER_OUTOFRANGE_GETVAR = createRObooleanProp("ERROR_NUMBER_OUTOFRANGE_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("COMMAND_ACCEPTED_GETVAR", new UaDataSupport(opc_url,"ns=4;s=GET.AMC_COMMAND_ACCEPTED" ));
- COMMAND_ACCEPTED_GETVAR = createRObooleanProp("COMMAND_ACCEPTED_GETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=SET.AMC_M1DELTA" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1DELTA_SETVAR", d);
- M1DELTA_SETVAR = createRWdoubleSeqProp("M1DELTA_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=SET.AMC_M2DELTA" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M2DELTA_SETVAR", d);
- M2DELTA_SETVAR = createRWdoubleSeqProp("M2DELTA_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MAXTEMPWARNING_SETVAR", new UaDataSupport(opc_url,"ns=4;s=SET.AMC_MAXTEMPWARNING" ));
- MAXTEMPWARNING_SETVAR = createRWlongProp("MAXTEMPWARNING_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=SET.AMC_M1ABSLIMITS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1ABSLIMITS_SETVAR", d);
- M1ABSLIMITS_SETVAR = createRWdoubleSeqProp("M1ABSLIMITS_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=SET.AMC_M2ABSLIMITS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M2ABSLIMITS_SETVAR", d);
- M2ABSLIMITS_SETVAR = createRWdoubleSeqProp("M2ABSLIMITS_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=SET.AMC_M1STEPS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1STEPS_SETVAR", d);
- M1STEPS_SETVAR = createRWdoubleSeqProp("M1STEPS_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("CALDIR_SETVAR", new UaDataSupport(opc_url,"ns=4;s=SET.AMC_CALDIR" ));
- CALDIR_SETVAR = createRWstringProp("CALDIR_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=SET.AMC_M1ABSPOS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M1ABSPOS_SETVAR", d);
- M1ABSPOS_SETVAR = createRWlongSeqProp("M1ABSPOS_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- UaDataSupport d = new UaDataSupport(opc_url,"ns=4;s=SET.AMC_M2ABSPOS" );
- d.setConversionToPrimitiveArrayEnabled(true);
- dataAccess.put("M2ABSPOS_SETVAR", d);
- M2ABSPOS_SETVAR = createRWlongSeqProp("M2ABSPOS_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("ERROR_INFO_SETVAR", new UaDataSupportInt16(opc_url,"ns=4;s=SET.AMC_ERROR_INFO" ));
- ERROR_INFO_SETVAR = createRWlongProp("ERROR_INFO_SETVAR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_INIT", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_INIT" ));
- MODE_AMC_INIT = createRWbooleanProp("MODE_AMC_INIT");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_START", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_START" ));
- MODE_AMC_START = createRWbooleanProp("MODE_AMC_START");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_OFFLINE", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_OFFLINE" ));
- MODE_AMC_OFFLINE = createRWbooleanProp("MODE_AMC_OFFLINE");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_STOP", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_STOP" ));
- MODE_AMC_STOP = createRWbooleanProp("MODE_AMC_STOP");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_SHUTDOWN", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_SHUTDOWN" ));
- MODE_AMC_SHUTDOWN = createRWbooleanProp("MODE_AMC_SHUTDOWN");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_FALLBACK", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_FALLBACK" ));
- MODE_AMC_FALLBACK = createRWbooleanProp("MODE_AMC_FALLBACK");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_CALIBRATION", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_CALIBRATION" ));
- MODE_AMC_CALIBRATION = createRWbooleanProp("MODE_AMC_CALIBRATION");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_RESTART", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_RESTART" ));
- MODE_AMC_RESTART = createRWbooleanProp("MODE_AMC_RESTART");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_MAINTENANCE", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_MAINTENANCE" ));
- MODE_AMC_MAINTENANCE = createRWbooleanProp("MODE_AMC_MAINTENANCE");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_REINIT", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_REINIT" ));
- MODE_AMC_REINIT = createRWbooleanProp("MODE_AMC_REINIT");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_MOVEM1", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_MOVEM1" ));
- MODE_AMC_MOVEM1 = createRWbooleanProp("MODE_AMC_MOVEM1");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_MOVEM2", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_MOVEM2" ));
- MODE_AMC_MOVEM2 = createRWbooleanProp("MODE_AMC_MOVEM2");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("MODE_AMC_MOVEM1STEPS", new UaDataSupport(opc_url,"ns=4;s=MODE.AMC_MOVEM1STEPS" ));
- MODE_AMC_MOVEM1STEPS = createRWbooleanProp("MODE_AMC_MOVEM1STEPS");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("CMD_AMC_LOADCONF", new UaDataSupport(opc_url,"ns=4;s=CMD.AMC_LOADCONF" ));
- CMD_AMC_LOADCONF = createRWbooleanProp("CMD_AMC_LOADCONF");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("CMD_AMC_M1ABSPOS", new UaDataSupport(opc_url,"ns=4;s=CMD.AMC_M1ABSPOS" ));
- CMD_AMC_M1ABSPOS = createRWbooleanProp("CMD_AMC_M1ABSPOS");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("CMD_AMC_M2ABSPOS", new UaDataSupport(opc_url,"ns=4;s=CMD.AMC_M2ABSPOS" ));
- CMD_AMC_M2ABSPOS = createRWbooleanProp("CMD_AMC_M2ABSPOS");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("CMD_AMC_CALIBRATE_M1", new UaDataSupport(opc_url,"ns=4;s=CMD.AMC_CALIBRATE_M1" ));
- CMD_AMC_CALIBRATE_M1 = createRWbooleanProp("CMD_AMC_CALIBRATE_M1");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("CMD_AMC_ERROR_RESET", new UaDataSupport(opc_url,"ns=4;s=CMD.AMC_ERROR_RESET" ));
- CMD_AMC_ERROR_RESET = createRWbooleanProp("CMD_AMC_ERROR_RESET");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- }
- @Override
- public ROlong MAXTEMPWARNING_GETVAR() {
- return MAXTEMPWARNING_GETVAR;
- }
- @Override
- public ROlongSeq M1TEMPWARNING_GETVAR() {
- return M1TEMPWARNING_GETVAR;
- }
- @Override
- public ROlongSeq M2TEMPWARNING_GETVAR() {
- return M2TEMPWARNING_GETVAR;
- }
- @Override
- public ROlong MAXPOWRCONSUMP_GETVAR() {
- return MAXPOWRCONSUMP_GETVAR;
- }
- @Override
- public ROdoubleSeq M1POS_GETVAR() {
- return M1POS_GETVAR;
- }
- @Override
- public ROdoubleSeq M2POS_GETVAR() {
- return M2POS_GETVAR;
- }
- @Override
- public ROdoubleSeq M1POSABS_GETVAR() {
- return M1POSABS_GETVAR;
- }
- @Override
- public ROdoubleSeq M2POSABS_GETVAR() {
- return M2POSABS_GETVAR;
- }
- @Override
- public ROdoubleSeq M1ABSLIMITS_GETVAR() {
- return M1ABSLIMITS_GETVAR;
- }
- @Override
- public ROdoubleSeq M2ABSLIMITS_GETVAR() {
- return M2ABSLIMITS_GETVAR;
- }
- @Override
- public ROlongSeq M1ACTSTATUS_GETVAR() {
- return M1ACTSTATUS_GETVAR;
- }
- @Override
- public ROlongSeq M1ERRORSTS_GETVAR() {
- return M1ERRORSTS_GETVAR;
- }
- @Override
- public ROlongSeq M2ACTSTATUS_GETVAR() {
- return M2ACTSTATUS_GETVAR;
- }
- @Override
- public ROlongSeq M2ERRORSTS_GETVAR() {
- return M2ERRORSTS_GETVAR;
- }
- @Override
- public ROlong ETHERCATERROR_GETVAR() {
- return ETHERCATERROR_GETVAR;
- }
- @Override
- public ROlong SWVERSION_GETVAR() {
- return SWVERSION_GETVAR;
- }
- @Override
- public ROlong CANOPEN_STATUS_M1_GETVAR() {
- return CANOPEN_STATUS_M1_GETVAR;
- }
- @Override
- public ROlong CANOPEN_STATUS_M2_GETVAR() {
- return CANOPEN_STATUS_M2_GETVAR;
- }
- @Override
- public ROlongSeq ENDAT_STATUS_GETVAR() {
- return ENDAT_STATUS_GETVAR;
- }
- @Override
- public ROlong ENCODERPOS_1_GETVAR() {
- return ENCODERPOS_1_GETVAR;
- }
- @Override
- public ROlong ENCODERPOS_2_GETVAR() {
- return ENCODERPOS_2_GETVAR;
- }
- @Override
- public ROlong ENCODERPOS_3_GETVAR() {
- return ENCODERPOS_3_GETVAR;
- }
- @Override
- public ROlong STATUS_GETVAR() {
- return STATUS_GETVAR;
- }
- @Override
- public ROlong ERROR_NUMBER_GETVAR() {
- return ERROR_NUMBER_GETVAR;
- }
- @Override
- public ROstring ERROR_INFORMATION_GETVAR() {
- return ERROR_INFORMATION_GETVAR;
- }
- @Override
- public ROstring ERROR_RECOVERED_GETVAR() {
- return ERROR_RECOVERED_GETVAR;
- }
- @Override
- public ROlong ERROR_NUMBER_RECOVERED_GETVAR() {
- return ERROR_NUMBER_RECOVERED_GETVAR;
- }
- @Override
- public ROboolean ERROR_NUMBER_OUTOFRANGE_GETVAR() {
- return ERROR_NUMBER_OUTOFRANGE_GETVAR;
- }
- @Override
- public ROboolean COMMAND_ACCEPTED_GETVAR() {
- return COMMAND_ACCEPTED_GETVAR;
- }
- @Override
- public RWdoubleSeq M1DELTA_SETVAR() {
- return M1DELTA_SETVAR;
- }
- @Override
- public RWdoubleSeq M2DELTA_SETVAR() {
- return M2DELTA_SETVAR;
- }
- @Override
- public RWlong MAXTEMPWARNING_SETVAR() {
- return MAXTEMPWARNING_SETVAR;
- }
- @Override
- public RWdoubleSeq M1ABSLIMITS_SETVAR() {
- return M1ABSLIMITS_SETVAR;
- }
- @Override
- public RWdoubleSeq M2ABSLIMITS_SETVAR() {
- return M2ABSLIMITS_SETVAR;
- }
- @Override
- public RWdoubleSeq M1STEPS_SETVAR() {
- return M1STEPS_SETVAR;
- }
- @Override
- public RWstring CALDIR_SETVAR() {
- return CALDIR_SETVAR;
- }
- @Override
- public RWlongSeq M1ABSPOS_SETVAR() {
- return M1ABSPOS_SETVAR;
- }
- @Override
- public RWlongSeq M2ABSPOS_SETVAR() {
- return M2ABSPOS_SETVAR;
- }
- @Override
- public RWlong ERROR_INFO_SETVAR() {
- return ERROR_INFO_SETVAR;
- }
- @Override
- public RWboolean MODE_AMC_INIT() {
- return MODE_AMC_INIT;
- }
- @Override
- public RWboolean MODE_AMC_START() {
- return MODE_AMC_START;
- }
- @Override
- public RWboolean MODE_AMC_OFFLINE() {
- return MODE_AMC_OFFLINE;
- }
- @Override
- public RWboolean MODE_AMC_STOP() {
- return MODE_AMC_STOP;
- }
- @Override
- public RWboolean MODE_AMC_SHUTDOWN() {
- return MODE_AMC_SHUTDOWN;
- }
- @Override
- public RWboolean MODE_AMC_FALLBACK() {
- return MODE_AMC_FALLBACK;
- }
- @Override
- public RWboolean MODE_AMC_CALIBRATION() {
- return MODE_AMC_CALIBRATION;
- }
- @Override
- public RWboolean MODE_AMC_RESTART() {
- return MODE_AMC_RESTART;
- }
- @Override
- public RWboolean MODE_AMC_MAINTENANCE() {
- return MODE_AMC_MAINTENANCE;
- }
- @Override
- public RWboolean MODE_AMC_REINIT() {
- return MODE_AMC_REINIT;
- }
- @Override
- public RWboolean MODE_AMC_MOVEM1() {
- return MODE_AMC_MOVEM1;
- }
- @Override
- public RWboolean MODE_AMC_MOVEM2() {
- return MODE_AMC_MOVEM2;
- }
- @Override
- public RWboolean MODE_AMC_MOVEM1STEPS() {
- return MODE_AMC_MOVEM1STEPS;
- }
- @Override
- public RWboolean CMD_AMC_LOADCONF() {
- return CMD_AMC_LOADCONF;
- }
- @Override
- public RWboolean CMD_AMC_M1ABSPOS() {
- return CMD_AMC_M1ABSPOS;
- }
- @Override
- public RWboolean CMD_AMC_M2ABSPOS() {
- return CMD_AMC_M2ABSPOS;
- }
- @Override
- public RWboolean CMD_AMC_CALIBRATE_M1() {
- return CMD_AMC_CALIBRATE_M1;
- }
- @Override
- public RWboolean CMD_AMC_ERROR_RESET() {
- return CMD_AMC_ERROR_RESET;
- }
- private ROdouble createROdoubleProp(String name) throws PropertyInitializationFailed {
- ROdoubleImpl impl = new ROdoubleImpl(name, this, dataAccess.get(name));
- return ROdoubleHelper.narrow(this.registerProperty(impl, new ROdoublePOATie(impl)));
- }
- private ROfloat createROfloatProp(String name) throws PropertyInitializationFailed {
- ROfloatImpl impl = new ROfloatImpl(name, this, dataAccess.get(name));
- return ROfloatHelper.narrow(this.registerProperty(impl, new ROfloatPOATie(impl)));
- }
- private ROstring createROstringProp(String name) throws PropertyInitializationFailed {
- ROstringImpl impl = new ROstringImpl(name, this, dataAccess.get(name));
- return ROstringHelper.narrow(this.registerProperty(impl, new ROstringPOATie(impl)));
- }
- private ROlong createROlongProp(String name) throws PropertyInitializationFailed {
- ROlongImpl impl = new ROlongImpl(name, this, dataAccess.get(name));
- return ROlongHelper.narrow(this.registerProperty(impl, new ROlongPOATie(impl)));
- }
- private ROlongLong createROlongLongProp(String name) throws PropertyInitializationFailed {
- ROlongLongImpl impl = new ROlongLongImpl(name, this, dataAccess.get(name));
- return ROlongLongHelper.narrow(this.registerProperty(impl, new ROlongLongPOATie(impl)));
- }
- private ROuLongLong createROuLongLongProp(String name) throws PropertyInitializationFailed {
- ROuLongLongImpl impl = new ROuLongLongImpl(name, this, dataAccess.get(name));
- return ROuLongLongHelper.narrow(this.registerProperty(impl, new ROuLongLongPOATie(impl)));
- }
- private RWuLongLong createRWuLongLongProp(String name) throws PropertyInitializationFailed {
- RWuLongLongImpl impl = new RWuLongLongImpl(name, this, dataAccess.get(name));
- return RWuLongLongHelper.narrow(this.registerProperty(impl, new RWuLongLongPOATie(impl)));
- }
- private ROboolean createRObooleanProp(String name) throws PropertyInitializationFailed {
- RObooleanImpl impl = new RObooleanImpl(name, this, dataAccess.get(name));
- return RObooleanHelper.narrow(this.registerProperty(impl, new RObooleanPOATie(impl)));
- }
- private RWdouble createRWdoubleProp(String name) throws PropertyInitializationFailed {
- RWdoubleImpl impl = new RWdoubleImpl(name, this, dataAccess.get(name));
- return RWdoubleHelper.narrow(this.registerProperty(impl, new RWdoublePOATie(impl)));
- }
- private RWfloat createRWfloatProp(String name) throws PropertyInitializationFailed {
- RWfloatImpl impl = new RWfloatImpl(name, this, dataAccess.get(name));
- return RWfloatHelper.narrow(this.registerProperty(impl, new RWfloatPOATie(impl)));
- }
- private RWstring createRWstringProp(String name) throws PropertyInitializationFailed {
- RWstringImpl impl = new RWstringImpl(name, this, dataAccess.get(name));
- return RWstringHelper.narrow(this.registerProperty(impl, new RWstringPOATie(impl)));
- }
- private RWlong createRWlongProp(String name) throws PropertyInitializationFailed {
- RWlongImpl impl = new RWlongImpl(name, this, dataAccess.get(name));
- return RWlongHelper.narrow(this.registerProperty(impl, new RWlongPOATie(impl)));
- }
- private RWlongLong createRWlongLongProp(String name) throws PropertyInitializationFailed {
- RWlongLongImpl impl = new RWlongLongImpl(name, this, dataAccess.get(name));
- return RWlongLongHelper.narrow(this.registerProperty(impl, new RWlongLongPOATie(impl)));
- }
- private RWboolean createRWbooleanProp(String name) throws PropertyInitializationFailed {
- RWbooleanImpl impl = new RWbooleanImpl(name, this, dataAccess.get(name));
- return RWbooleanHelper.narrow(this.registerProperty(impl, new RWbooleanPOATie(impl)));
- }
- private ROlongSeq createROlongSeqProp(String name) throws PropertyInitializationFailed {
- ROlongSeqImpl impl = new ROlongSeqImpl(name, this, dataAccess.get(name));
- return ROlongSeqHelper.narrow(this.registerProperty(impl, new ROlongSeqPOATie(impl)));
- }
- private RWlongSeq createRWlongSeqProp(String name) throws PropertyInitializationFailed {
- RWlongSeqImpl impl = new RWlongSeqImpl(name, this, dataAccess.get(name));
- return RWlongSeqHelper.narrow(this.registerProperty(impl, new RWlongSeqPOATie(impl)));
- }
- private ROfloatSeq createROfloatSeqProp(String name) throws PropertyInitializationFailed {
- ROfloatSeqImpl impl = new ROfloatSeqImpl(name, this, dataAccess.get(name));
- return ROfloatSeqHelper.narrow(this.registerProperty(impl, new ROfloatSeqPOATie(impl)));
- }
- private RWfloatSeq createRWfloatSeqProp(String name) throws PropertyInitializationFailed {
- RWfloatSeqImpl impl = new RWfloatSeqImpl(name, this, dataAccess.get(name));
- return RWfloatSeqHelper.narrow(this.registerProperty(impl, new RWfloatSeqPOATie(impl)));
- }
- private ROdoubleSeq createROdoubleSeqProp(String name) throws PropertyInitializationFailed {
- ROdoubleSeqImpl impl = new ROdoubleSeqImpl(name, this, dataAccess.get(name));
- return ROdoubleSeqHelper.narrow(this.registerProperty(impl, new ROdoubleSeqPOATie(impl)));
- }
- private RWdoubleSeq createRWdoubleSeqProp(String name) throws PropertyInitializationFailed {
- RWdoubleSeqImpl impl = new RWdoubleSeqImpl(name, this, dataAccess.get(name));
- return RWdoubleSeqHelper.narrow(this.registerProperty(impl, new RWdoubleSeqPOATie(impl)));
- }
- private ROstringSeq createROstringSeqProp(String name) throws PropertyInitializationFailed {
- ROstringSeqImpl impl = new ROstringSeqImpl(name, this, dataAccess.get(name));
- return ROstringSeqHelper.narrow(this.registerProperty(impl, new ROstringSeqPOATie(impl)));
- }
-
- @Override
- public int GET_AMC_MAXTEMPWARNING_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (MAXTEMPWARNING_GETVAR()!=null){
- val=MAXTEMPWARNING_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: MAXTEMPWARNING_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: MAXTEMPWARNING_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property MAXTEMPWARNING_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int[] GET_AMC_M1TEMPWARNING_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M1TEMPWARNING_GETVAR().get_sync(c);
- }
- @Override
- public int[] GET_AMC_M2TEMPWARNING_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M2TEMPWARNING_GETVAR().get_sync(c);
- }
- @Override
- public int GET_AMC_MAXPOWRCONSUMP_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (MAXPOWRCONSUMP_GETVAR()!=null){
- val=MAXPOWRCONSUMP_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: MAXPOWRCONSUMP_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: MAXPOWRCONSUMP_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property MAXPOWRCONSUMP_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public double[] GET_AMC_M1POS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M1POS_GETVAR().get_sync(c);
- }
- @Override
- public double[] GET_AMC_M2POS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M2POS_GETVAR().get_sync(c);
- }
- @Override
- public double[] GET_AMC_M1POSABS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M1POSABS_GETVAR().get_sync(c);
- }
- @Override
- public double[] GET_AMC_M2POSABS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M2POSABS_GETVAR().get_sync(c);
- }
- @Override
- public double[] GET_AMC_M1ABSLIMITS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M1ABSLIMITS_GETVAR().get_sync(c);
- }
- @Override
- public double[] GET_AMC_M2ABSLIMITS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M2ABSLIMITS_GETVAR().get_sync(c);
- }
- @Override
- public int[] GET_AMC_M1ACTSTATUS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M1ACTSTATUS_GETVAR().get_sync(c);
- }
- @Override
- public int[] GET_AMC_M1ERRORSTS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M1ERRORSTS_GETVAR().get_sync(c);
- }
- @Override
- public int[] GET_AMC_M2ACTSTATUS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M2ACTSTATUS_GETVAR().get_sync(c);
- }
- @Override
- public int[] GET_AMC_M2ERRORSTS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return M2ERRORSTS_GETVAR().get_sync(c);
- }
- @Override
- public int GET_AMC_ETHERCATERROR_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (ETHERCATERROR_GETVAR()!=null){
- val=ETHERCATERROR_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ETHERCATERROR_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ETHERCATERROR_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ETHERCATERROR_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int GET_AMC_SWVERSION_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (SWVERSION_GETVAR()!=null){
- val=SWVERSION_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: SWVERSION_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: SWVERSION_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property SWVERSION_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int GET_AMC_CANOPEN_STATUS_M1_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (CANOPEN_STATUS_M1_GETVAR()!=null){
- val=CANOPEN_STATUS_M1_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: CANOPEN_STATUS_M1_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: CANOPEN_STATUS_M1_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property CANOPEN_STATUS_M1_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int GET_AMC_CANOPEN_STATUS_M2_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (CANOPEN_STATUS_M2_GETVAR()!=null){
- val=CANOPEN_STATUS_M2_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: CANOPEN_STATUS_M2_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: CANOPEN_STATUS_M2_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property CANOPEN_STATUS_M2_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int[] GET_AMC_ENDAT_STATUS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- return ENDAT_STATUS_GETVAR().get_sync(c);
- }
- @Override
- public int GET_AMC_ENCODERPOS_1_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (ENCODERPOS_1_GETVAR()!=null){
- val=ENCODERPOS_1_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ENCODERPOS_1_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ENCODERPOS_1_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ENCODERPOS_1_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int GET_AMC_ENCODERPOS_2_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (ENCODERPOS_2_GETVAR()!=null){
- val=ENCODERPOS_2_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ENCODERPOS_2_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ENCODERPOS_2_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ENCODERPOS_2_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int GET_AMC_ENCODERPOS_3_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (ENCODERPOS_3_GETVAR()!=null){
- val=ENCODERPOS_3_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ENCODERPOS_3_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ENCODERPOS_3_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ENCODERPOS_3_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int GET_AMC_STATUS_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (STATUS_GETVAR()!=null){
- val=STATUS_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: STATUS_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: STATUS_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property STATUS_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int GET_AMC_ERROR_NUMBER_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (ERROR_NUMBER_GETVAR()!=null){
- val=ERROR_NUMBER_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ERROR_NUMBER_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ERROR_NUMBER_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ERROR_NUMBER_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public String GET_AMC_ERROR_INFORMATION_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- String val = null;
- if (ERROR_INFORMATION_GETVAR()!=null){
- val=ERROR_INFORMATION_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ERROR_INFORMATION_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ERROR_INFORMATION_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ERROR_INFORMATION_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public String GET_AMC_ERROR_RECOVERED_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- String val = null;
- if (ERROR_RECOVERED_GETVAR()!=null){
- val=ERROR_RECOVERED_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ERROR_RECOVERED_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ERROR_RECOVERED_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ERROR_RECOVERED_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public int GET_AMC_ERROR_NUMBER_RECOVERED_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val = 0;
- if (ERROR_NUMBER_RECOVERED_GETVAR()!=null){
- val=ERROR_NUMBER_RECOVERED_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ERROR_NUMBER_RECOVERED_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ERROR_NUMBER_RECOVERED_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ERROR_NUMBER_RECOVERED_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public boolean GET_AMC_ERROR_NUMBER_OUTOFRANGE_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- boolean val = false;
- if (ERROR_NUMBER_OUTOFRANGE_GETVAR()!=null){
- val=ERROR_NUMBER_OUTOFRANGE_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ERROR_NUMBER_OUTOFRANGE_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ERROR_NUMBER_OUTOFRANGE_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ERROR_NUMBER_OUTOFRANGE_GETVAR is not initialized");
- }
- return val;
- }
- @Override
- public boolean GET_AMC_COMMAND_ACCEPTED_GETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- boolean val = false;
- if (COMMAND_ACCEPTED_GETVAR()!=null){
- val=COMMAND_ACCEPTED_GETVAR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: COMMAND_ACCEPTED_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: COMMAND_ACCEPTED_GETVAR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property COMMAND_ACCEPTED_GETVAR is not initialized");
- }
- return val;
- }
-
-@Override
-public double[] GET_AMC_M1DELTA_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double[] val = null;
- if (M1DELTA_SETVAR()!=null){
- val = M1DELTA_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: M1DELTA_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- return val;
-}
-
-@Override
-public void SET_AMC_M1DELTA_SETCMD(double[] arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- if (M1DELTA_SETVAR()!=null){
- M1DELTA_SETVAR().set_sync(arg0);
- m_logger.info("set M1DELTA_SETVAR property to '" + arg0 + "'.");
- }else{
- m_logger.log(Level.SEVERE,"Property is not Initialized");
- }
-}
-@Override
-public double[] GET_AMC_M2DELTA_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double[] val = null;
- if (M2DELTA_SETVAR()!=null){
- val = M2DELTA_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: M2DELTA_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- return val;
-}
-
-@Override
-public void SET_AMC_M2DELTA_SETCMD(double[] arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- if (M2DELTA_SETVAR()!=null){
- M2DELTA_SETVAR().set_sync(arg0);
- m_logger.info("set M2DELTA_SETVAR property to '" + arg0 + "'.");
- }else{
- m_logger.log(Level.SEVERE,"Property is not Initialized");
- }
-}
- @Override
- public int GET_AMC_MAXTEMPWARNING_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val;
- if (MAXTEMPWARNING_SETVAR()!=null){
- val = MAXTEMPWARNING_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: MAXTEMPWARNING_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_AMC_MAXTEMPWARNING_SETCMD(int arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (MAXTEMPWARNING_SETVAR()!=null){
- c=MAXTEMPWARNING_SETVAR().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set MAXTEMPWARNING_SETVAR property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set MAXTEMPWARNING_SETVAR property to '" + arg0 + "'.");
- }
- }
-
- }
-@Override
-public double[] GET_AMC_M1ABSLIMITS_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double[] val = null;
- if (M1ABSLIMITS_SETVAR()!=null){
- val = M1ABSLIMITS_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: M1ABSLIMITS_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- return val;
-}
-
-@Override
-public void SET_AMC_M1ABSLIMITS_SETCMD(double[] arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- if (M1ABSLIMITS_SETVAR()!=null){
- M1ABSLIMITS_SETVAR().set_sync(arg0);
- m_logger.info("set M1ABSLIMITS_SETVAR property to '" + arg0 + "'.");
- }else{
- m_logger.log(Level.SEVERE,"Property is not Initialized");
- }
-}
-@Override
-public double[] GET_AMC_M2ABSLIMITS_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double[] val = null;
- if (M2ABSLIMITS_SETVAR()!=null){
- val = M2ABSLIMITS_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: M2ABSLIMITS_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- return val;
-}
-
-@Override
-public void SET_AMC_M2ABSLIMITS_SETCMD(double[] arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- if (M2ABSLIMITS_SETVAR()!=null){
- M2ABSLIMITS_SETVAR().set_sync(arg0);
- m_logger.info("set M2ABSLIMITS_SETVAR property to '" + arg0 + "'.");
- }else{
- m_logger.log(Level.SEVERE,"Property is not Initialized");
- }
-}
-@Override
-public double[] GET_AMC_M1STEPS_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double[] val = null;
- if (M1STEPS_SETVAR()!=null){
- val = M1STEPS_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: M1STEPS_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- return val;
-}
-
-@Override
-public void SET_AMC_M1STEPS_SETCMD(double[] arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- if (M1STEPS_SETVAR()!=null){
- M1STEPS_SETVAR().set_sync(arg0);
- m_logger.info("set M1STEPS_SETVAR property to '" + arg0 + "'.");
- }else{
- m_logger.log(Level.SEVERE,"Property is not Initialized");
- }
-}
- @Override
- public String GET_AMC_CALDIR_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- String val;
- if (CALDIR_SETVAR()!=null){
- val = CALDIR_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: CALDIR_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return null;
- }
- @Override
- public void SET_AMC_CALDIR_SETCMD(String arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (CALDIR_SETVAR()!=null){
- c=CALDIR_SETVAR().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set CALDIR_SETVAR property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set CALDIR_SETVAR property to '" + arg0 + "'.");
- }
- }
-
- }
-@Override
-public int[] GET_AMC_M1ABSPOS_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int[] val = null;
- if (M1ABSPOS_SETVAR()!=null){
- val = M1ABSPOS_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: M1ABSPOS_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- return val;
-}
-
-@Override
-public void SET_AMC_M1ABSPOS_SETCMD(int[] arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- if (M1ABSPOS_SETVAR()!=null){
- M1ABSPOS_SETVAR().set_sync(arg0);
- m_logger.info("set M1ABSPOS_SETVAR property to '" + arg0 + "'.");
- }else{
- m_logger.log(Level.SEVERE,"Property is not Initialized");
- }
-}
-@Override
-public int[] GET_AMC_M2ABSPOS_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int[] val = null;
- if (M2ABSPOS_SETVAR()!=null){
- val = M2ABSPOS_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: M2ABSPOS_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- return val;
-}
-
-@Override
-public void SET_AMC_M2ABSPOS_SETCMD(int[] arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- if (M2ABSPOS_SETVAR()!=null){
- M2ABSPOS_SETVAR().set_sync(arg0);
- m_logger.info("set M2ABSPOS_SETVAR property to '" + arg0 + "'.");
- }else{
- m_logger.log(Level.SEVERE,"Property is not Initialized");
- }
-}
- @Override
- public int GET_AMC_ERROR_INFO_SETCMD(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- int val;
- if (ERROR_INFO_SETVAR()!=null){
- val = ERROR_INFO_SETVAR().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: ERROR_INFO_SETVAR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_AMC_ERROR_INFO_SETCMD(int arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (ERROR_INFO_SETVAR()!=null){
- c=ERROR_INFO_SETVAR().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set ERROR_INFO_SETVAR property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set ERROR_INFO_SETVAR property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public void MODE_AMC_INIT_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_INIT!=null){
- c=MODE_AMC_INIT().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_INIT_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_INIT_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_START_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_START!=null){
- c=MODE_AMC_START().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_START_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_START_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_OFFLINE_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_OFFLINE!=null){
- c=MODE_AMC_OFFLINE().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_OFFLINE_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_OFFLINE_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_STOP_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_STOP!=null){
- c=MODE_AMC_STOP().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_STOP_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_STOP_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_SHUTDOWN_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_SHUTDOWN!=null){
- c=MODE_AMC_SHUTDOWN().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_SHUTDOWN_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_SHUTDOWN_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_FALLBACK_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_FALLBACK!=null){
- c=MODE_AMC_FALLBACK().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_FALLBACK_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_FALLBACK_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_CALIBRATION_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_CALIBRATION!=null){
- c=MODE_AMC_CALIBRATION().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_CALIBRATION_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_CALIBRATION_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_RESTART_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_RESTART!=null){
- c=MODE_AMC_RESTART().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_RESTART_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_RESTART_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_MAINTENANCE_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_MAINTENANCE!=null){
- c=MODE_AMC_MAINTENANCE().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_MAINTENANCE_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_MAINTENANCE_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_REINIT_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_REINIT!=null){
- c=MODE_AMC_REINIT().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_REINIT_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_REINIT_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_MOVEM1_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_MOVEM1!=null){
- c=MODE_AMC_MOVEM1().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_MOVEM1_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_MOVEM1_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_MOVEM2_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_MOVEM2!=null){
- c=MODE_AMC_MOVEM2().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_MOVEM2_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_MOVEM2_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_AMC_MOVEM1STEPS_CMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MODE_AMC_MOVEM1STEPS!=null){
- c=MODE_AMC_MOVEM1STEPS().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_AMC_MOVEM1STEPS_CMD sent with value: '" + "true" + "'.");
- }
- }else{
- m_logger.info("MODE_AMC_MOVEM1STEPS_CMD sent with value: '" + "true" + "'.");
- }
- }
- }
-
-
- @Override
- public void CMD_AMC_LOADCONF_CMDCMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (CMD_AMC_LOADCONF!=null){
- c=CMD_AMC_LOADCONF().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_AMC_LOADCONF_CMDCMD sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_AMC_LOADCONF_CMDCMD sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_AMC_M1ABSPOS_CMDCMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (CMD_AMC_M1ABSPOS!=null){
- c=CMD_AMC_M1ABSPOS().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_AMC_M1ABSPOS_CMDCMD sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_AMC_M1ABSPOS_CMDCMD sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_AMC_M2ABSPOS_CMDCMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (CMD_AMC_M2ABSPOS!=null){
- c=CMD_AMC_M2ABSPOS().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_AMC_M2ABSPOS_CMDCMD sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_AMC_M2ABSPOS_CMDCMD sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_AMC_CALIBRATE_M1_CMDCMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (CMD_AMC_CALIBRATE_M1!=null){
- c=CMD_AMC_CALIBRATE_M1().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_AMC_CALIBRATE_M1_CMDCMD sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_AMC_CALIBRATE_M1_CMDCMD sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_AMC_ERROR_RESET_CMDCMD() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (CMD_AMC_ERROR_RESET!=null){
- c=CMD_AMC_ERROR_RESET().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_AMC_ERROR_RESET_CMDCMD sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_AMC_ERROR_RESET_CMDCMD sent with value: '" + "true" + "'.");
- }
- }
- }
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#cleanUp()
- */
- @Override
- public void cleanUp() throws AcsJComponentCleanUpEx {
-
- if (UaClientPool.isConnected(opc_url)){
- for (Map.Entry entry : dataAccess.entrySet()) {
- try {
- entry.getValue().close();
- m_logger.log(Level.FINE, "closing:" ,entry.getKey());
- }
- catch (IOException e) {
- m_logger.log(Level.SEVERE, "IOException: " , e);
- }
- }
- }
- try {
- super.cleanUp();
- }
- catch (AcsJComponentCleanUpEx e) {
- m_logger.log(Level.SEVERE, "AcsJComponentCleanUpEx: " , e);
- }
- UaClientPool.shutdown();
- }
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#getHwState()
- */
- @Override
- public tcshwState getHwState() {
- m_logger.info("Calling method: getHwState() ");
- return super.getHwState();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#getSerialNumber()
- */
- @Override
- public String getSerialNumber() {
- m_logger.info("Calling method: getSerialNumber() ");
- return super.getSerialNumber();
- }
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwConfigureAction()
- */
- @Override
- protected void hwConfigureAction() {
- // TODO Auto-generated method stub
- super.hwConfigureAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwDiagnosticAction()
- */
- @Override
- protected void hwDiagnosticAction() {
- // TODO Auto-generated method stub
- super.hwDiagnosticAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwInitializeAction()
- */
- @Override
- protected void hwInitializeAction() {
-
- super.hwInitializeAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwOperationalAction()
- */
- @Override
- protected void hwOperationalAction() {
- // TODO Auto-generated method stub
- super.hwOperationalAction();
- }
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwSimulationAction()
- */
- @Override
- protected void hwSimulationAction() {
-
- super.hwSimulationAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwStartAction()
- */
- @Override
- protected void hwStartAction() {
- // TODO Auto-generated method stub
- super.hwStartAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwStopAction()
- */
- @Override
- protected void hwStopAction() {
- // TODO Auto-generated method stub
- super.hwStopAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#initialize()
- */
- @Override
- public void initialize() throws ComponentLifecycleException, AcsJContainerServicesEx {
- // TODO Auto-generated method stub
- super.initialize();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#isMonitoring()
- */
- @Override
- public boolean isMonitoring() {
- m_logger.info("Calling method: isMonitoring() ");
- return super.isMonitoring();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#monitoringOff()
- */
- @Override
- public void monitoringOff() {
- m_logger.info("Calling method: MonitoringOff() ");
- super.monitoringOff();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#monitoringOn()
- */
- @Override
- public void monitoringOn() {
-
- super.monitoringOn();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwConfigure()
- */
-
- @Override
- public void tcshwConfigure() {
- m_logger.info("Calling method: tcshwConfigure() ");
- super.tcshwConfigure();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwInitialize()
- */
- @Override
- public void tcshwInitialize() {
- m_logger.info("Calling method: tcshwInitialize() ");
- super.tcshwInitialize();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwOperational()
- */
- @Override
- public void tcshwOperational() {
- m_logger.info("Calling method: tcshwOperational() ");
- super.tcshwOperational();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwStart()
- */
- @Override
- public void tcshwStart() {
- m_logger.info("Calling method: tcshwStart() ");
- super.tcshwStart();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwStop()
- */
-
- @Override
- public void tcshwStop() {
- m_logger.info("Calling method: tcshwStop() ");
- super.tcshwStop();
-
- }
-
- /**
- * Load a configuration value from CDB
- * @param cdbKey
- * @return Value from CDB
- * @throws NoSuchCharacteristic
- */
- private String loadFromCDB(String cdbKey) throws NoSuchCharacteristic {
- String s = characteristicModelImpl.getString(cdbKey);
- if (s == null) {
- throw new NoSuchCharacteristic();
- }
- return s;
- }
-}
diff --git a/test/tmp/Amc/src/astri/tcs/AmcImpl/AmcComponentHelper.java b/test/tmp/Amc/src/astri/tcs/AmcImpl/AmcComponentHelper.java
deleted file mode 100644
index 1829677426b0662d6f1b8e7f57414332669d0ca6..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/src/astri/tcs/AmcImpl/AmcComponentHelper.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * ALMA - Atacama Large Millimiter Array
- * (c) European Southern Observatory, 2002
- * Copyright by ESO (in the framework of the ALMA collaboration),
- * All rights reserved
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-package astri.tcs.AmcImpl;
-
-import java.util.logging.Logger;
-
-import org.omg.PortableServer.Servant;
-import alma.ACS.ACSComponentOperations;
-import alma.acs.component.ComponentLifecycle;
-import alma.acs.container.ComponentHelper;
-import astri.tcs.AmcOperations;
-import astri.tcs.AmcPOATie;
-import astri.tcs.AmcImpl.AmcImpl;
-
-/**
- * Component helper class.
- * Generated for convenience, but can be modified by the component developer.
- * Must therefore be treated like any other Java class (CVS, ...).
- *
- * To create an entry for your component in the Configuration Database,
- * copy the line below into a new entry in the file $ACS_CDB/MACI/Components/Components.xml
- * and modify the instance name of the component and the container:
- *
- * Name="Amc_1" Code="astri.tcs.AmcImpl.AmcComponentHelper" Type="IDL:astri/tcs/Amc:1.0" Container="frodoContainer" ImplLang="java"
- *
- * @author ASTRI-component-helper-generator-tool
- */
-public class AmcComponentHelper extends ComponentHelper
-{
- /**
- * Constructor
- * @param containerLogger logger used only by the parent class.
- */
- public AmcComponentHelper(Logger containerLogger)
- {
- super(containerLogger);
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#_createComponentImpl()
- */
- protected ComponentLifecycle _createComponentImpl()
- {
- return new AmcImpl();
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#_getPOATieClass()
- */
- protected Class extends Servant> _getPOATieClass()
- {
- return AmcPOATie.class;
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#getOperationsInterface()
- */
- protected Class extends ACSComponentOperations> _getOperationsInterface()
- {
- return AmcOperations.class;
- }
-
-}
diff --git a/test/tmp/Amc/src/astri/tcs/AmcImpl/AmcImpl.java b/test/tmp/Amc/src/astri/tcs/AmcImpl/AmcImpl.java
deleted file mode 100644
index 22b360332f82ed4f95052d177a39417049400df0..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/src/astri/tcs/AmcImpl/AmcImpl.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * ASTRI - Template based on ALMA Software Templates
- * (c) INAF/UNIPG, 2014
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY, without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- * ---------------------------------------------------------
- * | This is generated code! Do not modify this file. |
- * | Any changes will be lost when the file is re-generated. |
- * ---------------------------------------------------------
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: Amc Interface
- *
- */
-
-package astri.tcs.AmcImpl;
-
-import alma.acs.component.ComponentLifecycleException;
-import alma.acs.container.ContainerServices;
-import alma.maciErrType.wrappers.AcsJComponentCleanUpEx;
-import astri.tcs.AmcOperations;
-import astri.tcs.AmcBaseImpl.AmcBaseImpl;
-
-public class AmcImpl extends AmcBaseImpl implements AmcOperations{
-
- /* (non-Javadoc)
- * @see astri.tcs.AmcBaseImpl.AmcBaseImpl#initialize(alma.acs.container.ContainerServices)
- */
- @Override
- public void initialize(ContainerServices containerServices)
- throws ComponentLifecycleException {
- // TODO Auto-generated method stub
- super.initialize(containerServices);
- }
-
- /* (non-Javadoc)
- * @see astri.tcs.AmcBaseImpl.AmcBaseImpl#cleanUp()
- */
- @Override
- public void cleanUp() throws AcsJComponentCleanUpEx {
- // TODO Auto-generated method stub
- super.cleanUp();
- }
-
-}
diff --git a/test/tmp/Amc/test/CDB/MACI/Components/Amc/Amc.xml b/test/tmp/Amc/test/CDB/MACI/Components/Amc/Amc.xml
deleted file mode 100644
index 6038157fb74fbf672f0a8514bdc595bd0f529d5d..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/test/CDB/MACI/Components/Amc/Amc.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
diff --git a/test/tmp/Amc/test/CDB/MACI/Containers/frodoContainer/frodoContainer.xml b/test/tmp/Amc/test/CDB/MACI/Containers/frodoContainer/frodoContainer.xml
deleted file mode 100644
index 4f775714e2e7ffac47a5ab6133c8784208fd9a4a..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/test/CDB/MACI/Containers/frodoContainer/frodoContainer.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/test/tmp/Amc/test/CDB/MACI/Managers/Manager/Manager.xml b/test/tmp/Amc/test/CDB/MACI/Managers/Manager/Manager.xml
deleted file mode 100644
index d06f6e2998d7ccc3e2f84df0f94d686e942c7f9a..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/test/CDB/MACI/Managers/Manager/Manager.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/test/tmp/Amc/test/CDB/alma/Amc/Amc.xml b/test/tmp/Amc/test/CDB/alma/Amc/Amc.xml
deleted file mode 100644
index a699b39b475ae8b4fc59a834a419f821aaba5fb4..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/test/CDB/alma/Amc/Amc.xml
+++ /dev/null
@@ -1,885 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/tmp/Amc/test/setCDB.sh b/test/tmp/Amc/test/setCDB.sh
deleted file mode 100644
index ece906f638610a2ef5db5b0c8d94af10fc269513..0000000000000000000000000000000000000000
--- a/test/tmp/Amc/test/setCDB.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-ACS_CDB=/home/astrisw/pyGen/test/tmp/Amc/test/
-export ACS_CDB
diff --git a/test/tmp/testDevice/ChangeLog b/test/tmp/testDevice/ChangeLog
deleted file mode 100644
index a6bf091b522213900a055a4eb1a126d8732a01fb..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/ChangeLog
+++ /dev/null
@@ -1 +0,0 @@
-"@(#) $Id$"
diff --git a/test/tmp/testDevice/config/AddSQL_testDevice.sql b/test/tmp/testDevice/config/AddSQL_testDevice.sql
deleted file mode 100644
index 3e15c19288f31bffc4b3ed093933e37c6381a843..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/config/AddSQL_testDevice.sql
+++ /dev/null
@@ -1,446 +0,0 @@
-/*
- * ASTRI - Template for Assembly SQL based on ALMA Software Templates
- * (c) INAF/UNIPG, 2021
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: test device Interface
- * Filename: testDeviceBase.py
- *
- */
-
-
-
-
-
-
-/* Definiions */
-
-SET @LRUName='testDevice';
-SET @LRUFullName='Test';
-SET @LRUICD='ASTR-MAI';
-SET @LRUICDDate=1000000000000;
-SET @LRUDescription='test device Interface';
-SET @LRUNotes='';
-SET @ASSEMBLY='testDevice';
-SET @COMPTYPE= 'IDL:astri/tcs/testDevice:1.0';
-SET @PRODCODE='testDeviceImpl';
-SET @BASELEMENT='Telescope';
-SET @MP_Name =' ';
-SET @MP_Description=' ';
-SET @MP_Format='bb';
-SET @MP_DisplayUnits='gg';
-SET @MP_GraphMin=0;
-SET @MP_GraphMax=0;
-SET @MP_Interval=1;
-SET @MP_MinRange=0;
-SET @MP_MaxRange=0;
-SET @MP_DataType='string';
-SET @MP_DataUnits=@MP_DisplayUnits;
-SET @MP_archive_suppress='0';
-
-SELECT 'Transaction BEGIN';
-
-
-/* LRUType*/
-
-SELECT '1: find out wether LRUType Assembly has already been inserted.';
-
-
-
-drop procedure if exists lru;
-DELIMITER ;;
-create procedure lru() begin
- SELECT COUNT(lruName) INTO @lruNameCount FROM lruType WHERE lruName=@LRUName;
- IF (@lruNameCount > 0) THEN
- SELECT 'LRU already exists', @LRUName;
- ELSE
- SELECT 'No LRU',@LRUName, 'Inserting LRU';
- INSERT INTO LRUType VALUES (@LRUName, @LRUFullName,@LRUICD,@LRUICDDate,@LRUDescription,@LRUNotes);
- END IF;
-end ;;
-
-DELIMITER ;
-call lru;
-drop procedure lru;
--- SELECT * FROM lruType;
-
-/* ComponentType */
-SELECT '2: find out wether ComponentType has already been inserted.';
-drop procedure if exists comptype;
-DELIMITER ;;
-create procedure comptype() begin
- SELECT COUNT(componentTypeId) INTO @componentTypeIdCount FROM componentType WHERE idl= @COMPTYPE;
- IF (@componentTypeIdCount > 0) THEN
- SELECT 'COMPType already exists', @COMPTYPE;
- ELSE
- SELECT 'No COMPType',@COMPTYPE, 'Inserting COMPType';
- INSERT INTO ComponentType (idl) VALUES (@COMPTYPE);
- END IF;
-end ;;
-
-DELIMITER ;
-call comptype;
-drop procedure comptype;
-
-/* Assembly Type */
-SELECT '3: find out wether AssemblyType has already been inserted.';
-SELECT componenttypeid INTO @compTypeId FROM componentType WHERE idl=@COMPTYPE;
-drop procedure if exists assemblytype;
-DELIMITER ;;
-create procedure assemblytype() begin
- SELECT COUNT(assemblytypename) INTO @assemblyNameCount FROM assemblyType WHERE assemblytypename=@ASSEMBLY;
- IF (@assemblyNameCount > 0) THEN
- SELECT 'ASSEMBLYType already exists', @ASSEMBLY;
- ELSE
- SELECT 'No ASSEMBLYType',@ASSEMBLY, 'Inserting ASSEMBLYType';
-
- INSERT INTO AssemblyType (
- ASSEMBLYTYPENAME,
- BASEELEMENTTYPE,
- LRUNAME,
- FULLNAME,
- DESCRIPTION,
- NOTES,
- COMPONENTTYPEID,
- PRODUCTIONCODE,
- SIMULATEDCODE)
- VALUES (
- @ASSEMBLY,
- @BASELEMENT,
- @ASSEMBLY,
- @LRUFullName,
- @LRUDescription,
- '',
- @compTypeId,
- @PRODCODE,
- ''
- );
- END IF;
-end ;;
-DELIMITER ;
-call assemblytype;
-drop procedure assemblytype;
-
-
-/* DefaultComponent */
-SELECT '4: find out wether DefaultComponent has already been inserted.';
-SELECT defaultcomponentid INTO @defCompId FROM defaultcomponent WHERE assemblytypename=@ASSEMBLY;
-drop procedure if exists defcomp;
-DELIMITER ;;
-create procedure defcomp() begin
- DECLARE exit_loop INT DEFAULT 0;
- DECLARE defaultbacipropid1 INT DEFAULT 0;
- DECLARE defaultbacipropertyid1 INT DEFAULT 0;
- DECLARE propCur CURSOR FOR SELECT defaultbacipropid from defaultbaciproperty where defaultcomponentid = @defCompId;
-
- DECLARE CONTINUE HANDLER FOR NOT FOUND SET exit_loop = 1;
-
- OPEN propCur;
- SELECT count(defaultcomponentid) INTO @defaultComponentCount FROM defaultComponent WHERE assemblytypename=@ASSEMBLY;
- IF @defaultComponentCount=0 THEN
- SELECT 'Inserting defaultcomponent',@ASSEMBLY;
- SELECT MAX(defaultcomponentid) INTO @defCompId FROM defaultComponent;
- SET @defCompId=COALESCE(@defCompId,0)+1;
- INSERT INTO DefaultComponent (
- defaultcomponentid,
- ComponentTypeId,
- AssemblyTypeName,
- ImplLang,
- RealTime,
- Code,
- Path,
- IsAutostart,
- IsDefault,
- IsStandaloneDefined,
- KeepAliveTime,
- MinLogLevel,
- MinLogLevelLocal,
- XMLDoc
- )
- VALUES (
- @defCompId,
- @compTypeId,
- @ASSEMBLY,
- 'java',
- '0',
- 'Impl.java',
- 'Impl.java',
- '0',
- '0',
- '0',
- '5',
- '4',
- '4',
- ''
- );
- ELSE
- bp_loop:
- LOOP
- -- read the name from next row into the variables
- FETCH propCur INTO defaultbacipropid1;
- delete from defaultmonitorpoint where defaultbacipropertyid = defaultbacipropid1;
- delete from defaultbaciproperty where defaultbacipropid = defaultbacipropid1;
- -- check if the exit_loop flag has been set by mysql,
- -- close the cursor and exit the loop if it has.
- IF exit_loop THEN
- CLOSE propCur;
- LEAVE bp_loop;
- END IF;
- END LOOP bp_loop;
- END IF;
-end ;;
-DELIMITER ;
-call defcomp;
-drop procedure defcomp;
-
-SELECT '5: Inserting DefaultBaciProperties';
-drop procedure if exists defbaci;
-
-SELECT COUNT(propertyname) INTO @defaultBACIPropertyCount FROM defaultbaciProperty WHERE propertyname=@MP_Name AND defaultComponentId=@defCompId;
-
-DELIMITER ;;
-create procedure defbaci() begin
- IF @defaultBACIPropertyCount=0 THEN
- SELECT 'Property not found, it will be added...';
- SELECT 'Inserting BACI Property', @MP_Name;
- SELECT MAX(defaultBACIPropId) INTO @defaultBACIPropId FROM defaultbaciProperty;
- SET @defaultBACIPropId=COALESCE(@defaultBACIPropId,0)+1;
- INSERT INTO DefaultBACIProperty (
- DEFAULTBACIPROPID,
- DEFAULTCOMPONENTID,
- PROPERTYNAME,
- DESCRIPTION,
- `FORMAT`,
- UNITS,
- RESOLUTION,
- ARCHIVE_PRIORITY,
- ARCHIVE_MIN_INT,
- ARCHIVE_MAX_INT,
- DEFAULT_TIMER_TRIG,
- MIN_TIMER_TRIG,
- INITIALIZE_DEVIO,
- MIN_DELTA_TRIG,
- DEFAULT_VALUE,
- GRAPH_MIN,
- GRAPH_MAX,
- MIN_STEP,
- ARCHIVE_DELTA,
- ALARM_HIGH_ON,
- ALARM_LOW_ON,
- ALARM_HIGH_OFF,
- ALARM_LOW_OFF,
- ALARM_TIMER_TRIG,
- MIN_VALUE,
- MAX_VALUE,
- BITDESCRIPTION,
- WHENSET,
- WHENCLEARED,
- STATESDESCRIPTION,
- `CONDITION`,
- ALARM_ON,
- ALARM_OFF,
- `DATA`,
- ALARM_FAULT_FAMILY,
- ALARM_FAULT_MEMBER,
- ALARM_LEVEL,
- ARCHIVE_SUPPRESS,
- ARCHIVE_MECHANISM)
- VALUES (
- @defaultBACIPropId,
- @defCompId,
- @MP_Name,
- @MP_Description,
- @MP_Format,
- @MP_DisplayUnits,
- '0',
- '3',
- '0',
- @MP_Interval,
- '1',
- '1.',
- '0.',
- '0.',
- '0.',
- @MP_GraphMin,
- @MP_GraphMax,
- '0',
- '0',
- '0',
- '0',
- '0',
- '0',
- '0',
- '-2147483648',
- '2147483647',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '0',
- @MP_archive_suppress,
- 'monitor_collector'
- );
-
- ELSE
- SELECT 'Default BACI Property',@MP_NAME 'already exists... continue';
- SELECT defaultBACIPropId INTO @defaultBACIPropId FROM defaultbaciProperty WHERE propertyname=@MP_NAME and defaultComponentId=@defCompId;
- END IF;
- SELECT COUNT(monitorPointName) INTO @monitorPropCount FROM defaultMonitorPoint WHERE defaultbacipropertyId=@defaultBACIPropId;
- IF @monitorPropCount=0 THEN
- SELECT MAX(defaultMonitorPointId) INTO @defaultMonPointId FROM defaultMonitorPoint;
- SET @defaultMonPointId=COALESCE(@defaultMonPointId,0)+1;
- INSERT INTO DefaultMonitorPoint (
- DEFAULTMONITORPOINTID,
- DEFAULTBACIPROPERTYID,
- MONITORPOINTNAME,
- INDICE,
- DATATYPE,
- RCA,
- TERELATED,
- RAWDATATYPE,
- WORLDDATATYPE,
- UNITS,
- SCALE,
- OFFSET,
- MINRANGE,
- MAXRANGE,
- DESCRIPTION)
- VALUES(
- @defaultMonPointId,
- @defaultBACIPropId,
- @MP_Name,
- '0',
- @MP_DataType,
- 's=2',
- '0',
- @MP_DataType,
- @MP_DataType,
- @MP_DataUnits,
- '1',
- '0',
- @MP_MinRange,
- @MP_MaxRange,
- @MP_Description
- );
- ELSE
- SELECT 'WARNING: Found other Monitor Points associated with property',@MP_Name, 'Skipping unique monitor point insertion.';
- END IF;
-END ;;
-DELIMITER ;
-
-SET @MP_Name ='AZACTPOS';
-SET @MP_Description='The Monitor shows the current position of the AZ axis in Sky Coordinate System (zero point at North). The offset is included.Tpoint and Refraction contributions are not take into account.';
-SET @MP_Format='na';
-SET @MP_DisplayUnits='Deg';
-SET @MP_GraphMin=0;
-SET @MP_GraphMax=0;
-SET @MP_Interval=1;
-SET @MP_archive_suppress='0';
-SET @MP_MinRange=0;
-SET @MP_MaxRange=0;
-SET @MP_DataType='string';
-SET @MP_DataUnits=@MP_DisplayUnits;
-call defbaci;
-SET @MP_Name ='AZENCPOS';
-SET @MP_Description='The monitor shows the encoder position of the AZ axis without the offset (Encoder Coordinate System).';
-SET @MP_Format='na';
-SET @MP_DisplayUnits='Deg';
-SET @MP_GraphMin=0;
-SET @MP_GraphMax=0;
-SET @MP_Interval=1;
-SET @MP_archive_suppress='0';
-SET @MP_MinRange=0;
-SET @MP_MaxRange=0;
-SET @MP_DataType='string';
-SET @MP_DataUnits=@MP_DisplayUnits;
-call defbaci;
-SET @MP_Name ='AZTELPOS';
-SET @MP_Description='The Monitor shows the current position of the AZ axis in Telescope Coordinate System (zero point at East). The offset is included.';
-SET @MP_Format='na';
-SET @MP_DisplayUnits='Deg';
-SET @MP_GraphMin=0;
-SET @MP_GraphMax=0;
-SET @MP_Interval=1;
-SET @MP_archive_suppress='0';
-SET @MP_MinRange=0;
-SET @MP_MaxRange=0;
-SET @MP_DataType='string';
-SET @MP_DataUnits=@MP_DisplayUnits;
-call defbaci;
-SET @MP_Name ='AZACTVEL';
-SET @MP_Description='The monitor shows the current velocity of the AZ axis';
-SET @MP_Format='na';
-SET @MP_DisplayUnits='Deg/s';
-SET @MP_GraphMin=0;
-SET @MP_GraphMax=0;
-SET @MP_Interval=1;
-SET @MP_archive_suppress='0';
-SET @MP_MinRange=0;
-SET @MP_MaxRange=0;
-SET @MP_DataType='string';
-SET @MP_DataUnits=@MP_DisplayUnits;
-call defbaci;
-SET @MP_Name ='AZACTACC';
-SET @MP_Description='The monitor shows the current acceleration of the AZ axis';
-SET @MP_Format='na';
-SET @MP_DisplayUnits='Deg/s2';
-SET @MP_GraphMin=0;
-SET @MP_GraphMax=0;
-SET @MP_Interval=1;
-SET @MP_archive_suppress='0';
-SET @MP_MinRange=0;
-SET @MP_MaxRange=0;
-SET @MP_DataType='string';
-SET @MP_DataUnits=@MP_DisplayUnits;
-call defbaci;
-SET @MP_Name ='AZTPOINT_CORR';
-SET @MP_Description='This monitor shows the tpoint correction factor for the AZ axis applied at the target trajectory during tracking';
-SET @MP_Format='na';
-SET @MP_DisplayUnits='arcsec';
-SET @MP_GraphMin=0;
-SET @MP_GraphMax=0;
-SET @MP_Interval=1;
-SET @MP_archive_suppress='0';
-SET @MP_MinRange=0;
-SET @MP_MaxRange=0;
-SET @MP_DataType='string';
-SET @MP_DataUnits=@MP_DisplayUnits;
-call defbaci;
-SET @MP_Name ='ELTPOINT_CORR';
-SET @MP_Description='This monitor shows the tpoint correction factor for the EL axis applied at the target trajectory during tracking';
-SET @MP_Format='na';
-SET @MP_DisplayUnits='arcsec';
-SET @MP_GraphMin=0;
-SET @MP_GraphMax=0;
-SET @MP_Interval=1;
-SET @MP_archive_suppress='0';
-SET @MP_MinRange=0;
-SET @MP_MaxRange=0;
-SET @MP_DataType='string';
-SET @MP_DataUnits=@MP_DisplayUnits;
-call defbaci;
-SET @MP_Name ='REFRACTION_CORR';
-SET @MP_Description='This monitor shows the refraction correction factor for the EL axis applied at the target trajectory during tracking';
-SET @MP_Format='na';
-SET @MP_DisplayUnits='arcsec';
-SET @MP_GraphMin=0;
-SET @MP_GraphMax=0;
-SET @MP_Interval=1;
-SET @MP_archive_suppress='0';
-SET @MP_MinRange=0;
-SET @MP_MaxRange=0;
-SET @MP_DataType='string';
-SET @MP_DataUnits=@MP_DisplayUnits;
-call defbaci;
-drop procedure defbaci;
-SELECT 'Transaction END';
-
diff --git a/test/tmp/testDevice/config/CDB/schemas/testDeviceBase.xsd b/test/tmp/testDevice/config/CDB/schemas/testDeviceBase.xsd
deleted file mode 100644
index 51d535f3acfb1b3a967ee95e5f22c58c7e9c3b82..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/config/CDB/schemas/testDeviceBase.xsd
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/tmp/testDevice/config/testDeviceInterfaces.xls b/test/tmp/testDevice/config/testDeviceInterfaces.xls
deleted file mode 100644
index d803ce5e94b8da4ceca3e55714eea61ab3c638dd..0000000000000000000000000000000000000000
Binary files a/test/tmp/testDevice/config/testDeviceInterfaces.xls and /dev/null differ
diff --git a/test/tmp/testDevice/idl/testDevice.idl b/test/tmp/testDevice/idl/testDevice.idl
deleted file mode 100644
index d2e84e862cb3ee1dba25b02411608726c9ab0267..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/idl/testDevice.idl
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef testDevice_IDL
-#define testDevice_IDL
-/*
- * ASTRI - Template based on ALMA Software Templates
- * (c) INAF/UNIPG, 2014
- * ALAMA - Acatama Large Millimeter Array
- * (c) European Southern Observatory, 2010
- * (c) Associated Universities Inc., 2010
- * Copyright by ESO (in the framework of the ALMA collaboration),
- * Copyright by AUI (in the framework of the ALMA collaboration),
- * All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY, without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: test device Interface
- *
- */
-/**
- * Device interface to testDevice
- */
-
-#include
-
-#pragma prefix "astri"
-
-module tcs
-{
- interface testDevice: tcs::testDeviceBase
- {
- };
-};
-#endif /* testDevice_IDL */
diff --git a/test/tmp/testDevice/idl/testDeviceBase.midl b/test/tmp/testDevice/idl/testDeviceBase.midl
deleted file mode 100644
index 2d23b2707b5d77e025a09f145e1c84f6370c3d3b..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/idl/testDeviceBase.midl
+++ /dev/null
@@ -1,256 +0,0 @@
-/*
- * ASTRI - Template based on ALMA Software Templates
- * (c) INAF/UNIPG, 2014
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY, without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- * ---------------------------------------------------------
- * | This is generated code! Do not modify this file. |
- * | Any changes will be lost when the file is re-generated. |
- * ---------------------------------------------------------
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: test device Interface
- *
- */
-
-#ifndef testDeviceBase_idl
-#define testDeviceBase_idl
-
-// External interface to the hardware assembly: TCS::testDevice
-
-#include
-#include
-#include
-#include
-#include
-#include
-
-#pragma prefix "astri"
-
-
-module tcs {
- // test device Interface
- interface testDeviceBase:tcs::TCSHardwareDevice {
-
- // BACI Properties
-
- readonly attribute ACS::ROdouble AZACTPOS;
- readonly attribute ACS::ROdouble AZENCPOS;
- readonly attribute ACS::ROdouble AZTELPOS;
- readonly attribute ACS::ROdouble AZACTVEL;
- readonly attribute ACS::ROdouble AZACTACC;
- readonly attribute ACS::ROdouble AZTPOINT_CORR;
- readonly attribute ACS::ROdouble ELTPOINT_CORR;
- readonly attribute ACS::ROdouble REFRACTION_CORR;
-
- readonly attribute ACS::RWdouble AZMAXACC;
- readonly attribute ACS::RWdouble AZMAXDEC;
- readonly attribute ACS::RWdouble AZMAXVEL;
- readonly attribute ACS::RWdouble AZMAXPOS;
- readonly attribute ACS::RWdouble AZMAXJERK;
- readonly attribute ACS::RWdouble AZMINACC;
- readonly attribute ACS::RWdouble AZMINDEC;
- readonly attribute ACS::RWdouble AZMINVEL;
- readonly attribute ACS::RWdouble AZMINPOS;
- readonly attribute ACS::RWdouble AZMINJERK;
-
- readonly attribute ACS::RWlong MCS_CMD_TCU_COMMAND;
-
- readonly attribute ACS::RWboolean MCS_CMD_START_MOTION;
- readonly attribute ACS::RWboolean MCS_CMD_STOP_MOTION;
- readonly attribute ACS::RWboolean MCS_CMD_START_AZ_MOTION;
- readonly attribute ACS::RWboolean MCS_CMD_STOP_AZ_MOTION;
- readonly attribute ACS::RWboolean MCS_CMD_START_EL_MOTION;
- readonly attribute ACS::RWboolean MCS_CMD_STOP_EL_MOTION;
- readonly attribute ACS::RWboolean MCS_CMD_EMERGENCY_STOP;
- readonly attribute ACS::RWboolean MCS_CMD_AZ_BRAKE_ON;
- readonly attribute ACS::RWboolean MCS_CMD_EL_BRAKE_ON;
-
- // GET commands
-
- // The Monitor shows the current position of the AZ axis in Sky Coordinate System (zero point at North). The offset is included.Tpoint and Refraction contributions are not take into account.
- double GET_TCU_AZACTPOS (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- // The monitor shows the encoder position of the AZ axis without the offset (Encoder Coordinate System).
- double GET_TCU_AZENCPOS (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- // The Monitor shows the current position of the AZ axis in Telescope Coordinate System (zero point at East). The offset is included.
- double GET_TCU_AZTELPOS (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- // The monitor shows the current velocity of the AZ axis
- double GET_TCU_AZACTVEL (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- // The monitor shows the current acceleration of the AZ axis
- double GET_TCU_AZACTACC (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- // This monitor shows the tpoint correction factor for the AZ axis applied at the target trajectory during tracking
- double GET_TCU_AZTPOINT_CORR (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- // This monitor shows the tpoint correction factor for the EL axis applied at the target trajectory during tracking
- double GET_TCU_ELTPOINT_CORR (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- // This monitor shows the refraction correction factor for the EL axis applied at the target trajectory during tracking
- double GET_TCU_REFRACTION_CORR (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
-
- // SET commands
-
- // The command sets the max allowable acceleration of the Az axis
- double GET_TCU_AZMAXACC(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMAXACC(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
- // The command sets the max allowable deceleration of the Az axis
- double GET_TCU_AZMAXDEC(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMAXDEC(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
- // The command sets the max allowable velocity of the Az axis
- double GET_TCU_AZMAXVEL(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMAXVEL(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
- // The command sets the max allowable position of the Az axis in Telescope coordinate system
- double GET_TCU_AZMAXPOS(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMAXPOS(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
- // The command sets the max allowable jerk of the Az axis
- double GET_TCU_AZMAXJERK(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMAXJERK(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
- // The command sets the min allowable acceleration of the Az axis
- double GET_TCU_AZMINACC(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMINACC(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
- // The command sets the min allowable deceleration of the Az axis
- double GET_TCU_AZMINDEC(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMINDEC(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
- // The command sets the min allowable velocity of the Az axis
- double GET_TCU_AZMINVEL(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMINVEL(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
- // The command sets the min allowable position of the Az axis
- double GET_TCU_AZMINPOS(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMINPOS(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
- // The command sets the min allowable jerk of the Az axis
- double GET_TCU_AZMINJERK(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx);
- void SET_TCU_AZMINJERK(in double world) raises(TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // MODE commands
-
- // This mode activates all the procedures to bring the TCU in the LOADED status.
- void MODE_TCU_GO_LOADED() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This mode activates all the procedures to bring the TCU in the STANDBY status.
- void MODE_TCU_GO_STANDBY() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This mode activates all the procedures to bring the TCU in the ONLINE IDLE status.
- void MODE_TCU_GO_ONLINE() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This mode activates all the procedures to bring the TCU in the MAINTENANCE status.
- void MODE_TCU_GO_MAINTENANCE() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This mode activates all the procedures to bring the TCU in the SLEW status.
- void MODE_TCU_GO_SLEW() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This mode activates all the procedures to bring the TCU in the TRACK status.
- void MODE_TCU_GO_TRACK() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This mode activates all the procedures to bring the TCU in the CALIBRATION status.
- void MODE_TCU_GO_CALIBRATION() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This mode activates all the procedures to bring the TCU in the SIMULATION status.
- void MODE_TCU_GO_SIMULATION() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This mode sets the motion type to Local in order to move the Telescope with the MPB
- void MODE_TCU_GO_LOCAL() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This mode sets the motion type to Remote.
- void MODE_TCU_GO_REMOTE() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
-
- // CMD commands
-
- // This command starts the AZ and EL motion either for Slew and Jog motion modes
- void CMD_TCU_STARTMOTION() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command stops the AZ and EL motion either for Slew and Jog motion modes
- void CMD_TCU_STOPMOTION() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command starts the AZ motion either for Slew and Jog motion modes
- void CMD_TCU_STARTAZMOTION() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command stops the AZ motion either for Slew and Jog motion modes
- void CMD_TCU_STOPAZMOTION() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command starts the EL motion either for Slew and Jog motion modes
- void CMD_TCU_STARTELMOTION() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command stops the EL motion either for Slew and Jog motion modes
- void CMD_TCU_STOPELMOTION() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command stops manually EL and AZ motion in Slew and Tracking modes
- void CMD_TCU_EMERGENCYSTOP() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command inserts manually the AZ master brake.
- void CMD_TCU_AZBRAKEON() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command inserts manually the EL master brake.
- void CMD_TCU_ELBRAKEON() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command enables manually the AZ virtual axis for the loop control
- void CMD_TCU_AZ_GO_ONLINE() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command enables manually the EL virtual axis for the loop control
- void CMD_TCU_EL_GO_ONLINE() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command disables manually the AZ virtual axis for the loop control
- void CMD_TCU_AZ_GO_STANDBY() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command disables manually the EL virtual axis for the loop control
- void CMD_TCU_EL_GO_STANDBY() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command manually activate the ASTRO Loaded- Online state transition
- void CMD_TCU_ASTRO_GO_ONLINE() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- // This command manually activate the ASTRO Online- Loaded state transition
- void CMD_TCU_ASTRO_GO_LOADED() raises (TCSControlExceptions::INACTErrorEx,
- TCSControlExceptions::IllegalParameterErrorEx);
-
- void connectToDevice(in string opc_url);
- };
-};
-#endif
-
diff --git a/test/tmp/testDevice/src/Makefile b/test/tmp/testDevice/src/Makefile
deleted file mode 100644
index daa6d278722d62bdc7150830be81d7c62cb910eb..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/src/Makefile
+++ /dev/null
@@ -1,169 +0,0 @@
-#*******************************************************************************
-# PPPPPPPP
-# "@(#) $Id$"
-# Makefile of testDevice
-# who when what
-# -------- -------- ----------------------------------------------
-# ctadev 16/07/14 created
-
-#*******************************************************************************
-# This Makefile follows VLT Standards (see Makefile(5) for more).
-#*******************************************************************************
-# REMARKS
-# None
-#------------------------------------------------------------------------
-
-# user definable C-compilation flags
-#USER_CFLAGS =
-
-# additional include and library search paths
-#USER_INC =
-#USER_LIB =
-
-# MODULE CODE DESCRIPTION:
-# ------------------------
-# As a general rule: public file are "cleaned" and "installed"
-# local (_L) are not "installed".
-
-# C programs (public and local)
-# -----------------------------
-EXECUTABLES =
-EXECUTABLES_L =
-
-#
-xxxxx_OBJECTS =
-xxxxx_LDFLAGS =
-xxxxx_LIBS =
-
-# special compilation flags for single c sources
-#yyyyy_CFLAGS =
-
-# Includes (.h) files (public only)
-# ---------------------------------
-INCLUDES =
-
-# Libraries (public and local)
-# ----------------------------
-LIBRARIES =
-LIBRARIES_L =
-
-#
-lllll_OBJECTS =
-
-# Scripts (public and local)
-# ----------------------------
-SCRIPTS =
-SCRIPTS_L =
-
-# TCL scripts (public and local)
-# ------------------------------
-TCL_SCRIPTS =
-TCL_SCRIPTS_L =
-
-# Python stuff (public and local)
-# ----------------------------
-PY_SCRIPTS =
-PY_SCRIPTS_L =
-
-PY_MODULES =
-PY_MODULES_L =
-
-PY_PACKAGES = TCL
-PY_PACKAGES_L =
-pppppp_MODULES =
-
-#
-tttttt_OBJECTS =
-tttttt_TCLSH =
-tttttt_LIBS =
-
-# TCL libraries (public and local)
-# ------------------------------
-TCL_LIBRARIES =
-TCL_LIBRARIES_L =
-
-#
-tttlll_OBJECTS =
-
-# Configuration Database Files
-# ----------------------------
-CDB_SCHEMAS = testDeviceBase
-
-# IDL Files and flags
-IDL_FILES = testDeviceBase testDevice
-TAO_IDLFLAGS =
-USER_IDL =
-# Jarfiles and their directories
-JARFILES= testDevice_lib
-testDevice_lib_DIRS= astri
-jjj_EXTRAS=
-# For expressing dependencies between jarfiles (parallel builds)
-jjj_JLIBS=
-# java sources in Jarfile on/off
-DEBUG = on
-# ACS XmlIdl generation on/off
-XML_IDL=
-# Java Component Helper Classes generation on/off
-COMPONENT_HELPERS=
-# Java Entity Classes generation on/off
-XSDBIND=
-# Schema Config files for the above
-XSDBIND_INCLUDE=
-# man pages to be done
-# --------------------
-MANSECTIONS =
-MAN1 =
-MAN3 =
-MAN5 =
-MAN7 =
-MAN8 =
-
-# local man pages
-# ---------------
-MANl =
-
-# ASCII file to be converted into Framemaker-MIF
-# --------------------
-ASCII_TO_MIF =
-
-# other files to be installed
-#----------------------------
-INSTALL_FILES =
-
-# list of all possible C-sources (used to create automatic dependencies)
-# ------------------------------
-CSOURCENAMES = \
- $(foreach exe, $(EXECUTABLES) $(EXECUTABLES_L), $($(exe)_OBJECTS)) \
- $(foreach rtos, $(RTAI_MODULES) , $($(rtos)_OBJECTS)) \
- $(foreach lib, $(LIBRARIES) $(LIBRARIES_L), $($(lib)_OBJECTS))
-
-#>>>>> END OF standard rules
-
-# INCLUDE STANDARDS
-# -----------------
-
-MAKEDIRTMP := $(shell searchFile include/acsMakefile)
-ifneq ($(MAKEDIRTMP),\#error\#)
- MAKEDIR := $(MAKEDIRTMP)/include
- include $(MAKEDIR)/acsMakefile
-endif
-
-# TARGETS
-# -------
-all: do_all
- @echo " . . . 'all' done"
-
-clean : clean_all
- @echo " . . . clean done"
-
-clean_dist : clean_all clean_dist_all
- @echo " . . . clean_dist done"
-
-man : do_man
- @echo " . . . man page(s) done"
-
-install : install_all
- @echo " . . . installation done"
-
-
-#___oOo___
diff --git a/test/tmp/testDevice/src/TCL/__init__.py b/test/tmp/testDevice/src/TCL/__init__.py
deleted file mode 100644
index ad6193aea29b4b26749912ab04ba99a5cb42ca25..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/src/TCL/__init__.py
+++ /dev/null
@@ -1,16 +0,0 @@
-"""
- * ASTRI - Template for Hardware device init script based on ALMA Software Templates
- * (c) INAF/UNIPG, 2021
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: test device Interface
- * Filename: testDeviceBase.py
- *
-"""
-
-from pkgutil import extend_path
-__path__ = extend_path(__path__, __name__)
-
diff --git a/test/tmp/testDevice/src/TCL/testDeviceBase.py b/test/tmp/testDevice/src/TCL/testDeviceBase.py
deleted file mode 100644
index bbcd10baa29019b6e28bf382592703679f5e08cd..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/src/TCL/testDeviceBase.py
+++ /dev/null
@@ -1,417 +0,0 @@
-"""
- * ASTRI - Template for Hardware device scipt based on ALMA Software Templates
- * (c) INAF/UNIPG, 2021
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: test device Interface
- * Filename: testDeviceBase.py
- *
-"""
-
-"""
-This package is part of the Telescope Command Language (TCL).
-It contains the code used for accessing testDevice.
-"""
-
-import math
-import TCL.HardwareDevice
-
-from TCL.Container import getComponent
-from TCL.Container import getDynamicComponent
-from TCL.logging import getLogger
-
-class testDeviceBase(TCL.HardwareDevice.HardwareDevice):
-
- def __init__(self, telescopeName = None, componentName = None, stickyFlag = False):
- """
- The constructor creates a testDevice object or a group of testDevice
- objects.
-
- If the telescopeName is defined then this constructor references
- the component running on that . Alternativly the full
- componentName can be specified if desired.
-
- If telescopeName or componentName are specified as list then a set of
- testDevice components are created.
-
- The testDeviceBase class is a python proxy to the testDevice
- component. The component can be running before creating this
- proxy but if it is not it will be started. The object reference
- is obtained using a call to getComponent (stickyFlag = True)
- or to getComponentNonSticky (stickyFlag = False, default).
-
- An exception is thrown if there is a problem creating
- this component, establishing the connection to the
- previously mentioned hardware components, or if either
- both or neither telescopeName and componentName are specified.
-
- EXAMPLE:
- import TCL.testDeviceBase
- obj = TCL.testDeviceBase.testDeviceBase("ASTRI1")
-
- or
-
- import TCL.testDeviceBase
- obj = TCL.testDeviceBase.testDeviceBase(["ASTRI1", "ASTRI2",...])
- """
-
- self._devices = {}
-
- if ((isinstance(telescopeName, list) == True) or
- (isinstance(componentName, list) == True)):
- if isinstance(telescopeName, list) == True:
- if len(telescopeName) != 0:
- for idx in range(0, len(telescopeName)):
- self._devices["SCADA/" + telescopeName[idx] + "/"+"testDevice"] = ""
- if isinstance(componentName, list) == True:
- if len(componentName) != 0:
- for idx in range(0, len(componentName)):
- self._devices[componentName[idx]] = ""
- else:
- if((telescopeName == None) and (componentName == None)):
- raise (NameError, "missing telescopeName or componentName")
- elif((telescopeName != None) and (componentName != None)):
- raise (NameError, "missing telescopeName or componentName")
-
- if telescopeName != None:
- self._devices["SCADA/" + telescopeName + "/"+"testDevice"] = ""
-
- if componentName != None:
- self._devices[componentName] = ""
-
- for key, val in self._devices.items():
- TCL.HardwareDevice.HardwareDevice.__init__(self, key, stickyFlag)
- self._devices[key] = self._HardwareDevice__hw
- self.__logger = getLogger()
-
- def __del__(self):
- for key, val in self._devices.items():
- instance = self._devices[key]
- del(instance)
- TCL.HardwareDevice.HardwareDevice.__del__(self)
-
-
- # --------------------- Monitor Points ---------------------
-
- # AZACTPOS
- def GET_AZACTPOS(self):
- """
- The Monitor shows the current position of the AZ axis in Sky Coordinate System (zero point at North). The offset is included.Tpoint and Refraction contributions are not take into account.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_TCU_AZACTPOS()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZENCPOS
- def GET_AZENCPOS(self):
- """
- The monitor shows the encoder position of the AZ axis without the offset (Encoder Coordinate System).
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_TCU_AZENCPOS()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZTELPOS
- def GET_AZTELPOS(self):
- """
- The Monitor shows the current position of the AZ axis in Telescope Coordinate System (zero point at East). The offset is included.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_TCU_AZTELPOS()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZACTVEL
- def GET_AZACTVEL(self):
- """
- The monitor shows the current velocity of the AZ axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_TCU_AZACTVEL()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZACTACC
- def GET_AZACTACC(self):
- """
- The monitor shows the current acceleration of the AZ axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_TCU_AZACTACC()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZTPOINT_CORR
- def GET_AZTPOINT_CORR(self):
- """
- This monitor shows the tpoint correction factor for the AZ axis applied at the target trajectory during tracking
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_TCU_AZTPOINT_CORR()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ELTPOINT_CORR
- def GET_ELTPOINT_CORR(self):
- """
- This monitor shows the tpoint correction factor for the EL axis applied at the target trajectory during tracking
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_TCU_ELTPOINT_CORR()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # REFRACTION_CORR
- def GET_REFRACTION_CORR(self):
- """
- This monitor shows the refraction correction factor for the EL axis applied at the target trajectory during tracking
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].GET_TCU_REFRACTION_CORR()
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
-
-
- # --------------------- SET Points ---------------------
-
- # AZMAXACC
- def SET_AZMAXACC(self, arg):
-
- """
- The command sets the max allowable acceleration of the Az axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMAXACC(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZMAXDEC
- def SET_AZMAXDEC(self, arg):
-
- """
- The command sets the max allowable deceleration of the Az axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMAXDEC(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZMAXVEL
- def SET_AZMAXVEL(self, arg):
-
- """
- The command sets the max allowable velocity of the Az axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMAXVEL(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZMAXPOS
- def SET_AZMAXPOS(self, arg):
-
- """
- The command sets the max allowable position of the Az axis in Telescope coordinate system
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMAXPOS(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZMAXJERK
- def SET_AZMAXJERK(self, arg):
-
- """
- The command sets the max allowable jerk of the Az axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMAXJERK(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZMINACC
- def SET_AZMINACC(self, arg):
-
- """
- The command sets the min allowable acceleration of the Az axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMINACC(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZMINDEC
- def SET_AZMINDEC(self, arg):
-
- """
- The command sets the min allowable deceleration of the Az axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMINDEC(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZMINVEL
- def SET_AZMINVEL(self, arg):
-
- """
- The command sets the min allowable velocity of the Az axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMINVEL(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZMINPOS
- def SET_AZMINPOS(self, arg):
-
- """
- The command sets the min allowable position of the Az axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMINPOS(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # AZMINJERK
- def SET_AZMINJERK(self, arg):
-
- """
- The command sets the min allowable jerk of the Az axis
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- result[telName] = self._devices[key].SET_TCU_AZMINJERK(arg)
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
-
- # ----------------- List of Monitor Points ------------------
- def getMonitorList(self):
- """
- This method returns a list containing all monitor point
- names of this hardware device.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- monitorList = []
- monitorList.append("AZACTPOS --> xx.GET_AZACTPOS()")
- monitorList.append("AZENCPOS --> xx.GET_AZENCPOS()")
- monitorList.append("AZTELPOS --> xx.GET_AZTELPOS()")
- monitorList.append("AZACTVEL --> xx.GET_AZACTVEL()")
- monitorList.append("AZACTACC --> xx.GET_AZACTACC()")
- monitorList.append("AZTPOINT_CORR --> xx.GET_AZTPOINT_CORR()")
- monitorList.append("ELTPOINT_CORR --> xx.GET_ELTPOINT_CORR()")
- monitorList.append("REFRACTION_CORR --> xx.GET_REFRACTION_CORR()")
- result[telName] = monitorList
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
- # ----------------- List of SET Points ------------------
- def getSetList(self):
- """
- This method returns a list containing all set point
- names of this hardware device.
- """
- result = {}
- for key, val in self._devices.items():
- telName = key.rsplit("/")[1]
- setList = []
- setList.append("AZMAXACC --> xx.SET_AZMAXACC(val)")
- setList.append("AZMAXDEC --> xx.SET_AZMAXDEC(val)")
- setList.append("AZMAXVEL --> xx.SET_AZMAXVEL(val)")
- setList.append("AZMAXPOS --> xx.SET_AZMAXPOS(val)")
- setList.append("AZMAXJERK --> xx.SET_AZMAXJERK(val)")
- setList.append("AZMINACC --> xx.SET_AZMINACC(val)")
- setList.append("AZMINDEC --> xx.SET_AZMINDEC(val)")
- setList.append("AZMINVEL --> xx.SET_AZMINVEL(val)")
- setList.append("AZMINPOS --> xx.SET_AZMINPOS(val)")
- setList.append("AZMINJERK --> xx.SET_AZMINJERK(val)")
- result[telName] = setList
- values = [*result.values()]
- if len(self._devices) == 1:
- return values[0]
- return result
-
-
-
diff --git a/test/tmp/testDevice/src/astri/tcs/testDeviceBaseImpl/testDeviceBaseComponentHelper.java b/test/tmp/testDevice/src/astri/tcs/testDeviceBaseImpl/testDeviceBaseComponentHelper.java
deleted file mode 100644
index f4767dd955524ce88fa2c7bb678055ffad62c2c1..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/src/astri/tcs/testDeviceBaseImpl/testDeviceBaseComponentHelper.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * ALMA - Atacama Large Millimiter Array
- * (c) European Southern Observatory, 2002
- * Copyright by ESO (in the framework of the ALMA collaboration),
- * All rights reserved
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-package astri.tcs.testDeviceBaseImpl;
-
-import java.util.logging.Logger;
-
-import org.omg.PortableServer.Servant;
-import alma.ACS.ACSComponentOperations;
-import alma.acs.component.ComponentLifecycle;
-import alma.acs.container.ComponentHelper;
-import astri.tcs.testDeviceBaseOperations;
-import astri.tcs.testDeviceBasePOATie;
-import astri.tcs.testDeviceBaseImpl.testDeviceBaseImpl;
-
-/**
- * Component helper class.
- * Generated for convenience, but can be modified by the component developer.
- * Must therefore be treated like any other Java class (CVS, ...).
- *
- * To create an entry for your component in the Configuration Database,
- * copy the line below into a new entry in the file $ACS_CDB/MACI/Components/Components.xml
- * and modify the instance name of the component and the container:
- *
- * Name="testDeviceBase_1" Code="astri.tcs.testDeviceBaseImpl.testDeviceBaseComponentHelper" Type="IDL:astri.tcs.testDeviceBase:1.0" Container="frodoContainer" ImplLang="java"
- *
- * @author alma-component-helper-generator-tool
- */
-public class testDeviceBaseComponentHelper extends ComponentHelper
-{
- /**
- * Constructor
- * @param containerLogger logger used only by the parent class.
- */
- public testDeviceBaseComponentHelper(Logger containerLogger)
- {
- super(containerLogger);
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#_createComponentImpl()
- */
- protected ComponentLifecycle _createComponentImpl()
- {
- return new testDeviceBaseImpl();
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#_getPOATieClass()
- */
- protected Class extends Servant> _getPOATieClass()
- {
- return testDeviceBasePOATie.class;
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#getOperationsInterface()
- */
- protected Class extends ACSComponentOperations> _getOperationsInterface()
- {
- return testDeviceBaseOperations.class;
- }
-
-}
diff --git a/test/tmp/testDevice/src/astri/tcs/testDeviceBaseImpl/testDeviceBaseImpl.java b/test/tmp/testDevice/src/astri/tcs/testDeviceBaseImpl/testDeviceBaseImpl.java
deleted file mode 100644
index 3f0d91ef046b8c018f854e5f4c2213113c1942cc..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/src/astri/tcs/testDeviceBaseImpl/testDeviceBaseImpl.java
+++ /dev/null
@@ -1,1950 +0,0 @@
-/**
- * ASTRI - Template based on ALMA Software Templates
- * (c) INAF/UNIPG, 2014
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY, without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- * ---------------------------------------------------------
- * | This is generated code! Do not modify this file. |
- * | Any changes will be lost when the file is re-generated. |
- * ---------------------------------------------------------
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: test device Interface
- *
- */
-
-package astri.tcs.testDeviceBaseImpl;
-
-import alma.ACS.ROboolean;
-import alma.ACS.RObooleanHelper;
-import alma.ACS.RObooleanPOATie;
-import alma.ACS.impl.RObooleanImpl;
-import alma.ACS.ROdouble;
-import alma.ACS.ROdoubleHelper;
-import alma.ACS.ROdoublePOATie;
-import alma.ACS.impl.ROdoubleImpl;
-import alma.ACS.ROfloat;
-import alma.ACS.ROfloatHelper;
-import alma.ACS.ROfloatPOATie;
-import alma.ACS.impl.ROfloatImpl;
-import alma.ACS.ROlong;
-import alma.ACS.ROlongHelper;
-import alma.ACS.ROlongPOATie;
-import alma.ACS.impl.ROlongImpl;
-import alma.ACS.ROlongLong;
-import alma.ACS.ROlongLongHelper;
-import alma.ACS.ROlongLongPOATie;
-import alma.ACS.impl.ROlongLongImpl;
-import alma.ACS.ROstring;
-import alma.ACS.ROstringHelper;
-import alma.ACS.ROstringPOATie;
-import alma.ACS.impl.ROstringImpl;
-import alma.ACS.RWboolean;
-import alma.ACS.RWbooleanHelper;
-import alma.ACS.RWbooleanPOATie;
-import alma.ACS.impl.RWbooleanImpl;
-import alma.ACS.RWdouble;
-import alma.ACS.RWdoubleHelper;
-import alma.ACS.RWdoublePOATie;
-import alma.ACS.impl.RWdoubleImpl;
-import alma.ACS.RWfloat;
-import alma.ACS.RWfloatHelper;
-import alma.ACS.RWfloatPOATie;
-import alma.ACS.impl.RWfloatImpl;
-import alma.ACS.RWlong;
-import alma.ACS.RWlongHelper;
-import alma.ACS.RWlongPOATie;
-import alma.ACS.impl.RWlongImpl;
-import alma.ACS.RWlongLong;
-import alma.ACS.RWlongLongHelper;
-import alma.ACS.RWlongLongPOATie;
-import alma.ACS.impl.RWlongLongImpl;
-import alma.ACS.RWstring;
-import alma.ACS.RWstringHelper;
-import alma.ACS.RWstringPOATie;
-import alma.ACS.impl.RWstringImpl;
-
-import alma.ACS.ROdoubleSeq;
-import alma.ACS.ROdoubleSeqHelper;
-import alma.ACS.ROdoubleSeqPOATie;
-import alma.ACS.impl.ROdoubleSeqImpl;
-import alma.ACS.ROfloatSeq;
-import alma.ACS.ROfloatSeqHelper;
-import alma.ACS.ROfloatSeqPOATie;
-import alma.ACS.impl.ROfloatSeqImpl;
-import alma.ACS.ROlongSeq;
-import alma.ACS.ROlongSeqHelper;
-import alma.ACS.ROlongSeqPOATie;
-import alma.ACS.impl.ROlongSeqImpl;
-import alma.ACS.ROstringSeq;
-import alma.ACS.ROstringSeqHelper;
-import alma.ACS.ROstringSeqPOATie;
-import alma.ACS.impl.ROstringSeqImpl;
-import alma.ACS.RWdoubleSeq;
-import alma.ACS.RWdoubleSeqHelper;
-import alma.ACS.RWdoubleSeqPOATie;
-import alma.ACS.impl.RWdoubleSeqImpl;
-import alma.ACS.RWfloatSeq;
-import alma.ACS.RWfloatSeqHelper;
-import alma.ACS.RWfloatSeqPOATie;
-import alma.ACS.impl.RWfloatSeqImpl;
-import alma.ACS.RWlongSeq;
-import alma.ACS.RWlongSeqHelper;
-import alma.ACS.RWlongSeqPOATie;
-import alma.ACS.impl.RWlongSeqImpl;
-
-import alma.ACS.ROuLongLong;
-import alma.ACS.ROuLongLongHelper;
-import alma.ACS.ROuLongLongPOATie;
-import alma.ACS.impl.ROuLongLongImpl;
-
-import alma.ACS.RWuLongLong;
-import alma.ACS.RWuLongLongHelper;
-import alma.ACS.RWuLongLongPOATie;
-import alma.ACS.impl.RWuLongLongImpl;
-
-import org.omg.CORBA.LongHolder;
-
-import cta.acs.opcua.da.UaDataSupport;
-import astri.cta.acs.opcua.da.UaDataSupport.extensions.UaDataSupportInt16;
-import cta.acs.opcua.da.extension.UaDataSupportUInt16;
-import cta.acs.opcua.da.extension.UaDataSupportUInt32;
-
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.logging.Level;
-import java.io.IOException;
-
-import alma.ACS.NoSuchCharacteristic;
-import alma.ACS.jbaci.PropertyInitializationFailed;
-import alma.ACSErr.CompletionHolder;
-import alma.acs.component.ComponentLifecycleException;
-import alma.JavaContainerError.wrappers.AcsJContainerServicesEx;
-import alma.acs.container.ContainerServices;
-import alma.maciErrType.wrappers.AcsJComponentCleanUpEx;
-
-import astri.tcs.testDeviceBaseOperations;
-import astri.tcs.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl;
-import astri.tcs.TCSHardwareDevicePackage.tcshwState;
-import astri.TCSControlExceptions.INACTErrorEx;
-import astri.TCSControlExceptions.OPCUAErrorEx;
-import astri.TCSControlExceptions.IllegalParameterErrorEx;
-import alma.acs.exceptions.AcsJCompletion;
-import alma.acs.exceptions.AcsJException;
-import alma.acs.util.UTCUtility;
-
-import com.prosysopc.ua.ServiceException;
-import com.prosysopc.ua.StatusException;
-import cta.acs.opcua.da.UaClientPool;
-import alma.ACSErr.Completion;
-
-/**
- * @author Generated by: Gino Tosti
- * @Date: 21/06/16
- * @Description: test device Interface
- *
- */
-public class testDeviceBaseImpl extends TCSHardwareDeviceImpl implements testDeviceBaseOperations {
-
- // OPC-UA server url key in CDB
- private static final String KEY_OPC_URL = "opc_url";
- private static final String KEY_SERIAL_NUMBER = "SerialNumber";
- private static final String KEY_MONITOR_COLLECTOR = "MonitoringCollectorName";
- private String opc_url;
- private String serial_number;
- private String monitor_collector_name;
- private ROdouble AZACTPOS;
- private ROdouble AZENCPOS;
- private ROdouble AZTELPOS;
- private ROdouble AZACTVEL;
- private ROdouble AZACTACC;
- private ROdouble AZTPOINT_CORR;
- private ROdouble ELTPOINT_CORR;
- private ROdouble REFRACTION_CORR;
- private RWdouble AZMAXACC;
- private RWdouble AZMAXDEC;
- private RWdouble AZMAXVEL;
- private RWdouble AZMAXPOS;
- private RWdouble AZMAXJERK;
- private RWdouble AZMINACC;
- private RWdouble AZMINDEC;
- private RWdouble AZMINVEL;
- private RWdouble AZMINPOS;
- private RWdouble AZMINJERK;
- private RWlong MCS_CMD_TCU_COMMAND;
- private RWboolean MCS_CMD_START_MOTION;
- private RWboolean MCS_CMD_STOP_MOTION;
- private RWboolean MCS_CMD_START_AZ_MOTION;
- private RWboolean MCS_CMD_STOP_AZ_MOTION;
- private RWboolean MCS_CMD_START_EL_MOTION;
- private RWboolean MCS_CMD_STOP_EL_MOTION;
- private RWboolean MCS_CMD_EMERGENCY_STOP;
- private RWboolean MCS_CMD_AZ_BRAKE_ON;
- private RWboolean MCS_CMD_EL_BRAKE_ON;
- /*
- * ACS Properties and DataAccess
- */
- private Map dataAccess = new HashMap();
- /* (non-Javadoc)
- * @see alma.ACS.impl.CharacteristicComponentImpl#initialize(alma.acs.container.ContainerServices)
- */
- public void initialize(ContainerServices cs) throws ComponentLifecycleException {
- if (cs != null) {
- m_logger=cs.getLogger();
- m_logger.info("Inizializing testDevice component");
- super.initialize(cs);
- }
- /*
- * Loading OPC-UA configuration from CDB
- */
- try {
- opc_url = loadFromCDB(KEY_OPC_URL);
- } catch (NoSuchCharacteristic e) {
- m_logger.log(Level.SEVERE, "No OPC-UA server url found in CDB "+e);
- }
- try {
- monitor_collector_name = loadFromCDB(KEY_MONITOR_COLLECTOR);
- if(!monitor_collector_name.equals("TDB")){
- setMonitoringCollectorName(monitor_collector_name);
- }else{
- m_logger.log(Level.SEVERE, "MONITOR_COLLECTOR_NAME is not defined in CDB ");
- throw new ComponentLifecycleException();
- }
- } catch (NoSuchCharacteristic e) {
- m_logger.log(Level.SEVERE, "MONITOR_COLLECTOR_NAME found in CDB "+e);
- }
- try {
- serial_number = loadFromCDB(KEY_SERIAL_NUMBER);
- setSerialNumber(serial_number);
- } catch (NoSuchCharacteristic e) {
- m_logger.log(Level.SEVERE, "No SERIAL NUMBER found in CDB "+e);
- }
- try {
- UaClientPool.create(opc_url);
- UaClientPool.connect(opc_url);
- } catch (IOException e1) {
- m_logger.fine(e1.getMessage());
- throw new ComponentLifecycleException("Failed to connect to the server:"+opc_url);
- }
- if (UaClientPool.isConnected(opc_url)){
- try {
- createDataPoints();
- } catch (Exception e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- throw new ComponentLifecycleException("Failed to create properties"+e);
- }
- }
- }
-
- @Override
- public void connectToDevice(String opc_url){
-
- }
- public String getOpc_url() {
- return opc_url;
- }
-
- public void setOpc_url(String opc_url) {
- this.opc_url = opc_url;
- }
-
- private void createDataPoints() throws IllegalArgumentException,PropertyInitializationFailed, ServiceException, StatusException{
- try {
- dataAccess.put("AZACTPOS", new UaDataSupport(opc_url,"ns=4;s=MCS_MOTION_INFO.AZ_ACT_POS" ));
- AZACTPOS = createROdoubleProp("AZACTPOS");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("AZENCPOS", new UaDataSupport(opc_url,"ns=4;s=MCS_MOTION_INFO.AZ_ENC_POS" ));
- AZENCPOS = createROdoubleProp("AZENCPOS");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("AZTELPOS", new UaDataSupport(opc_url,"ns=4;s=MCS_MOTION_INFO.AZ_TEL_POS" ));
- AZTELPOS = createROdoubleProp("AZTELPOS");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("AZACTVEL", new UaDataSupport(opc_url,"ns=4;s=MCS_MOTION_INFO.AZ_ACT_VEL" ));
- AZACTVEL = createROdoubleProp("AZACTVEL");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("AZACTACC", new UaDataSupport(opc_url,"ns=4;s=MCS_MOTION_INFO.AZ_ACT_ACC" ));
- AZACTACC = createROdoubleProp("AZACTACC");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("AZTPOINT_CORR", new UaDataSupport(opc_url,"ns=4;s=MCS_POINTING_INFO.AZ_TPOINT_CORRECTION" ));
- AZTPOINT_CORR = createROdoubleProp("AZTPOINT_CORR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("ELTPOINT_CORR", new UaDataSupport(opc_url,"ns=4;s=MCS_POINTING_INFO.EL_TPOINT_CORRECTION" ));
- ELTPOINT_CORR = createROdoubleProp("ELTPOINT_CORR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try {
- dataAccess.put("REFRACTION_CORR", new UaDataSupport(opc_url,"ns=4;s=MCS_POINTING_INFO.REFRACTION_CORRECTION" ));
- REFRACTION_CORR = createROdoubleProp("REFRACTION_CORR");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMAXACC", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MAX_ACC" ));
- AZMAXACC = createRWdoubleProp("AZMAXACC");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMAXDEC", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MAX_DEC" ));
- AZMAXDEC = createRWdoubleProp("AZMAXDEC");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMAXVEL", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MAX_VEL" ));
- AZMAXVEL = createRWdoubleProp("AZMAXVEL");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMAXPOS", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MAX_POS" ));
- AZMAXPOS = createRWdoubleProp("AZMAXPOS");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMAXJERK", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MAX_JERK" ));
- AZMAXJERK = createRWdoubleProp("AZMAXJERK");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMINACC", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MIN_ACC" ));
- AZMINACC = createRWdoubleProp("AZMINACC");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMINDEC", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MIN_DEC" ));
- AZMINDEC = createRWdoubleProp("AZMINDEC");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMINVEL", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MIN_VEL" ));
- AZMINVEL = createRWdoubleProp("AZMINVEL");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMINPOS", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MIN_POS" ));
- AZMINPOS = createRWdoubleProp("AZMINPOS");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
- dataAccess.put("AZMINJERK", new UaDataSupport(opc_url,"ns=4;s=MCS_SET_LIMITS.AZ_MIN_JERK" ));
- AZMINJERK = createRWdoubleProp("AZMINJERK");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- try{
-
- dataAccess.put("MCS_CMD_TCU_COMMAND", new UaDataSupportInt16(opc_url,"ns=4;s=MCS_CMD.TCU_COMMAND" ));
- MCS_CMD_TCU_COMMAND = createRWlongProp("MCS_CMD_TCU_COMMAND");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("MCS_CMD_START_MOTION", new UaDataSupport(opc_url,"ns=4;s=MCS_CMD.START_MOTION" ));
- MCS_CMD_START_MOTION = createRWbooleanProp("MCS_CMD_START_MOTION");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("MCS_CMD_STOP_MOTION", new UaDataSupport(opc_url,"ns=4;s=MCS_CMD.STOP_MOTION" ));
- MCS_CMD_STOP_MOTION = createRWbooleanProp("MCS_CMD_STOP_MOTION");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("MCS_CMD_START_AZ_MOTION", new UaDataSupport(opc_url,"ns=4;s=MCS_CMD.START_AZ_MOTION" ));
- MCS_CMD_START_AZ_MOTION = createRWbooleanProp("MCS_CMD_START_AZ_MOTION");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("MCS_CMD_STOP_AZ_MOTION", new UaDataSupport(opc_url,"ns=4;s=MCS_CMD.STOP_AZ_MOTION" ));
- MCS_CMD_STOP_AZ_MOTION = createRWbooleanProp("MCS_CMD_STOP_AZ_MOTION");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("MCS_CMD_START_EL_MOTION", new UaDataSupport(opc_url,"ns=4;s=MCS_CMD.START_EL_MOTION" ));
- MCS_CMD_START_EL_MOTION = createRWbooleanProp("MCS_CMD_START_EL_MOTION");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("MCS_CMD_STOP_EL_MOTION", new UaDataSupport(opc_url,"ns=4;s=MCS_CMD.STOP_EL_MOTION" ));
- MCS_CMD_STOP_EL_MOTION = createRWbooleanProp("MCS_CMD_STOP_EL_MOTION");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("MCS_CMD_EMERGENCY_STOP", new UaDataSupport(opc_url,"ns=4;s=MCS_CMD.EMERGENCY_STOP" ));
- MCS_CMD_EMERGENCY_STOP = createRWbooleanProp("MCS_CMD_EMERGENCY_STOP");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("MCS_CMD_AZ_BRAKE_ON", new UaDataSupport(opc_url,"ns=4;s=MCS_CMD.AZ_BRAKE_ON" ));
- MCS_CMD_AZ_BRAKE_ON = createRWbooleanProp("MCS_CMD_AZ_BRAKE_ON");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
-try{
- dataAccess.put("MCS_CMD_EL_BRAKE_ON", new UaDataSupport(opc_url,"ns=4;s=MCS_CMD.EL_BRAKE_ON" ));
- MCS_CMD_EL_BRAKE_ON = createRWbooleanProp("MCS_CMD_EL_BRAKE_ON");
- } catch (IllegalArgumentException|PropertyInitializationFailed e){
- m_logger.log(Level.SEVERE, "Exception "+e);
- }
- }
- @Override
- public ROdouble AZACTPOS() {
- return AZACTPOS;
- }
- @Override
- public ROdouble AZENCPOS() {
- return AZENCPOS;
- }
- @Override
- public ROdouble AZTELPOS() {
- return AZTELPOS;
- }
- @Override
- public ROdouble AZACTVEL() {
- return AZACTVEL;
- }
- @Override
- public ROdouble AZACTACC() {
- return AZACTACC;
- }
- @Override
- public ROdouble AZTPOINT_CORR() {
- return AZTPOINT_CORR;
- }
- @Override
- public ROdouble ELTPOINT_CORR() {
- return ELTPOINT_CORR;
- }
- @Override
- public ROdouble REFRACTION_CORR() {
- return REFRACTION_CORR;
- }
- @Override
- public RWdouble AZMAXACC() {
- return AZMAXACC;
- }
- @Override
- public RWdouble AZMAXDEC() {
- return AZMAXDEC;
- }
- @Override
- public RWdouble AZMAXVEL() {
- return AZMAXVEL;
- }
- @Override
- public RWdouble AZMAXPOS() {
- return AZMAXPOS;
- }
- @Override
- public RWdouble AZMAXJERK() {
- return AZMAXJERK;
- }
- @Override
- public RWdouble AZMINACC() {
- return AZMINACC;
- }
- @Override
- public RWdouble AZMINDEC() {
- return AZMINDEC;
- }
- @Override
- public RWdouble AZMINVEL() {
- return AZMINVEL;
- }
- @Override
- public RWdouble AZMINPOS() {
- return AZMINPOS;
- }
- @Override
- public RWdouble AZMINJERK() {
- return AZMINJERK;
- }
- @Override
- public RWlong MCS_CMD_TCU_COMMAND() {
- return MCS_CMD_TCU_COMMAND;
- }
- @Override
- public RWboolean MCS_CMD_START_MOTION() {
- return MCS_CMD_START_MOTION;
- }
- @Override
- public RWboolean MCS_CMD_STOP_MOTION() {
- return MCS_CMD_STOP_MOTION;
- }
- @Override
- public RWboolean MCS_CMD_START_AZ_MOTION() {
- return MCS_CMD_START_AZ_MOTION;
- }
- @Override
- public RWboolean MCS_CMD_STOP_AZ_MOTION() {
- return MCS_CMD_STOP_AZ_MOTION;
- }
- @Override
- public RWboolean MCS_CMD_START_EL_MOTION() {
- return MCS_CMD_START_EL_MOTION;
- }
- @Override
- public RWboolean MCS_CMD_STOP_EL_MOTION() {
- return MCS_CMD_STOP_EL_MOTION;
- }
- @Override
- public RWboolean MCS_CMD_EMERGENCY_STOP() {
- return MCS_CMD_EMERGENCY_STOP;
- }
- @Override
- public RWboolean MCS_CMD_AZ_BRAKE_ON() {
- return MCS_CMD_AZ_BRAKE_ON;
- }
- @Override
- public RWboolean MCS_CMD_EL_BRAKE_ON() {
- return MCS_CMD_EL_BRAKE_ON;
- }
- private ROdouble createROdoubleProp(String name) throws PropertyInitializationFailed {
- ROdoubleImpl impl = new ROdoubleImpl(name, this, dataAccess.get(name));
- return ROdoubleHelper.narrow(this.registerProperty(impl, new ROdoublePOATie(impl)));
- }
- private ROfloat createROfloatProp(String name) throws PropertyInitializationFailed {
- ROfloatImpl impl = new ROfloatImpl(name, this, dataAccess.get(name));
- return ROfloatHelper.narrow(this.registerProperty(impl, new ROfloatPOATie(impl)));
- }
- private ROstring createROstringProp(String name) throws PropertyInitializationFailed {
- ROstringImpl impl = new ROstringImpl(name, this, dataAccess.get(name));
- return ROstringHelper.narrow(this.registerProperty(impl, new ROstringPOATie(impl)));
- }
- private ROlong createROlongProp(String name) throws PropertyInitializationFailed {
- ROlongImpl impl = new ROlongImpl(name, this, dataAccess.get(name));
- return ROlongHelper.narrow(this.registerProperty(impl, new ROlongPOATie(impl)));
- }
- private ROlongLong createROlongLongProp(String name) throws PropertyInitializationFailed {
- ROlongLongImpl impl = new ROlongLongImpl(name, this, dataAccess.get(name));
- return ROlongLongHelper.narrow(this.registerProperty(impl, new ROlongLongPOATie(impl)));
- }
- private ROuLongLong createROuLongLongProp(String name) throws PropertyInitializationFailed {
- ROuLongLongImpl impl = new ROuLongLongImpl(name, this, dataAccess.get(name));
- return ROuLongLongHelper.narrow(this.registerProperty(impl, new ROuLongLongPOATie(impl)));
- }
- private RWuLongLong createRWuLongLongProp(String name) throws PropertyInitializationFailed {
- RWuLongLongImpl impl = new RWuLongLongImpl(name, this, dataAccess.get(name));
- return RWuLongLongHelper.narrow(this.registerProperty(impl, new RWuLongLongPOATie(impl)));
- }
- private ROboolean createRObooleanProp(String name) throws PropertyInitializationFailed {
- RObooleanImpl impl = new RObooleanImpl(name, this, dataAccess.get(name));
- return RObooleanHelper.narrow(this.registerProperty(impl, new RObooleanPOATie(impl)));
- }
- private RWdouble createRWdoubleProp(String name) throws PropertyInitializationFailed {
- RWdoubleImpl impl = new RWdoubleImpl(name, this, dataAccess.get(name));
- return RWdoubleHelper.narrow(this.registerProperty(impl, new RWdoublePOATie(impl)));
- }
- private RWfloat createRWfloatProp(String name) throws PropertyInitializationFailed {
- RWfloatImpl impl = new RWfloatImpl(name, this, dataAccess.get(name));
- return RWfloatHelper.narrow(this.registerProperty(impl, new RWfloatPOATie(impl)));
- }
- private RWstring createRWstringProp(String name) throws PropertyInitializationFailed {
- RWstringImpl impl = new RWstringImpl(name, this, dataAccess.get(name));
- return RWstringHelper.narrow(this.registerProperty(impl, new RWstringPOATie(impl)));
- }
- private RWlong createRWlongProp(String name) throws PropertyInitializationFailed {
- RWlongImpl impl = new RWlongImpl(name, this, dataAccess.get(name));
- return RWlongHelper.narrow(this.registerProperty(impl, new RWlongPOATie(impl)));
- }
- private RWlongLong createRWlongLongProp(String name) throws PropertyInitializationFailed {
- RWlongLongImpl impl = new RWlongLongImpl(name, this, dataAccess.get(name));
- return RWlongLongHelper.narrow(this.registerProperty(impl, new RWlongLongPOATie(impl)));
- }
- private RWboolean createRWbooleanProp(String name) throws PropertyInitializationFailed {
- RWbooleanImpl impl = new RWbooleanImpl(name, this, dataAccess.get(name));
- return RWbooleanHelper.narrow(this.registerProperty(impl, new RWbooleanPOATie(impl)));
- }
- private ROlongSeq createROlongSeqProp(String name) throws PropertyInitializationFailed {
- ROlongSeqImpl impl = new ROlongSeqImpl(name, this, dataAccess.get(name));
- return ROlongSeqHelper.narrow(this.registerProperty(impl, new ROlongSeqPOATie(impl)));
- }
- private RWlongSeq createRWlongSeqProp(String name) throws PropertyInitializationFailed {
- RWlongSeqImpl impl = new RWlongSeqImpl(name, this, dataAccess.get(name));
- return RWlongSeqHelper.narrow(this.registerProperty(impl, new RWlongSeqPOATie(impl)));
- }
- private ROfloatSeq createROfloatSeqProp(String name) throws PropertyInitializationFailed {
- ROfloatSeqImpl impl = new ROfloatSeqImpl(name, this, dataAccess.get(name));
- return ROfloatSeqHelper.narrow(this.registerProperty(impl, new ROfloatSeqPOATie(impl)));
- }
- private RWfloatSeq createRWfloatSeqProp(String name) throws PropertyInitializationFailed {
- RWfloatSeqImpl impl = new RWfloatSeqImpl(name, this, dataAccess.get(name));
- return RWfloatSeqHelper.narrow(this.registerProperty(impl, new RWfloatSeqPOATie(impl)));
- }
- private ROdoubleSeq createROdoubleSeqProp(String name) throws PropertyInitializationFailed {
- ROdoubleSeqImpl impl = new ROdoubleSeqImpl(name, this, dataAccess.get(name));
- return ROdoubleSeqHelper.narrow(this.registerProperty(impl, new ROdoubleSeqPOATie(impl)));
- }
- private RWdoubleSeq createRWdoubleSeqProp(String name) throws PropertyInitializationFailed {
- RWdoubleSeqImpl impl = new RWdoubleSeqImpl(name, this, dataAccess.get(name));
- return RWdoubleSeqHelper.narrow(this.registerProperty(impl, new RWdoubleSeqPOATie(impl)));
- }
- private ROstringSeq createROstringSeqProp(String name) throws PropertyInitializationFailed {
- ROstringSeqImpl impl = new ROstringSeqImpl(name, this, dataAccess.get(name));
- return ROstringSeqHelper.narrow(this.registerProperty(impl, new ROstringSeqPOATie(impl)));
- }
-
- @Override
- public double GET_TCU_AZACTPOS(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val = 0;
- if (AZACTPOS()!=null){
- val=AZACTPOS().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: AZACTPOS:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: AZACTPOS:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property AZACTPOS is not initialized");
- }
- return val;
- }
- @Override
- public double GET_TCU_AZENCPOS(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val = 0;
- if (AZENCPOS()!=null){
- val=AZENCPOS().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: AZENCPOS:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: AZENCPOS:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property AZENCPOS is not initialized");
- }
- return val;
- }
- @Override
- public double GET_TCU_AZTELPOS(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val = 0;
- if (AZTELPOS()!=null){
- val=AZTELPOS().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: AZTELPOS:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: AZTELPOS:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property AZTELPOS is not initialized");
- }
- return val;
- }
- @Override
- public double GET_TCU_AZACTVEL(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val = 0;
- if (AZACTVEL()!=null){
- val=AZACTVEL().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: AZACTVEL:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: AZACTVEL:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property AZACTVEL is not initialized");
- }
- return val;
- }
- @Override
- public double GET_TCU_AZACTACC(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val = 0;
- if (AZACTACC()!=null){
- val=AZACTACC().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: AZACTACC:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: AZACTACC:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property AZACTACC is not initialized");
- }
- return val;
- }
- @Override
- public double GET_TCU_AZTPOINT_CORR(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val = 0;
- if (AZTPOINT_CORR()!=null){
- val=AZTPOINT_CORR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: AZTPOINT_CORR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: AZTPOINT_CORR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property AZTPOINT_CORR is not initialized");
- }
- return val;
- }
- @Override
- public double GET_TCU_ELTPOINT_CORR(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val = 0;
- if (ELTPOINT_CORR()!=null){
- val=ELTPOINT_CORR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: ELTPOINT_CORR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: ELTPOINT_CORR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property ELTPOINT_CORR is not initialized");
- }
- return val;
- }
- @Override
- public double GET_TCU_REFRACTION_CORR(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val = 0;
- if (REFRACTION_CORR()!=null){
- val=REFRACTION_CORR().get_sync(c);
- if (c.value != null) {
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c.value);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE,"failed read property!", compl.getAcsJException());
- }else{
- arg0.value=c.value.timeStamp;
- m_logger.info("read property: REFRACTION_CORR:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- }
- }else{
- m_logger.info("read property: REFRACTION_CORR:"+val+" at t="+ UTCUtility.getUTCDate(arg0.value/10000));
- }
- }else{
- m_logger.log(Level.SEVERE,"property REFRACTION_CORR is not initialized");
- }
- return val;
- }
-
- @Override
- public double GET_TCU_AZMAXACC(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMAXACC()!=null){
- val = AZMAXACC().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMAXACC:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMAXACC(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMAXACC()!=null){
- c=AZMAXACC().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMAXACC property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMAXACC property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public double GET_TCU_AZMAXDEC(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMAXDEC()!=null){
- val = AZMAXDEC().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMAXDEC:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMAXDEC(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMAXDEC()!=null){
- c=AZMAXDEC().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMAXDEC property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMAXDEC property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public double GET_TCU_AZMAXVEL(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMAXVEL()!=null){
- val = AZMAXVEL().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMAXVEL:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMAXVEL(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMAXVEL()!=null){
- c=AZMAXVEL().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMAXVEL property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMAXVEL property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public double GET_TCU_AZMAXPOS(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMAXPOS()!=null){
- val = AZMAXPOS().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMAXPOS:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMAXPOS(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMAXPOS()!=null){
- c=AZMAXPOS().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMAXPOS property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMAXPOS property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public double GET_TCU_AZMAXJERK(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMAXJERK()!=null){
- val = AZMAXJERK().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMAXJERK:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMAXJERK(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMAXJERK()!=null){
- c=AZMAXJERK().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMAXJERK property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMAXJERK property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public double GET_TCU_AZMINACC(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMINACC()!=null){
- val = AZMINACC().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMINACC:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMINACC(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMINACC()!=null){
- c=AZMINACC().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMINACC property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMINACC property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public double GET_TCU_AZMINDEC(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMINDEC()!=null){
- val = AZMINDEC().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMINDEC:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMINDEC(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMINDEC()!=null){
- c=AZMINDEC().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMINDEC property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMINDEC property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public double GET_TCU_AZMINVEL(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMINVEL()!=null){
- val = AZMINVEL().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMINVEL:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMINVEL(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMINVEL()!=null){
- c=AZMINVEL().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMINVEL property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMINVEL property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public double GET_TCU_AZMINPOS(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMINPOS()!=null){
- val = AZMINPOS().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMINPOS:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMINPOS(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMINPOS()!=null){
- c=AZMINPOS().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMINPOS property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMINPOS property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public double GET_TCU_AZMINJERK(LongHolder arg0) {
- CompletionHolder c = new CompletionHolder();
- double val;
- if (AZMINJERK()!=null){
- val = AZMINJERK().get_sync(c);
- arg0.value = c.value.timeStamp;
- m_logger.info("read property: AZMINJERK:"+val+" at t="+ UTCUtility.getUTCDate(UTCUtility.utcOmgToJava(arg0.value)));
- return val;
- }
- return 0;
- }
- @Override
- public void SET_TCU_AZMINJERK(double arg0) throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- if (AZMINJERK()!=null){
- c=AZMINJERK().set_sync(arg0);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("set AZMINJERK property to '" + arg0 + "'.");
- }
- }else{
- m_logger.info("set AZMINJERK property to '" + arg0 + "'.");
- }
- }
-
- }
- @Override
- public void MODE_TCU_GO_LOADED() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 100;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_LOADED sent with value: '" + "100" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_LOADED sent with value: '" + "100" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_TCU_GO_STANDBY() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 101;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_STANDBY sent with value: '" + "101" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_STANDBY sent with value: '" + "101" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_TCU_GO_ONLINE() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 102;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_ONLINE sent with value: '" + "102" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_ONLINE sent with value: '" + "102" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_TCU_GO_MAINTENANCE() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 103;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_MAINTENANCE sent with value: '" + "103" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_MAINTENANCE sent with value: '" + "103" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_TCU_GO_SLEW() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 104;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_SLEW sent with value: '" + "104" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_SLEW sent with value: '" + "104" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_TCU_GO_TRACK() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 105;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_TRACK sent with value: '" + "105" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_TRACK sent with value: '" + "105" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_TCU_GO_CALIBRATION() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 106;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_CALIBRATION sent with value: '" + "106" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_CALIBRATION sent with value: '" + "106" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_TCU_GO_SIMULATION() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 114;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_SIMULATION sent with value: '" + "114" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_SIMULATION sent with value: '" + "114" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_TCU_GO_LOCAL() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 108;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_LOCAL sent with value: '" + "108" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_LOCAL sent with value: '" + "108" + "'.");
- }
- }
- }
-
- @Override
- public void MODE_TCU_GO_REMOTE() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 109;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("MODE_TCU_GO_REMOTE sent with value: '" + "109" + "'.");
- }
- }else{
- m_logger.info("MODE_TCU_GO_REMOTE sent with value: '" + "109" + "'.");
- }
- }
- }
-
-
- @Override
- public void CMD_TCU_STARTMOTION() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MCS_CMD_START_MOTION!=null){
- c=MCS_CMD_START_MOTION().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_STARTMOTION sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_STARTMOTION sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_STOPMOTION() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MCS_CMD_STOP_MOTION!=null){
- c=MCS_CMD_STOP_MOTION().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_STOPMOTION sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_STOPMOTION sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_STARTAZMOTION() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MCS_CMD_START_AZ_MOTION!=null){
- c=MCS_CMD_START_AZ_MOTION().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_STARTAZMOTION sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_STARTAZMOTION sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_STOPAZMOTION() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MCS_CMD_STOP_AZ_MOTION!=null){
- c=MCS_CMD_STOP_AZ_MOTION().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_STOPAZMOTION sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_STOPAZMOTION sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_STARTELMOTION() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MCS_CMD_START_EL_MOTION!=null){
- c=MCS_CMD_START_EL_MOTION().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_STARTELMOTION sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_STARTELMOTION sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_STOPELMOTION() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MCS_CMD_STOP_EL_MOTION!=null){
- c=MCS_CMD_STOP_EL_MOTION().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_STOPELMOTION sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_STOPELMOTION sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_EMERGENCYSTOP() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MCS_CMD_EMERGENCY_STOP!=null){
- c=MCS_CMD_EMERGENCY_STOP().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_EMERGENCYSTOP sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_EMERGENCYSTOP sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_AZBRAKEON() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MCS_CMD_AZ_BRAKE_ON!=null){
- c=MCS_CMD_AZ_BRAKE_ON().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_AZBRAKEON sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_AZBRAKEON sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_ELBRAKEON() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- boolean val = true;
- if (MCS_CMD_EL_BRAKE_ON!=null){
- c=MCS_CMD_EL_BRAKE_ON().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_ELBRAKEON sent with value:'" + "true" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_ELBRAKEON sent with value: '" + "true" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_AZ_GO_ONLINE() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 110;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_AZ_GO_ONLINE sent with value:'" + "110" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_AZ_GO_ONLINE sent with value: '" + "110" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_EL_GO_ONLINE() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 111;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_EL_GO_ONLINE sent with value:'" + "111" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_EL_GO_ONLINE sent with value: '" + "111" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_AZ_GO_STANDBY() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 112;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_AZ_GO_STANDBY sent with value:'" + "112" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_AZ_GO_STANDBY sent with value: '" + "112" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_EL_GO_STANDBY() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 113;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_EL_GO_STANDBY sent with value:'" + "113" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_EL_GO_STANDBY sent with value: '" + "113" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_ASTRO_GO_ONLINE() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 120;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_ASTRO_GO_ONLINE sent with value:'" + "120" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_ASTRO_GO_ONLINE sent with value: '" + "120" + "'.");
- }
- }
- }
- @Override
- public void CMD_TCU_ASTRO_GO_LOADED() throws IllegalParameterErrorEx,INACTErrorEx {
- Completion c = new Completion();
- int val = 122;
- if (MCS_CMD_TCU_COMMAND!=null){
- c=MCS_CMD_TCU_COMMAND().set_sync(val);
- if(c!=null){
- AcsJCompletion compl = AcsJCompletion.fromCorbaCompletion(c);
- if (compl.isError()) {
- m_logger.log(Level.SEVERE, "failed set property!", compl.getAcsJException());
- try {
- throw compl.getAcsJException();
- } catch (AcsJException e) {
- e.printStackTrace();
- }
- }else{
- m_logger.info("CMD_TCU_ASTRO_GO_LOADED sent with value:'" + "122" + "'.");
- }
- }else{
- m_logger.info("CMD_TCU_ASTRO_GO_LOADED sent with value: '" + "122" + "'.");
- }
- }
- }
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#cleanUp()
- */
- @Override
- public void cleanUp() throws AcsJComponentCleanUpEx {
-
- if (UaClientPool.isConnected(opc_url)){
- for (Map.Entry entry : dataAccess.entrySet()) {
- try {
- entry.getValue().close();
- m_logger.log(Level.FINE, "closing:" ,entry.getKey());
- }
- catch (IOException e) {
- m_logger.log(Level.SEVERE, "IOException: " , e);
- }
- }
- }
- try {
- super.cleanUp();
- }
- catch (AcsJComponentCleanUpEx e) {
- m_logger.log(Level.SEVERE, "AcsJComponentCleanUpEx: " , e);
- }
- UaClientPool.shutdown();
- }
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#getHwState()
- */
- @Override
- public tcshwState getHwState() {
- m_logger.info("Calling method: getHwState() ");
- return super.getHwState();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#getSerialNumber()
- */
- @Override
- public String getSerialNumber() {
- m_logger.info("Calling method: getSerialNumber() ");
- return super.getSerialNumber();
- }
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwConfigureAction()
- */
- @Override
- protected void hwConfigureAction() {
- // TODO Auto-generated method stub
- super.hwConfigureAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwDiagnosticAction()
- */
- @Override
- protected void hwDiagnosticAction() {
- // TODO Auto-generated method stub
- super.hwDiagnosticAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwInitializeAction()
- */
- @Override
- protected void hwInitializeAction() {
-
- super.hwInitializeAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwOperationalAction()
- */
- @Override
- protected void hwOperationalAction() {
- // TODO Auto-generated method stub
- super.hwOperationalAction();
- }
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwSimulationAction()
- */
- @Override
- protected void hwSimulationAction() {
-
- super.hwSimulationAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwStartAction()
- */
- @Override
- protected void hwStartAction() {
- // TODO Auto-generated method stub
- super.hwStartAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#hwStopAction()
- */
- @Override
- protected void hwStopAction() {
- // TODO Auto-generated method stub
- super.hwStopAction();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#initialize()
- */
- @Override
- public void initialize() throws ComponentLifecycleException, AcsJContainerServicesEx {
- // TODO Auto-generated method stub
- super.initialize();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#isMonitoring()
- */
- @Override
- public boolean isMonitoring() {
- m_logger.info("Calling method: isMonitoring() ");
- return super.isMonitoring();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#monitoringOff()
- */
- @Override
- public void monitoringOff() {
- m_logger.info("Calling method: MonitoringOff() ");
- super.monitoringOff();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#monitoringOn()
- */
- @Override
- public void monitoringOn() {
-
- super.monitoringOn();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwConfigure()
- */
-
- @Override
- public void tcshwConfigure() {
- m_logger.info("Calling method: tcshwConfigure() ");
- super.tcshwConfigure();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwInitialize()
- */
- @Override
- public void tcshwInitialize() {
- m_logger.info("Calling method: tcshwInitialize() ");
- super.tcshwInitialize();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwOperational()
- */
- @Override
- public void tcshwOperational() {
- m_logger.info("Calling method: tcshwOperational() ");
- super.tcshwOperational();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwStart()
- */
- @Override
- public void tcshwStart() {
- m_logger.info("Calling method: tcshwStart() ");
- super.tcshwStart();
- }
-
- /* (non-Javadoc)
- * @see astri.TCS.TCSHardwareDeviceImpl.TCSHardwareDeviceImpl#tcshwStop()
- */
-
- @Override
- public void tcshwStop() {
- m_logger.info("Calling method: tcshwStop() ");
- super.tcshwStop();
-
- }
-
- /**
- * Load a configuration value from CDB
- * @param cdbKey
- * @return Value from CDB
- * @throws NoSuchCharacteristic
- */
- private String loadFromCDB(String cdbKey) throws NoSuchCharacteristic {
- String s = characteristicModelImpl.getString(cdbKey);
- if (s == null) {
- throw new NoSuchCharacteristic();
- }
- return s;
- }
-}
diff --git a/test/tmp/testDevice/src/astri/tcs/testDeviceImpl/testDeviceComponentHelper.java b/test/tmp/testDevice/src/astri/tcs/testDeviceImpl/testDeviceComponentHelper.java
deleted file mode 100644
index b9911980cd252ca9a8656d253004518a72c2b3df..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/src/astri/tcs/testDeviceImpl/testDeviceComponentHelper.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * ALMA - Atacama Large Millimiter Array
- * (c) European Southern Observatory, 2002
- * Copyright by ESO (in the framework of the ALMA collaboration),
- * All rights reserved
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-package astri.tcs.testDeviceImpl;
-
-import java.util.logging.Logger;
-
-import org.omg.PortableServer.Servant;
-import alma.ACS.ACSComponentOperations;
-import alma.acs.component.ComponentLifecycle;
-import alma.acs.container.ComponentHelper;
-import astri.tcs.testDeviceOperations;
-import astri.tcs.testDevicePOATie;
-import astri.tcs.testDeviceImpl.testDeviceImpl;
-
-/**
- * Component helper class.
- * Generated for convenience, but can be modified by the component developer.
- * Must therefore be treated like any other Java class (CVS, ...).
- *
- * To create an entry for your component in the Configuration Database,
- * copy the line below into a new entry in the file $ACS_CDB/MACI/Components/Components.xml
- * and modify the instance name of the component and the container:
- *
- * Name="testDevice_1" Code="astri.tcs.testDeviceImpl.testDeviceComponentHelper" Type="IDL:astri/tcs/testDevice:1.0" Container="frodoContainer" ImplLang="java"
- *
- * @author ASTRI-component-helper-generator-tool
- */
-public class testDeviceComponentHelper extends ComponentHelper
-{
- /**
- * Constructor
- * @param containerLogger logger used only by the parent class.
- */
- public testDeviceComponentHelper(Logger containerLogger)
- {
- super(containerLogger);
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#_createComponentImpl()
- */
- protected ComponentLifecycle _createComponentImpl()
- {
- return new testDeviceImpl();
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#_getPOATieClass()
- */
- protected Class extends Servant> _getPOATieClass()
- {
- return testDevicePOATie.class;
- }
-
- /**
- * @see alma.acs.container.ComponentHelper#getOperationsInterface()
- */
- protected Class extends ACSComponentOperations> _getOperationsInterface()
- {
- return testDeviceOperations.class;
- }
-
-}
diff --git a/test/tmp/testDevice/src/astri/tcs/testDeviceImpl/testDeviceImpl.java b/test/tmp/testDevice/src/astri/tcs/testDeviceImpl/testDeviceImpl.java
deleted file mode 100644
index d403f51b47da6ac8e82b8a889e21a17c06f9a8ac..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/src/astri/tcs/testDeviceImpl/testDeviceImpl.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * ASTRI - Template based on ALMA Software Templates
- * (c) INAF/UNIPG, 2014
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY, without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- * WARNING! DO NOT MODIFY THIS FILE!
- * ---------------------------------------------------------
- * | This is generated code! Do not modify this file. |
- * | Any changes will be lost when the file is re-generated. |
- * ---------------------------------------------------------
- *
- * Generated by: Gino Tosti
- * Date: 21/06/16
- * Description: test device Interface
- *
- */
-
-package astri.tcs.testDeviceImpl;
-
-import alma.acs.component.ComponentLifecycleException;
-import alma.acs.container.ContainerServices;
-import alma.maciErrType.wrappers.AcsJComponentCleanUpEx;
-import astri.tcs.testDeviceOperations;
-import astri.tcs.testDeviceBaseImpl.testDeviceBaseImpl;
-
-public class testDeviceImpl extends testDeviceBaseImpl implements testDeviceOperations{
-
- /* (non-Javadoc)
- * @see astri.tcs.testDeviceBaseImpl.testDeviceBaseImpl#initialize(alma.acs.container.ContainerServices)
- */
- @Override
- public void initialize(ContainerServices containerServices)
- throws ComponentLifecycleException {
- // TODO Auto-generated method stub
- super.initialize(containerServices);
- }
-
- /* (non-Javadoc)
- * @see astri.tcs.testDeviceBaseImpl.testDeviceBaseImpl#cleanUp()
- */
- @Override
- public void cleanUp() throws AcsJComponentCleanUpEx {
- // TODO Auto-generated method stub
- super.cleanUp();
- }
-
-}
diff --git a/test/tmp/testDevice/test/CDB/MACI/Components/testDevice/testDevice.xml b/test/tmp/testDevice/test/CDB/MACI/Components/testDevice/testDevice.xml
deleted file mode 100644
index fee3cc564c6cc7d956d10771b631abec1b8d67ed..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/test/CDB/MACI/Components/testDevice/testDevice.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
diff --git a/test/tmp/testDevice/test/CDB/MACI/Containers/frodoContainer/frodoContainer.xml b/test/tmp/testDevice/test/CDB/MACI/Containers/frodoContainer/frodoContainer.xml
deleted file mode 100644
index 4f775714e2e7ffac47a5ab6133c8784208fd9a4a..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/test/CDB/MACI/Containers/frodoContainer/frodoContainer.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/test/tmp/testDevice/test/CDB/MACI/Managers/Manager/Manager.xml b/test/tmp/testDevice/test/CDB/MACI/Managers/Manager/Manager.xml
deleted file mode 100644
index d06f6e2998d7ccc3e2f84df0f94d686e942c7f9a..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/test/CDB/MACI/Managers/Manager/Manager.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/test/tmp/testDevice/test/CDB/alma/testDevice/testDevice.xml b/test/tmp/testDevice/test/CDB/alma/testDevice/testDevice.xml
deleted file mode 100644
index 6947677d37533226af6afcfa98771d0398ad212b..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/test/CDB/alma/testDevice/testDevice.xml
+++ /dev/null
@@ -1,417 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/tmp/testDevice/test/setCDB.sh b/test/tmp/testDevice/test/setCDB.sh
deleted file mode 100644
index 4b744118d33744d01c1f820ffccaa953ec1bf4f6..0000000000000000000000000000000000000000
--- a/test/tmp/testDevice/test/setCDB.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-ACS_CDB=/home/astrisw/pyGen/test/tmp/testDevice/test/
-export ACS_CDB