DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <Event.hh>
Public Member Functions | |
Event () | |
Event (const Event &event) | |
string | type () const |
bool | isNull () const |
bool | operator== (const Event &e) const |
bool | operator< (const Event &e) const |
bool | operator> (const Event &e) const |
size_t | id () const |
Private Member Functions | |
Event (const string &type, size_t id) | |
Private Attributes | |
EventData * | _data |
Friends | |
class | EventFactory |
std::ostream & | operator<< (std::ostream &os, const Event &e) |
An Event is associated to a Transition of a PetriNet. When a PetriNet fires a Transition, it represents the fact that the associated Event occurs. An Event is an instantaneous event like in the classical discrete-event systems. The type of an Event is just the label of the Event.
|
inline |
|
inlineprivate |
Parameterized constructor
type | the type of the event to construct |
Only EventFactory should use this constructor
|
inline |
|
inline |
Definition at line 156 of file Event.hh.
References Diades::Petri::EventData::id().
Referenced by std::hash< Diades::Petri::Event >::operator()(), and Diades::Petri::PetriNet::setEvent().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
private |
Definition at line 84 of file Event.hh.
Referenced by operator<(), operator==(), and operator>().