DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <Event.hh>
Public Member Functions | |
const Event & | getEvent (const string &type) |
const Event & | getEvent (size_t id) const |
~EventFactory () | |
size_t | numberOfCurrentEvents () const |
Static Public Member Functions | |
static EventFactory * | Instance () |
Protected Member Functions | |
EventFactory () | |
Private Attributes | |
vector< Event > | _events |
unordered_map< string, Event > | _mapping |
Static Private Attributes | |
static EventFactory * | _instance |
This class is in charge of creating Event objects. The main idea is to avoid the creation of two objects containing the same data (EventData). When it is required to create an event, it is necessary to use the EventFactory.
|
inlineprotected |
Diades::Petri::EventFactory::~EventFactory | ( | ) |
Destructor (memory management) Once the EventFactory is destroyed, any Event objects created by this factory is invalid. The EventFactory should only be destroyed after any other data structure that contains Event objects.
|
inline |
|
inline |
|
static |
|
inline |
|
private |
Definition at line 265 of file Event.hh.
Referenced by getEvent(), and numberOfCurrentEvents().
|
staticprivate |
|
private |
Definition at line 266 of file Event.hh.
Referenced by getEvent().