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

 

NAME

      CCalendar: C Events Calendar

 

SYNOPSIS

      #include <eosim/core/ccalendar.hpp>

 

namespace eosim {

namespace core {

 

            class CCalendar {

            public:

                  CCalendar ();

                  ~CCalendar ();

                  void cPhase ();

                  void registerCEvent (core::CEvent* cEv_);

            };

 

}

}

 

DESCRIPTION

This class handles the simulation’s C phase. In the three phase approach, after every B phase all conditional event are executed.

 

CLASS OPERATIONS

      CCalendar ():

            The constructor creates an empty CCalendar ready to operate.

     

~CCalendar ():

      The destructor of CCalendar.

     

      void cPhase ():

            This operation executes all the registered CEvents.

           

void registerCEvent (core::CEvent* cEv_):

            This operation register cEv_ in the CCalendar. In the C phase, CCalendar executes only registered CEvents.

           

 

SEE ALSO

eosim::core::CEvent

eosim::core::Entity

eosim::core::Experiment

      eosim::utils::CEventVector