eosim::core::BCalendar Class Reference
[Running Simulations]

#include <eosim/core/bcalendar.hpp>

Collaboration diagram for eosim::core::BCalendar:

Collaboration graph
[legend]
List of all members.

Detailed Description

B Events Calendar.

Author:
Sebastián Alaggia
Version:
1.0.1
Date:
2005
This class handles the B Events Calendar. The class main responsibility is to schedule entities for a certain time to a certain bounded event. It also handles the simulation time.


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.


Constructor & Destructor Documentation

BCalendar::~BCalendar (  ) 

The destructor deletes all the entities scheduled.

Warning:
It is assumed that all the entities had been created dynamically, so every entity stored is deleted.


Member Function Documentation

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.


Generated on Tue Sep 19 14:57:02 2006 for EOSimulator by  doxygen 1.4.7