Main Page · Modules · All Classes · Class Hierarchy
Public Member Functions | Static Protected Attributes | List of all members
MPElement Class Reference

Base class for elements. More...

#include <MPElement.hpp>

Inheritance diagram for MPElement:
MSElement

Public Member Functions

 MPElement (MS::ElementType element_type, bool dedicated_thread=false)
 Class constructor.
 
- Public Member Functions inherited from MSElement
 MSElement (MS::ElementType element_type, bool dedicated_thread=false)
 Class constructor. More...
 
virtual ~MSElement ()
 Class destructor.
 
bool IsDedicatedThread () const
 Thread mode of the element. More...
 
int GetElementID () const
 Get the element ID. More...
 
void SetElementID (int new_id)
 Set the element ID. More...
 
int GetBeatID () const
 Get the current beat ID. More...
 
MS::ElementType GetType () const
 Get the type of the element. More...
 
QString GetClass () const
 Get the class name. More...
 
QStringList GetInputList () const
 Get the input list. More...
 
bool HasOutputs () const
 Whenever the element has any outputs. More...
 
QStringList GetOutputList () const
 Get the output list. More...
 
void AddReceiverElement (const QString &output_name, MSElement &element)
 Add a receiver element for an output. More...
 
void RemoveReceiverElement (const QString &output_name, MSElement &element)
 Remove a receiver element for an output. More...
 

Static Protected Attributes

static QPointer< MPSessionMemorySessionMemory = nullptr
 Session memory.
 

Additional Inherited Members

- Public Slots inherited from MSElement
void BeatBegin (int beat_id)
 Begin of a heart beat. More...
 
void Stop ()
 Emergency stop. More...
 
- Signals inherited from MSElement
void BeatEnd (int beat_id, MSElement *element)
 End of a heart beat. More...
 
- Protected Member Functions inherited from MSElement
virtual void StartActivities ()
 Start activities. More...
 
virtual bool ProgressTasks (bool be_hurry)
 Does the task. More...
 
virtual void StopActivities ()
 Stop activities. More...
 
MSDataGetOutputData (const QString &output_name) const
 Get an output data of the element. More...
 
void SetInputData (const QString &input_name, const MSData &new_data)
 Set an input data of the element. More...
 
void Feeding ()
 Feed the interested elements with output data. More...
 
- Protected Attributes inherited from MSElement
bool DedicatedThread
 Dedicated thread.
 
int ElementID
 Element ID.
 
int CurrentBeat
 Current Beat ID.
 
MS::StringElementMap ReceiverElements
 Receiver elements.
 
bool PlaybackMode
 Playback mode.
 
QStringList CurrentOutputList
 Specifies the available output data for the current heart beat.
 
QStringList CurrentInputList
 Specifies the available input data list for the current heart beat.
 
MS::ElementType Type
 Specifies the type of the element.
 
MS::StringDataMap InputList
 Input list.
 
MS::StringDataMap OutputList
 Output list.
 
bool EmergencyStop
 Emergency stop.
 
MSHeart * Heart
 Heart where the element is registered.
 
QMutex TasksExecutionMutex
 Mutex for the element tasks.
 

Detailed Description

Base class for elements.

Definition at line 38 of file MPElement.hpp.


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