rad 6.2.0
|
#include <Context.h>
Public Member Functions | |
Context () | |
Context (const Context &c) | |
Context & | operator= (const Context &c) |
~Context () | |
const std::string & | getName () const |
const std::string & | getSessionId () const |
Event * | getLastEvent () const |
void | setName (const std::string &name) |
void | setSessionId (const std::string &id) |
void | setLastEvent (Event *e) |
This class contains the information required to execute Actions or evaluate Guards.
For example it contains the last event received by the State Machine interpreter.
TODO change mLastEvent to shared_ptr
Context::Context | ( | ) |
Creates an empty context.
Context::Context | ( | const Context & | c | ) |
Copy constructor.
c | Source context to copy. |
Context::~Context | ( | ) |
Destroy a Context object.
This destructor does not deallocate memory.
Event * Context::getLastEvent | ( | ) | const |
const std::string & Context::getName | ( | ) | const |
const std::string & Context::getSessionId | ( | ) | const |
Assignment operator.
c | Source context to assign. |
void Context::setLastEvent | ( | Event * | e | ) |
Set the last event.
e | Pointer to the event. |
void Context::setName | ( | const std::string & | name | ) |
Set the name of the context.
name | Context's name. |
void Context::setSessionId | ( | const std::string & | id | ) |
Set the session identifier.
id | Session identifier. |