SystemStateMemory.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package RobotAPI::ArmarXObjects::ExampleMemory
17  * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18  * @date 2020
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #include "SystemStateMemory.h"
24 
25 namespace armarx
26 {
29  {
32 
33  setMemoryName("SystemState");
34 
35  const std::string prefix = "mem.";
36  ramUsageCoreSegment.defineProperties(defs, prefix + "ram.");
37  cpuUsageCoreSegment.defineProperties(defs, prefix + "cpu.");
38  return defs;
39  }
40 
42  ramUsageCoreSegment(iceAdapter()), cpuUsageCoreSegment(iceAdapter())
43  {
44  }
45 
46  std::string
48  {
49  return "SystemStateMemory";
50  }
51 
52  void
54  {
55  ramUsageCoreSegment.init();
56  cpuUsageCoreSegment.init();
57  }
58 
59  void
61  {
62  }
63 
64  void
66  {
67  }
68 
69  void
71  {
72  }
73 } // namespace armarx
armarx::SystemStateMemory::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: SystemStateMemory.cpp:70
armarx::SystemStateMemory::SystemStateMemory
SystemStateMemory()
Definition: SystemStateMemory.cpp:41
armarx::SystemStateMemory::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: SystemStateMemory.cpp:28
armarx::armem::server::plugins::ReadWritePluginUser::setMemoryName
void setMemoryName(const std::string &memoryName)
Definition: ReadWritePluginUser.cpp:25
armarx::SystemStateMemory::getDefaultName
std::string getDefaultName() const override
Definition: SystemStateMemory.cpp:47
SystemStateMemory.h
armarx::armem::server::systemstate::segment::LightweightRamMonitorProviderSegment::init
void init() override
Definition: RAMSegment.cpp:29
armarx::SystemStateMemory::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: SystemStateMemory.cpp:65
armarx::armem::server::systemstate::segment::LightweightCpuMonitorProviderSegment::init
void init() override
Definition: CPUSegment.cpp:29
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:79
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:69
armarx::armem::server::systemstate::segment::LightweightCpuMonitorProviderSegment::defineProperties
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
Definition: CPUSegment.cpp:22
IceUtil::Handle
Definition: forward_declarations.h:30
armarx::SystemStateMemory::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: SystemStateMemory.cpp:53
armarx::armem::server::systemstate::segment::LightweightRamMonitorProviderSegment::defineProperties
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
Definition: RAMSegment.cpp:22
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::SystemStateMemory::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: SystemStateMemory.cpp:60