#include <eosim/core/bcalendar.hpp>
Collaboration diagram for eosim::core::BCalendar:

Public Member Functions | |
| BCalendar () | |
| The constructor creates an empty BCalendar ready to operate. | |
| ~BCalendar () | |
| The destructor deletes all the entities scheduled. | |
| void | bPhase () |
| This operation performs both A phase and B phase. | |
| bool | isStopped () |
| This operation returns true if the simulation is terminated. | |
| void | schedule (double offset, Entity *who) |
| This operation schedules who at the simulation’s actual time plus offset. It is assumed that who knows to which event is scheduled. | |
| void | setEndTime (double when) |
| This operation sets the simulation’s end time. All simulations starts at 0. | |
| double | getSimTime () |
| This operation returns the simulation’s actual time. | |
| BCalendar::~BCalendar | ( | ) |
The destructor deletes all the entities scheduled.
| void BCalendar::bPhase | ( | ) |
This operation performs both A phase and B phase.
First, the simulation time is advanced to the time of the first scheduled event.
Then BCalendar process all events which are scheduled at the actual simulation time.
1.5.2