MemoryViewer Class Reference

#include <RobotAPI/libraries/armem_gui/MemoryViewer.h>

+ Inheritance diagram for MemoryViewer:

Public Slots

void commit ()
 
void loadFromDisk (QString directory)
 
void makePrediction (const MemoryID &entityID, const aron::type::ObjectPtr &entityType, const armarx::DateTime &timestamp, const std::string &engineID)
 
void queryAndStoreInLTM ()
 
void resolveMemoryID (const MemoryID &id)
 
void showActionsMenu (const MemoryID &memoryID, QWidget *parent, const QPoint &pos, QMenu *menu)
 
void startLTMRecording ()
 
void stopLTMRecording ()
 
void storeOnDisk (QString directory)
 
void updateInstanceTree (const armem::MemoryID &selectedID)
 

Signals

void connected ()
 
void disconnected ()
 
void initialized ()
 
void instanceTreeUpdated ()
 
void memoryDataChanged ()
 
void memoryTreeUpdated ()
 

Public Member Functions

void loadSettings (QSettings *settings)
 
 MemoryViewer (QBoxLayout *updateWidgetLayout, QGroupBox *memoryGroupBox, QLayout *memoryGroupBoxParentLayout, QGroupBox *instanceGroupBox, QLayout *instanceGroupBoxParentLayout, QBoxLayout *diskControlWidgetLayout, QLabel *statusLabel)
 
void readConfigDialog (SimpleConfigDialog *dialog)
 
void saveSettings (QSettings *settings)
 
void setLogTag (const std::string &tag)
 
void writeConfigDialog (SimpleConfigDialog *dialog)
 
- Public Member Functions inherited from Logging
SpamFilterDataPtr deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
 disables the logging for the current line for the given amount of seconds. More...
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More...
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 
- Public Member Functions inherited from LifecycleClient
virtual void onConnect ()
 
virtual void onConnect (ManagedIceObject *component)
 
virtual void onDisconnect ()
 
virtual void onDisconnect (ManagedIceObject *component)
 
virtual void onInit ()
 
virtual void onInit (ManagedIceObject *component)
 
virtual ~LifecycleClient ()
 

Public Attributes

DebugObserverInterfacePrx debugObserver
 
std::string debugObserverName
 
armem::gui::disk::ControlWidgetdiskControl = nullptr
 
QLayout * diskControlLayout = nullptr
 
armem::query::data::EntityQueryPtr entityQuery
 
armem::gui::InstanceGroupBoxinstanceGroup = nullptr
 
std::atomic_bool is_connected = false
 
std::atomic_bool is_initialized = false
 
std::map< std::string, armem::wm::MemorymemoryData
 
armem::gui::MemoryGroupBoxmemoryGroup = nullptr
 
std::map< std::string, armem::client::ReadermemoryReaders
 
std::map< std::string, armem::client::WritermemoryWriters
 
armem::client::MemoryNameSystem mns
 
std::string mnsName
 
QTimer * periodicUpdateTimer
 Periodically triggers query result collection and updates the available memories. More...
 
std::map< std::string, std::future< armem::query::data::Result > > runningQueries
 
QLabel * statusLabel = nullptr
 
armem::gui::PeriodicUpdateWidgetupdateWidget = nullptr
 
QLayout * updateWidgetLayout = nullptr
 

Additional Inherited Members

- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtrgetLogSender () const
 Retrieve log sender. More...
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Detailed Description

Definition at line 40 of file MemoryViewer.h.

Constructor & Destructor Documentation

◆ MemoryViewer()

MemoryViewer ( QBoxLayout *  updateWidgetLayout,
QGroupBox *  memoryGroupBox,
QLayout *  memoryGroupBoxParentLayout,
QGroupBox *  instanceGroupBox,
QLayout *  instanceGroupBoxParentLayout,
QBoxLayout *  diskControlWidgetLayout,
QLabel *  statusLabel 
)

Definition at line 41 of file MemoryViewer.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ commit

void commit ( )
slot

Definition at line 372 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ connected

void connected ( )
signal
+ Here is the caller graph for this function:

◆ disconnected

void disconnected ( )
signal

◆ initialized

void initialized ( )
signal

◆ instanceTreeUpdated

void instanceTreeUpdated ( )
signal
+ Here is the caller graph for this function:

◆ loadFromDisk

void loadFromDisk ( QString  directory)
slot

Definition at line 434 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadSettings()

void loadSettings ( QSettings *  settings)

Definition at line 1023 of file MemoryViewer.cpp.

◆ makePrediction

void makePrediction ( const MemoryID entityID,
const aron::type::ObjectPtr entityType,
const armarx::DateTime timestamp,
const std::string &  engineID 
)
slot

Definition at line 961 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ memoryDataChanged

void memoryDataChanged ( )
signal
+ Here is the caller graph for this function:

◆ memoryTreeUpdated

void memoryTreeUpdated ( )
signal
+ Here is the caller graph for this function:

◆ queryAndStoreInLTM

void queryAndStoreInLTM ( )
slot

Definition at line 297 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readConfigDialog()

void readConfigDialog ( SimpleConfigDialog dialog)

Definition at line 1053 of file MemoryViewer.cpp.

+ Here is the call graph for this function:

◆ resolveMemoryID

void resolveMemoryID ( const MemoryID id)
slot

Definition at line 721 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveSettings()

void saveSettings ( QSettings *  settings)

Definition at line 1035 of file MemoryViewer.cpp.

◆ setLogTag()

void setLogTag ( const std::string &  tag)

Definition at line 204 of file MemoryViewer.cpp.

+ Here is the call graph for this function:

◆ showActionsMenu

void showActionsMenu ( const MemoryID memoryID,
QWidget *  parent,
const QPoint &  pos,
QMenu *  menu 
)
slot

Definition at line 858 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ startLTMRecording

void startLTMRecording ( )
slot

Definition at line 330 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stopLTMRecording

void stopLTMRecording ( )
slot

Definition at line 351 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ storeOnDisk

void storeOnDisk ( QString  directory)
slot

Definition at line 421 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateInstanceTree

void updateInstanceTree ( const armem::MemoryID selectedID)
slot

Definition at line 671 of file MemoryViewer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeConfigDialog()

void writeConfigDialog ( SimpleConfigDialog dialog)

Definition at line 1044 of file MemoryViewer.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ debugObserver

Definition at line 164 of file MemoryViewer.h.

◆ debugObserverName

std::string debugObserverName

Definition at line 163 of file MemoryViewer.h.

◆ diskControl

armem::gui::disk::ControlWidget* diskControl = nullptr

Definition at line 154 of file MemoryViewer.h.

◆ diskControlLayout

QLayout* diskControlLayout = nullptr

Definition at line 153 of file MemoryViewer.h.

◆ entityQuery

armem::query::data::EntityQueryPtr entityQuery

Definition at line 167 of file MemoryViewer.h.

◆ instanceGroup

armem::gui::InstanceGroupBox* instanceGroup = nullptr

Definition at line 158 of file MemoryViewer.h.

◆ is_connected

std::atomic_bool is_connected = false

Definition at line 171 of file MemoryViewer.h.

◆ is_initialized

std::atomic_bool is_initialized = false

Definition at line 170 of file MemoryViewer.h.

◆ memoryData

std::map<std::string, armem::wm::Memory> memoryData

Definition at line 142 of file MemoryViewer.h.

◆ memoryGroup

armem::gui::MemoryGroupBox* memoryGroup = nullptr

Definition at line 156 of file MemoryViewer.h.

◆ memoryReaders

std::map<std::string, armem::client::Reader> memoryReaders

Definition at line 139 of file MemoryViewer.h.

◆ memoryWriters

std::map<std::string, armem::client::Writer> memoryWriters

Definition at line 140 of file MemoryViewer.h.

◆ mns

Definition at line 137 of file MemoryViewer.h.

◆ mnsName

std::string mnsName

Definition at line 136 of file MemoryViewer.h.

◆ periodicUpdateTimer

QTimer* periodicUpdateTimer

Periodically triggers query result collection and updates the available memories.

Definition at line 147 of file MemoryViewer.h.

◆ runningQueries

std::map<std::string, std::future<armem::query::data::Result> > runningQueries

Definition at line 144 of file MemoryViewer.h.

◆ statusLabel

QLabel* statusLabel = nullptr

Definition at line 160 of file MemoryViewer.h.

◆ updateWidget

armem::gui::PeriodicUpdateWidget* updateWidget = nullptr

Definition at line 151 of file MemoryViewer.h.

◆ updateWidgetLayout

QLayout* updateWidgetLayout = nullptr

Definition at line 150 of file MemoryViewer.h.


The documentation for this class was generated from the following files: