diff --git a/MAC/APL/APLCommon/src/ControllerDefines.cc b/MAC/APL/APLCommon/src/ControllerDefines.cc index b343fc516159eef453605f266e68be72dc4af3ab..efa02f729d97101c2bb6556031f237d5c4be3a5e 100644 --- a/MAC/APL/APLCommon/src/ControllerDefines.cc +++ b/MAC/APL/APLCommon/src/ControllerDefines.cc @@ -46,23 +46,23 @@ typedef struct cntlrDefinition { } cntlrDefinition_t; static cntlrDefinition_t controllerTable[] = { -// executable parsetNode shared -//---------------------------------------------------------- - { "", "", false }, - { "MACScheduler", "MACScheduler", false }, - { "ObservationControl", "ObsCtrl", false }, - { "OnlineControl", "OnlineCtrl", false }, - { "OfflineControl", "OfflineCtrl", false }, - { "BeamDirectionControl", "BeamDirCtrl", true }, - { "RingControl", "RingCtrl", true }, - { "StationControl", "StationCtrl", true }, - { "ClockControl", "ClockCtrl", true }, - { "BeamControl", "BeamCtrl", false }, - { "CalibrationControl", "CalCtrl", false }, - { "TBBControl", "TBBCtrl", false }, - { "StationInfraControl", "StsInfraCtrl", true }, - { "TestController", "TestCtrl", false }, - { "", "", false } +// executable parsetNode shared +//-------------------------------------------------------------------- + { "", "", false }, + { "MACScheduler", "MACScheduler", false }, + { "ObservationControl", "ObservationControl", false }, + { "OnlineControl", "OnlineControl", false }, + { "OfflineControl", "OfflineControl", false }, + { "BeamDirectionControl", "BeamDirControl", true }, + { "RingControl", "RingControl", true }, + { "StationControl", "StationControl", true }, + { "ClockControl", "ClockControl", true }, + { "BeamControl", "BeamControl", false }, + { "CalibrationControl", "CalControl", false }, + { "TBBControl", "TBBControl", false }, + { "StationInfraControl", "StsInfraControl", true }, + { "TestController", "TestControl", false }, + { "", "", false } }; static char* modeNameTable[] = { diff --git a/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc b/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc index d920b5ca424761fb9557ea80ddbb75223f5e9fed..69033318af52db2f0c34f7202652d888b2592f3f 100644 --- a/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc +++ b/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc @@ -95,10 +95,12 @@ ObservationControl::ObservationControl(const string& cntlrName) : itsPreparePeriod = globalParameterSet()->getTime ("Observation.preparePeriod"); // My own parameters - itsTreePrefix = globalParameterSet()->getString("prefix"); - itsTreeID = globalParameterSet()->getUint32("_treeID"); // !!! - itsHeartBeatItv = globalParameterSet()->getUint32("heartbeatInterval"); - itsObsDPname = globalParameterSet()->getString("_DPname"); + string moduleName = globalParameterSet()->getString("_moduleName"); + string modulePrefix = globalParameterSet()->locateModule(moduleName)+moduleName+"."; + itsTreePrefix = globalParameterSet()->getString("prefix"); + itsTreeID = globalParameterSet()->getUint32("_treeID"); // !!! + itsHeartBeatItv = globalParameterSet()->getUint32(modulePrefix + "heartbeatInterval"); + itsObsDPname = globalParameterSet()->getString("_DPname"); // The time I have to wait for the forced quit depends on the integration time of OLAP string OLAPpos = globalParameterSet()->locateModule("OLAP"); @@ -107,7 +109,6 @@ ObservationControl::ObservationControl(const string& cntlrName) : LOG_DEBUG_STR ("Timer for forcing quit is set to " << itsForcedQuitDelay); // Inform Logging manager who we are -// LOG_INFO(formatString("MACProcessScope: LOFAR.ObsSW.Observation%d.ObservationControl", itsTreeID)); LOG_INFO_STR("MACProcessScope: " << createPropertySetName(PSN_OBS_CTRL, getName(), itsObsDPname)); // NOTE: SAS gateway is not yet aware of claimMgr so the data will not be transferred to SAS.