From 347dad64dc8953f92e7701b8e36be6ae0fa5cb5d Mon Sep 17 00:00:00 2001 From: Gino Tosti Date: Thu, 24 Jun 2021 12:29:16 +0200 Subject: [PATCH] remove tmp --- test/tmp/Amc/ChangeLog | 1 - test/tmp/Amc/config/AMC_ICD_Table.xlsx | Bin 20469 -> 0 bytes test/tmp/Amc/config/AddSQL_Amc.sql | 707 ----- test/tmp/Amc/config/CDB/schemas/AmcBase.xsd | 240 -- test/tmp/Amc/idl/Amc.idl | 47 - test/tmp/Amc/idl/AmcBase.midl | 319 --- test/tmp/Amc/src/Makefile | 169 -- test/tmp/Amc/src/TCL/AmcBase.py | 732 ------ test/tmp/Amc/src/TCL/__init__.py | 16 - .../AmcBaseImpl/AmcBaseComponentHelper.java | 83 - .../astri/tcs/AmcBaseImpl/AmcBaseImpl.java | 2293 ----------------- .../astri/tcs/AmcImpl/AmcComponentHelper.java | 83 - .../Amc/src/astri/tcs/AmcImpl/AmcImpl.java | 61 - .../Amc/test/CDB/MACI/Components/Amc/Amc.xml | 38 - .../frodoContainer/frodoContainer.xml | 25 - .../CDB/MACI/Managers/Manager/Manager.xml | 37 - test/tmp/Amc/test/CDB/alma/Amc/Amc.xml | 885 ------- test/tmp/Amc/test/setCDB.sh | 2 - test/tmp/testDevice/ChangeLog | 1 - .../testDevice/config/AddSQL_testDevice.sql | 446 ---- .../config/CDB/schemas/testDeviceBase.xsd | 161 -- .../config/testDeviceInterfaces.xls | Bin 42496 -> 0 bytes test/tmp/testDevice/idl/testDevice.idl | 47 - test/tmp/testDevice/idl/testDeviceBase.midl | 256 -- test/tmp/testDevice/src/Makefile | 169 -- test/tmp/testDevice/src/TCL/__init__.py | 16 - test/tmp/testDevice/src/TCL/testDeviceBase.py | 417 --- .../testDeviceBaseComponentHelper.java | 83 - .../testDeviceBaseImpl.java | 1950 -------------- .../testDeviceComponentHelper.java | 83 - .../tcs/testDeviceImpl/testDeviceImpl.java | 61 - .../MACI/Components/testDevice/testDevice.xml | 38 - .../frodoContainer/frodoContainer.xml | 25 - .../CDB/MACI/Managers/Manager/Manager.xml | 37 - .../test/CDB/alma/testDevice/testDevice.xml | 417 --- test/tmp/testDevice/test/setCDB.sh | 2 - 36 files changed, 9947 deletions(-) delete mode 100644 test/tmp/Amc/ChangeLog delete mode 100644 test/tmp/Amc/config/AMC_ICD_Table.xlsx delete mode 100644 test/tmp/Amc/config/AddSQL_Amc.sql delete mode 100644 test/tmp/Amc/config/CDB/schemas/AmcBase.xsd delete mode 100644 test/tmp/Amc/idl/Amc.idl delete mode 100644 test/tmp/Amc/idl/AmcBase.midl delete mode 100644 test/tmp/Amc/src/Makefile delete mode 100644 test/tmp/Amc/src/TCL/AmcBase.py delete mode 100644 test/tmp/Amc/src/TCL/__init__.py delete mode 100644 test/tmp/Amc/src/astri/tcs/AmcBaseImpl/AmcBaseComponentHelper.java delete mode 100644 test/tmp/Amc/src/astri/tcs/AmcBaseImpl/AmcBaseImpl.java delete mode 100644 test/tmp/Amc/src/astri/tcs/AmcImpl/AmcComponentHelper.java delete mode 100644 test/tmp/Amc/src/astri/tcs/AmcImpl/AmcImpl.java delete mode 100644 test/tmp/Amc/test/CDB/MACI/Components/Amc/Amc.xml delete mode 100644 test/tmp/Amc/test/CDB/MACI/Containers/frodoContainer/frodoContainer.xml delete mode 100644 test/tmp/Amc/test/CDB/MACI/Managers/Manager/Manager.xml delete mode 100644 test/tmp/Amc/test/CDB/alma/Amc/Amc.xml delete mode 100644 test/tmp/Amc/test/setCDB.sh delete mode 100644 test/tmp/testDevice/ChangeLog delete mode 100644 test/tmp/testDevice/config/AddSQL_testDevice.sql delete mode 100644 test/tmp/testDevice/config/CDB/schemas/testDeviceBase.xsd delete mode 100644 test/tmp/testDevice/config/testDeviceInterfaces.xls delete mode 100644 test/tmp/testDevice/idl/testDevice.idl delete mode 100644 test/tmp/testDevice/idl/testDeviceBase.midl delete mode 100644 test/tmp/testDevice/src/Makefile delete mode 100644 test/tmp/testDevice/src/TCL/__init__.py delete mode 100644 test/tmp/testDevice/src/TCL/testDeviceBase.py delete mode 100644 test/tmp/testDevice/src/astri/tcs/testDeviceBaseImpl/testDeviceBaseComponentHelper.java delete mode 100644 test/tmp/testDevice/src/astri/tcs/testDeviceBaseImpl/testDeviceBaseImpl.java delete mode 100644 test/tmp/testDevice/src/astri/tcs/testDeviceImpl/testDeviceComponentHelper.java delete mode 100644 test/tmp/testDevice/src/astri/tcs/testDeviceImpl/testDeviceImpl.java delete mode 100644 test/tmp/testDevice/test/CDB/MACI/Components/testDevice/testDevice.xml delete mode 100644 test/tmp/testDevice/test/CDB/MACI/Containers/frodoContainer/frodoContainer.xml delete mode 100644 test/tmp/testDevice/test/CDB/MACI/Managers/Manager/Manager.xml delete mode 100644 test/tmp/testDevice/test/CDB/alma/testDevice/testDevice.xml delete mode 100644 test/tmp/testDevice/test/setCDB.sh diff --git a/test/tmp/Amc/ChangeLog b/test/tmp/Amc/ChangeLog deleted file mode 100644 index a6bf091..0000000 --- a/test/tmp/Amc/ChangeLog +++ /dev/null @@ -1 +0,0 @@ -"@(#) $Id$" diff --git a/test/tmp/Amc/config/AMC_ICD_Table.xlsx b/test/tmp/Amc/config/AMC_ICD_Table.xlsx deleted file mode 100644 index 9bbfde1856031ddf3f002757f2594926d6a41603..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20469 zcmWIWW@Zs#U}NB5U|>*W@NjfGRmjM|uz`(%L70JqDcU(duOv0EBtE3FAhkGFuOc@` zVG#?H#sUT=hEXu0L*UHR(|Lys1YEyQ{l!0VduY-E{!r0ISNYRoE59(`sc_Pfx&29k ztNwmx<%(570!%A&l2qsI{GRgU&X@M?DD~nGE7qKhG=IH;#V2v8(d0R`J@J>SrzHru zapm$p$>BWF)_l7AU&TuX;a6reHfynbKVT^)dWFgO^??h1nYFr1cYkq~FPhQC`5|t3 z@p0~KrWq63+?siR`3H2($QA4FRup)vv=!njkaL=!q=@CAmHR(?&z^wF{G}+ z^A7*k-o+}?clWEy2!u#AG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h2kop6h#4SKo)c^ivI*##(a%T# zX@g)D9=PV>473vy&`m+#!3;40M4l1AY6^HiGrB40drUz3A-F&qt0~|eC+Mc2uN;P$ z03shKVl@Rk>49zv`kFzIehAi41Dk@ef)L#V^qCfjZV+i<3N`^e 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 ='MAXTEMPWARNING_GETVAR'; -SET @MP_Description='Value of external temperature, expressed in degrees Celsius.'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='C'; -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 ='M1TEMPWARNING_GETVAR'; -SET @MP_Description='Read the actual temperature of the Nanotech boards for M1'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='C'; -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 ='M2TEMPWARNING_GETVAR'; -SET @MP_Description='Read the actual temperature of the Nanotech boards for M2'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='C'; -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 ='MAXPOWRCONSUMP_GETVAR'; -SET @MP_Description='Read the set power consumption limit for the Nanotech Boards'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='Amp'; -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 ='M1POS_GETVAR'; -SET @MP_Description='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'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='mm'; -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 ='M2POS_GETVAR'; -SET @MP_Description='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.'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='Degree'; -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 ='M1POSABS_GETVAR'; -SET @MP_Description='Retrieves the position of each single actuator of M1'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='mm'; -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 ='M2POSABS_GETVAR'; -SET @MP_Description='Retrieves the position of each single actuator of M2'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='mm'; -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 ='M1ABSLIMITS_GETVAR'; -SET @MP_Description='Retrieves the minimum and maximum movements limits of each single actuator of M1'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='mm'; -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 ='M2ABSLIMITS_GETVAR'; -SET @MP_Description='Retrieves the minimum and maximum movements limits of each single actuator of M2'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='mm'; -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 ='M1ACTSTATUS_GETVAR'; -SET @MP_Description='Retrieves the status of all the M1 actuators'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='M1ERRORSTS_GETVAR'; -SET @MP_Description='Retrieves the error status of all the M1 actuators'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='M2ACTSTATUS_GETVAR'; -SET @MP_Description='Retrieves the status of all the M2 actuators'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='M2ERRORSTS_GETVAR'; -SET @MP_Description='Retrieves the error status of all the M2 actuators'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='ETHERCATERROR_GETVAR'; -SET @MP_Description='The monitor collects any error from the ethercat connection between AMCU Module'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='SWVERSION_GETVAR'; -SET @MP_Description='The command retrieve the Sw Version that is running'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='CANOPEN_STATUS_M1_GETVAR'; -SET @MP_Description='The command retrieves the status of the Can Open module dedicated to M1'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='TBD'; -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 ='CANOPEN_STATUS_M2_GETVAR'; -SET @MP_Description='The command retrieves the status of the Can Open module dedicated to 2'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='TBD'; -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 ='ENDAT_STATUS_GETVAR'; -SET @MP_Description='Retrieve status of both En-Dat modules'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='TBD'; -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 ='ENCODERPOS_1_GETVAR'; -SET @MP_Description='Retrieve the position of the two Encoders of M2'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='steps'; -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 ='ENCODERPOS_2_GETVAR'; -SET @MP_Description='Retrieve the position of the two Encoders of M2'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='steps'; -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 ='ENCODERPOS_3_GETVAR'; -SET @MP_Description='Retrieve the position of the two Encoders of M2'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='steps'; -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; -call defbaci; -SET @MP_Name ='ERROR_NUMBER_GETVAR'; -SET @MP_Description='The monitor reports the number of errors that has been occurred'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='ERROR_INFORMATION_GETVAR'; -SET @MP_Description='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.'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='ERROR_RECOVERED_GETVAR'; -SET @MP_Description='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.'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='ERROR_NUMBER_RECOVERED_GETVAR'; -SET @MP_Description='The monitor reports the number of errors that has been recovered'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='ERROR_NUMBER_OUTOFRANGE_GETVAR'; -SET @MP_Description='The monitor became TRUE when the size of the error buffe is full.The reset command has to be performed.'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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 ='COMMAND_ACCEPTED_GETVAR'; -SET @MP_Description='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.'; -SET @MP_Format='na'; -SET @MP_DisplayUnits='nan'; -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/Amc/config/CDB/schemas/AmcBase.xsd b/test/tmp/Amc/config/CDB/schemas/AmcBase.xsd deleted file mode 100644 index 7c4aca1..0000000 --- a/test/tmp/Amc/config/CDB/schemas/AmcBase.xsd +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/test/tmp/Amc/idl/Amc.idl b/test/tmp/Amc/idl/Amc.idl deleted file mode 100644 index 44d999e..0000000 --- a/test/tmp/Amc/idl/Amc.idl +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef Amc_IDL -#define Amc_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: Amc Interface - * - */ -/** - * Device interface to Amc - */ - -#include - -#pragma prefix "astri" - -module tcs -{ - interface Amc: tcs::AmcBase - { - }; -}; -#endif /* Amc_IDL */ diff --git a/test/tmp/Amc/idl/AmcBase.midl b/test/tmp/Amc/idl/AmcBase.midl deleted file mode 100644 index 7992142..0000000 --- a/test/tmp/Amc/idl/AmcBase.midl +++ /dev/null @@ -1,319 +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 - * - */ - -#ifndef AmcBase_idl -#define AmcBase_idl - -// External interface to the hardware assembly: TCS::Amc - -#include -#include -#include -#include -#include -#include - -#pragma prefix "astri" - - -module tcs { - // Amc Interface - interface AmcBase:tcs::TCSHardwareDevice { - - // BACI Properties - - readonly attribute ACS::ROlong MAXTEMPWARNING_GETVAR; - readonly attribute ACS::ROlongSeq M1TEMPWARNING_GETVAR; - readonly attribute ACS::ROlongSeq M2TEMPWARNING_GETVAR; - readonly attribute ACS::ROlong MAXPOWRCONSUMP_GETVAR; - readonly attribute ACS::ROdoubleSeq M1POS_GETVAR; - readonly attribute ACS::ROdoubleSeq M2POS_GETVAR; - readonly attribute ACS::ROdoubleSeq M1POSABS_GETVAR; - readonly attribute ACS::ROdoubleSeq M2POSABS_GETVAR; - readonly attribute ACS::ROdoubleSeq M1ABSLIMITS_GETVAR; - readonly attribute ACS::ROdoubleSeq M2ABSLIMITS_GETVAR; - readonly attribute ACS::ROlongSeq M1ACTSTATUS_GETVAR; - readonly attribute ACS::ROlongSeq M1ERRORSTS_GETVAR; - readonly attribute ACS::ROlongSeq M2ACTSTATUS_GETVAR; - readonly attribute ACS::ROlongSeq M2ERRORSTS_GETVAR; - readonly attribute ACS::ROlong ETHERCATERROR_GETVAR; - readonly attribute ACS::ROlong SWVERSION_GETVAR; - readonly attribute ACS::ROlong CANOPEN_STATUS_M1_GETVAR; - readonly attribute ACS::ROlong CANOPEN_STATUS_M2_GETVAR; - readonly attribute ACS::ROlongSeq ENDAT_STATUS_GETVAR; - readonly attribute ACS::ROlong ENCODERPOS_1_GETVAR; - readonly attribute ACS::ROlong ENCODERPOS_2_GETVAR; - readonly attribute ACS::ROlong ENCODERPOS_3_GETVAR; - readonly attribute ACS::ROlong STATUS_GETVAR; - readonly attribute ACS::ROlong ERROR_NUMBER_GETVAR; - readonly attribute ACS::ROstring ERROR_INFORMATION_GETVAR; - readonly attribute ACS::ROstring ERROR_RECOVERED_GETVAR; - readonly attribute ACS::ROlong ERROR_NUMBER_RECOVERED_GETVAR; - readonly attribute ACS::ROboolean ERROR_NUMBER_OUTOFRANGE_GETVAR; - readonly attribute ACS::ROboolean COMMAND_ACCEPTED_GETVAR; - - readonly attribute ACS::RWdoubleSeq M1DELTA_SETVAR; - readonly attribute ACS::RWdoubleSeq M2DELTA_SETVAR; - readonly attribute ACS::RWlong MAXTEMPWARNING_SETVAR; - readonly attribute ACS::RWdoubleSeq M1ABSLIMITS_SETVAR; - readonly attribute ACS::RWdoubleSeq M2ABSLIMITS_SETVAR; - readonly attribute ACS::RWdoubleSeq M1STEPS_SETVAR; - readonly attribute ACS::RWstring CALDIR_SETVAR; - readonly attribute ACS::RWlongSeq M1ABSPOS_SETVAR; - readonly attribute ACS::RWlongSeq M2ABSPOS_SETVAR; - readonly attribute ACS::RWlong ERROR_INFO_SETVAR; - - readonly attribute ACS::RWboolean MODE_AMC_INIT; - readonly attribute ACS::RWboolean MODE_AMC_START; - readonly attribute ACS::RWboolean MODE_AMC_OFFLINE; - readonly attribute ACS::RWboolean MODE_AMC_STOP; - readonly attribute ACS::RWboolean MODE_AMC_SHUTDOWN; - readonly attribute ACS::RWboolean MODE_AMC_FALLBACK; - readonly attribute ACS::RWboolean MODE_AMC_CALIBRATION; - readonly attribute ACS::RWboolean MODE_AMC_RESTART; - readonly attribute ACS::RWboolean MODE_AMC_MAINTENANCE; - readonly attribute ACS::RWboolean MODE_AMC_REINIT; - readonly attribute ACS::RWboolean MODE_AMC_MOVEM1; - readonly attribute ACS::RWboolean MODE_AMC_MOVEM2; - readonly attribute ACS::RWboolean MODE_AMC_MOVEM1STEPS; - - readonly attribute ACS::RWboolean CMD_AMC_LOADCONF; - readonly attribute ACS::RWboolean CMD_AMC_M1ABSPOS; - readonly attribute ACS::RWboolean CMD_AMC_M2ABSPOS; - readonly attribute ACS::RWboolean CMD_AMC_CALIBRATE_M1; - readonly attribute ACS::RWboolean CMD_AMC_ERROR_RESET; - - // GET commands - - // Value of external temperature, expressed in degrees Celsius. - long GET_AMC_MAXTEMPWARNING_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Read the actual temperature of the Nanotech boards for M1 - typedef sequence M1TEMPWARNING_GETVARSeq; - M1TEMPWARNING_GETVARSeq GET_AMC_M1TEMPWARNING_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Read the actual temperature of the Nanotech boards for M2 - typedef sequence M2TEMPWARNING_GETVARSeq; - M2TEMPWARNING_GETVARSeq GET_AMC_M2TEMPWARNING_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Read the set power consumption limit for the Nanotech Boards - long GET_AMC_MAXPOWRCONSUMP_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // 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 - typedef sequence M1POS_GETVARSeq; - M1POS_GETVARSeq GET_AMC_M1POS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // 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. - typedef sequence M2POS_GETVARSeq; - M2POS_GETVARSeq GET_AMC_M2POS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieves the position of each single actuator of M1 - typedef sequence M1POSABS_GETVARSeq; - M1POSABS_GETVARSeq GET_AMC_M1POSABS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieves the position of each single actuator of M2 - typedef sequence M2POSABS_GETVARSeq; - M2POSABS_GETVARSeq GET_AMC_M2POSABS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieves the minimum and maximum movements limits of each single actuator of M1 - typedef sequence M1ABSLIMITS_GETVARSeq; - M1ABSLIMITS_GETVARSeq GET_AMC_M1ABSLIMITS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieves the minimum and maximum movements limits of each single actuator of M2 - typedef sequence M2ABSLIMITS_GETVARSeq; - M2ABSLIMITS_GETVARSeq GET_AMC_M2ABSLIMITS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieves the status of all the M1 actuators - typedef sequence M1ACTSTATUS_GETVARSeq; - M1ACTSTATUS_GETVARSeq GET_AMC_M1ACTSTATUS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieves the error status of all the M1 actuators - typedef sequence M1ERRORSTS_GETVARSeq; - M1ERRORSTS_GETVARSeq GET_AMC_M1ERRORSTS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieves the status of all the M2 actuators - typedef sequence M2ACTSTATUS_GETVARSeq; - M2ACTSTATUS_GETVARSeq GET_AMC_M2ACTSTATUS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieves the error status of all the M2 actuators - typedef sequence M2ERRORSTS_GETVARSeq; - M2ERRORSTS_GETVARSeq GET_AMC_M2ERRORSTS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // The monitor collects any error from the ethercat connection between AMCU Module - long GET_AMC_ETHERCATERROR_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // The command retrieve the Sw Version that is running - long GET_AMC_SWVERSION_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // The command retrieves the status of the Can Open module dedicated to M1 - long GET_AMC_CANOPEN_STATUS_M1_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // The command retrieves the status of the Can Open module dedicated to 2 - long GET_AMC_CANOPEN_STATUS_M2_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieve status of both En-Dat modules - typedef sequence ENDAT_STATUS_GETVARSeq; - ENDAT_STATUS_GETVARSeq GET_AMC_ENDAT_STATUS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieve the position of the two Encoders of M2 - long GET_AMC_ENCODERPOS_1_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieve the position of the two Encoders of M2 - long GET_AMC_ENCODERPOS_2_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieve the position of the two Encoders of M2 - long GET_AMC_ENCODERPOS_3_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // Retrieves the status of the AMC system - long GET_AMC_STATUS_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // The monitor reports the number of errors that has been occurred - long GET_AMC_ERROR_NUMBER_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // 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. - string GET_AMC_ERROR_INFORMATION_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // 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. - string GET_AMC_ERROR_RECOVERED_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // The monitor reports the number of errors that has been recovered - long GET_AMC_ERROR_NUMBER_RECOVERED_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // The monitor became TRUE when the size of the error buffe is full.The reset command has to be performed. - boolean GET_AMC_ERROR_NUMBER_OUTOFRANGE_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - // 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. - boolean GET_AMC_COMMAND_ACCEPTED_GETCMD (out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - - // SET commands - - // 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. - typedef sequence M1DELTA_SETVARSeq; - M1DELTA_SETVARSeq GET_AMC_M1DELTA_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_M1DELTA_SETCMD(in M1DELTA_SETVARSeq world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - // Change the WS update time (value = 4) - typedef sequence M2DELTA_SETVARSeq; - M2DELTA_SETVARSeq GET_AMC_M2DELTA_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_M2DELTA_SETCMD(in M2DELTA_SETVARSeq world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - // The command set the max allowable temperature threshold set for the Nanotec boards. - long GET_AMC_MAXTEMPWARNING_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_MAXTEMPWARNING_SETCMD(in long world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - // 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. - typedef sequence M1ABSLIMITS_SETVARSeq; - M1ABSLIMITS_SETVARSeq GET_AMC_M1ABSLIMITS_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_M1ABSLIMITS_SETCMD(in M1ABSLIMITS_SETVARSeq world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - // 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. - typedef sequence M2ABSLIMITS_SETVARSeq; - M2ABSLIMITS_SETVARSeq GET_AMC_M2ABSLIMITS_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_M2ABSLIMITS_SETCMD(in M2ABSLIMITS_SETVARSeq world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - // Defines the requested displacement for each of the 36th motors to be applied by MODE_AMC_MOVEM1 command.STEPS. - typedef sequence M1STEPS_SETVARSeq; - M1STEPS_SETVARSeq GET_AMC_M1STEPS_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_M1STEPS_SETCMD(in M1STEPS_SETVARSeq world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - // Set the directory containing the calibration coefficients defined by the parameter. In order to load the coefficients use CMD.AMC_LOADCONF command - string GET_AMC_CALDIR_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_CALDIR_SETCMD(in string world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - // Used to move one single actuator of the primary mirror. To be used only to recover from an error. - typedef sequence M1ABSPOS_SETVARSeq; - M1ABSPOS_SETVARSeq GET_AMC_M1ABSPOS_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_M1ABSPOS_SETCMD(in M1ABSPOS_SETVARSeq world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - // Used to move one single actuator of the secondary mirror. To be used only to recover from an error. - typedef sequence M2ABSPOS_SETVARSeq; - M2ABSPOS_SETVARSeq GET_AMC_M2ABSPOS_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_M2ABSPOS_SETCMD(in M2ABSPOS_SETVARSeq world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - // This command enables access to the information about the required error. - long GET_AMC_ERROR_INFO_SETCMD(out ACS::Time timestamp) raises (TCSControlExceptions::OPCUAErrorEx, TCSControlExceptions::INACTErrorEx); - void SET_AMC_ERROR_INFO_SETCMD(in long world) raises(TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // MODE commands - - // AMC Initializes the staring status where the actuators are positioned mid-home position - void MODE_AMC_INIT_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // AMC is ready to move - void MODE_AMC_START_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // AMC returns to standby and initialization is redone. - void MODE_AMC_OFFLINE_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // AMC releases devices control - void MODE_AMC_STOP_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // AMC starts the switching off procedure of the system - void MODE_AMC_SHUTDOWN_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // The switching Off procedure is called form the ONLINE status and automatically goes to all the modes needed to have the complete switch off. - void MODE_AMC_FALLBACK_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // The system start the calibration procedure - void MODE_AMC_CALIBRATION_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // On the execution of this mode change the system returns in IDLE ready to execute new command and switch off all the Lasers. - void MODE_RESTART_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // In case of need system can go in MAINTENANCE mode. In this state, the user has full control of the system - void MODE_AMC_MAINTENANCE_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // The system re-enter in the mode that was left before entering the MAINTENANCE Mode, or in case of FAULT the status that triggered the FAULT condition. - void MODE_AMC_REINIT_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // The system execute the movement as described in the M1DELTA array. During the movement systme stays in "MOVING" mode and automaticaaly goes to IDLE again when movement has been succesfully completed. In case of unsuccess the system will end up in FAULT. - void MODE_AMC_MOVEM1_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // The system execute the movement as described in the M2DELTA array. During the movement systme stays in "MOVING" mode and automaticaaly goes to IDLE again when movement has been succesfully completed. In case of unsuccess the system will end up in FAULT. - void MODE_AMC_MOVEM2_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // The system execute the movement as described in the M1STEPS array. During the movement system stays in "MOVING" mode and automatically goes to IDLE again when movement has been succesfully completed. In case of unsuccess the system will end up in FAULT. - void MODE_AMC_MOVEM1STEPS_CMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - - // CMD commands - - // This command empties the error buffer and reset all the error informations recorded. - void CMD_AMC_LOADCONF_CMDCMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // Used to move one single actuator of the primary mirror. To be used only to recover from an error. - void CMD_AMC_M1ABSPOS_CMDCMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // Used to move one single actuator of the secondary mirror. To be used only to recover from an error. - void CMD_AMC_M2ABSPOS_CMDCMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // The command deliver the request to switch on (bit set to 1) or to switch off (bit set to 0) of the 18 Laser sources installed in front of the segments of M1. - void CMD_AMC_CALIBRATE_M1_CMDCMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - // This command empties the error buffer and reset all the error informations recorded. - void CMD_AMC_ERROR_RESET_CMDCMD() raises (TCSControlExceptions::INACTErrorEx, - TCSControlExceptions::IllegalParameterErrorEx); - - void connectToDevice(in string opc_url); - }; -}; -#endif - diff --git a/test/tmp/Amc/src/Makefile b/test/tmp/Amc/src/Makefile deleted file mode 100644 index bc03454..0000000 --- a/test/tmp/Amc/src/Makefile +++ /dev/null @@ -1,169 +0,0 @@ -#******************************************************************************* -# PPPPPPPP -# "@(#) $Id$" -# Makefile of Amc -# 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 = 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 2c12f4c..0000000 --- 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 95db413..0000000 --- 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 5cc129f..0000000 --- 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 _getPOATieClass() - { - return AmcBasePOATie.class; - } - - /** - * @see alma.acs.container.ComponentHelper#getOperationsInterface() - */ - protected Class _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 4d53677..0000000 --- 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 1829677..0000000 --- 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 _getPOATieClass() - { - return AmcPOATie.class; - } - - /** - * @see alma.acs.container.ComponentHelper#getOperationsInterface() - */ - protected Class _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 22b3603..0000000 --- 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 6038157..0000000 --- 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 4f77571..0000000 --- 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 d06f6e2..0000000 --- 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 a699b39..0000000 --- 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 ece906f..0000000 --- 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 a6bf091..0000000 --- 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 3e15c19..0000000 --- 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 51d535f..0000000 --- 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 GIT binary patch literal 0 HcmV?d00001 literal 42496 zcmca`Uhu)fjZzO8(10BSGsD0CoD6J8;*1Oo3?K{^5@29pg7W|U|NkE>#=yYve-sR< z5cvE5|9=(+1_n?ZvO;MPo1KAyfrEj8fs=uOfs28Gft!JWfro*CftP`SfscWKfuDha zL4bjQL6CugL5P8YL70JoL4<*UL6m`kL5zWcL7ahsL4tvSL6U)iL5hKaL7IVqL56{W zL6(7mL5_ieL7stuL4kpRL6L!hL5YEZL79PpL4|>VL6w1lL5+cdL7jntL4$#TL6d=j zL5qQbL7RbrL5G2XL6?DnL63ofL7#zv!GM8*!H|K0!H9u@!I*)8!GwW!Ipu6!H$7}!JdJE!GVE+!I6Q1!HI!^!I^=9 z!G(c=!Igo5!Ht1|!JUDD!GnQ;!IOc3!Ha=`!JC1B!H0o?!Iy!7!H-t&ydeh!l1z5%8eKghK|&#lXY}vKQnX5KXKRpu7T7%gEr&kk63IP{82Nki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#d>X0`(qaZ3fez9KS?LH$Ul1N>$oVW>CCFvx z;5?Aa&ck`gE(5ig5iSF@m=P|6w3uN-_}B)+FF?(Nw3si#dB}Aiq{Vy*E(dbiWjGJy zvMX>Nvdcg%W`xT?EoOwvAT4H?%dic2Uxk_p%H#YD*Wf&4mqA+0*Wq#?m)(H#KrXup z=OMcc)M7@s4Af#qxD3)_hPe#ep!O}OnV^z}pW!x~hwL&)i}?;*4&<`Ca308I_uxEa zmw{T$2$z9c%m|l3TFfw)VH>yxE%yhdB~W?C&+q_h1GX0PL%1BsWsl%Ikjoy!dB`pU z)h-B^fm+N6mqA+0FqdH)oPGi|6IAN*GdzX!ki(1}JYf0^E(dbib2ty=vKMe3vdcg% zW`xT?EoOwvAT8#XaDBoI{P5l^q{aLSDhDe2`59irdB`q`;rE#~iVIgra>V-tj0 z%%Kbn4Tu&qWc&;i5|9=%ES-T`%!q+`NQ?Og)ILyc%+K%>&O>$?H#nXBg3BShj2opb z&yCWS=Vo97t^PXzaTzxQs15+t$RL+-gL|_umvN)i0o>p^;5XDhP@90C;SZdL>@v`< z4t|Eea5-d`@u0Yj2gPMP5SKAPdS*N*F5^LQ84rrfc)%|E2el8>GT{d=H30dD7o}&$ z3l1~TrT~Z>vdef;T*iyyGG2(w93U>^MR6G~ipzLWT*eD_86$MvKd61g&%gxdA%__s z*k#OcIb@gdp|}imJ2gLiq=^sWGKM&CpOFv6WuTTYqDJRKaTy=jWuOsHP)LAUY5WYV zP}})Y!VJ_h=4W7o%OSgrAH`+-C}GAAaajYzW&9{E<3|ZIeiWDSgIxx?LFYPy3PTPz wXzz_0BYKY!nGfzgf+`DW?=cuW4v4Gw2;XlY0ZR4YD?~snqI!>D9fOnr0E>)3LI3~& diff --git a/test/tmp/testDevice/idl/testDevice.idl b/test/tmp/testDevice/idl/testDevice.idl deleted file mode 100644 index d2e84e8..0000000 --- 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 2d23b27..0000000 --- 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 daa6d27..0000000 --- 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 ad6193a..0000000 --- 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 bbcd10b..0000000 --- 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 f4767dd..0000000 --- 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 _getPOATieClass() - { - return testDeviceBasePOATie.class; - } - - /** - * @see alma.acs.container.ComponentHelper#getOperationsInterface() - */ - protected Class _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 3f0d91e..0000000 --- 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 b991198..0000000 --- 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 _getPOATieClass() - { - return testDevicePOATie.class; - } - - /** - * @see alma.acs.container.ComponentHelper#getOperationsInterface() - */ - protected Class _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 d403f51..0000000 --- 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 fee3cc5..0000000 --- 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 4f77571..0000000 --- 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 d06f6e2..0000000 --- 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 6947677..0000000 --- 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 4b74411..0000000 --- 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 -- GitLab