From af7e9194e5f2acdd5be08f3959511d93befa1477 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 12 Jan 2021 21:01:55 +0100 Subject: [PATCH] more consistency renamings --- controller/ExtendedControllerBase.cpp | 16 ++++++++-------- controller/ExtendedControllerBase.h | 13 ++++++++++--- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/controller/ExtendedControllerBase.cpp b/controller/ExtendedControllerBase.cpp index 74453b25..e0aec63a 100644 --- a/controller/ExtendedControllerBase.cpp +++ b/controller/ExtendedControllerBase.cpp @@ -4,7 +4,7 @@ ExtendedControllerBase::ExtendedControllerBase(object_id_t objectId, object_id_t parentId, size_t commandQueueDepth): ControllerBase(objectId, parentId, commandQueueDepth), - localPoolManager(this, commandQueue), + poolManager(this, commandQueue), actionHelper(this, commandQueue) { } @@ -27,7 +27,7 @@ object_id_t ExtendedControllerBase::getObjectId() const { } AccessPoolManagerIF* ExtendedControllerBase::getAccessorHandle() { - return &localPoolManager; + return &poolManager; } uint32_t ExtendedControllerBase::getPeriodicOperationFrequency() const { @@ -40,7 +40,7 @@ ReturnValue_t ExtendedControllerBase::handleCommandMessage( if(result == HasReturnvaluesIF::RETURN_OK) { return result; } - return localPoolManager.handleHousekeepingMessage(message); + return poolManager.handleHousekeepingMessage(message); } void ExtendedControllerBase::handleQueue() { @@ -64,7 +64,7 @@ void ExtendedControllerBase::handleQueue() { continue; } - result = localPoolManager.handleHousekeepingMessage(&command); + result = poolManager.handleHousekeepingMessage(&command); if (result == RETURN_OK) { continue; } @@ -88,16 +88,16 @@ ReturnValue_t ExtendedControllerBase::initialize() { return result; } - return localPoolManager.initialize(commandQueue); + return poolManager.initialize(commandQueue); } ReturnValue_t ExtendedControllerBase::initializeAfterTaskCreation() { - return localPoolManager.initializeAfterTaskCreation(); + return poolManager.initializeAfterTaskCreation(); } ReturnValue_t ExtendedControllerBase::performOperation(uint8_t opCode) { handleQueue(); - localPoolManager.performHkOperation(); + poolManager.performHkOperation(); performControlOperation(); return RETURN_OK; } @@ -115,5 +115,5 @@ LocalPoolDataSetBase* ExtendedControllerBase::getDataSetHandle(sid_t sid) { } ProvidesDataPoolSubscriptionIF* ExtendedControllerBase::getSubscriptionInterface() { - return &localPoolManager; + return &poolManager; } diff --git a/controller/ExtendedControllerBase.h b/controller/ExtendedControllerBase.h index 6076b2fe..b2760514 100644 --- a/controller/ExtendedControllerBase.h +++ b/controller/ExtendedControllerBase.h @@ -32,13 +32,20 @@ public: virtual ReturnValue_t performOperation(uint8_t opCode) override; virtual ReturnValue_t initializeAfterTaskCreation() override; - ProvidesDataPoolSubscriptionIF* getSubscriptionInterface() override; - AccessPoolManagerIF* getAccessorHandle() override; + /** + * Provides a subscription interface for objects which required updates on changed + * controller variables or datasets + * @return + */ + ProvidesDataPoolSubscriptionIF* getSubscriptionInterface() override; protected: - LocalDataPoolManager localPoolManager; + LocalDataPoolManager poolManager; ActionHelper actionHelper; + //! Accessor handle required for internal handling + AccessPoolManagerIF* getAccessorHandle() override; + /** * Implemented by child class. Handle all command messages which are * not health, mode, action or housekeeping messages.