#include <eosim/core/cevent.hpp>
Inheritance diagram for eosim::core::CEvent:
This is the parent class of all C events. A CEvent (conditional event) only occur when the model meets certain conditions (resources availability, queue positions, etc).
CEvent is an abstract class which represents a conditional event that is relevant to a system. CEvents are stateless objects and Model’s attributes as well as BEvent.
To create a subclass of CEvent you must implement three methods:
All CEvents belong to a Model, they have the attribute CEvent::owner to have access to its model. This parameter appear in CEvent constructor and it must be called at the constructor of any subclass.
CEvent::eventRoutine defines every action taken in this particular point in time. CEvents acts over many unspecific entities, and may change the state of the model. If one event creates or deletes an Entity, see the rules decripted in the documentation of that class.
Public Member Functions | |
CEvent (Model &owner) | |
The constructor creates a CEvent which belongs to the Model owner. | |
virtual | ~CEvent () |
The destructor of CEvent. | |
virtual void | eventRoutine ()=0 |
This abstract operation brings an uniform interface to CEvents routines. | |
Protected Attributes | |
Model & | owner |
virtual void eosim::core::CEvent::eventRoutine | ( | ) | [pure virtual] |
This abstract operation brings an uniform interface to CEvents routines.
Implemented in eosim::graphic::RefreshGraphic.