eosim::core::CEvent                  EoSimulator Programmer's Manual

 

NAME

      CEvent: C Events

 

SYNOPSIS

      #include <eosim/core/cevent.hpp>

 

namespace eosim {

namespace core {

     

      class CEvent {

protected:

                  Model& owner;

            public:

CEvent (Model& owner_);

virtual ~CEvent ();

virtual void eventRoutine () = 0;

            };

     

}

}

 

DESCRIPTION

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). CEvents are defined by the user. All CEvents are assumed to be stateless objects. They are treated as a sample of code which is executed.

 

CLASS OPERATIONS

CEvent (Model& owner_):

      The constructor creates a CEvent which belongs to the Model owner_.

     

~CEvent ():

      The destructor of CEvent.

 

void eventRoutine ():

            This abstract operation brings an uniform interface to CEvents routines. In order to model an specific event, the programmer have to give an specific method to this operation. If the event needs to have access to its model, use the attribute owner. Keep in mind that CEvents acts to an specific model, not to an specific entity.

           

 

SEE ALSO

eosim::core::CCalendar

eosim::core::Entity

eosim::core::Model

      eosim::utils::CEventVector