#include <eosim/core/experiment.hpp>
Collaboration diagram for eosim::core::Experiment:

This class handles the execution of a simulation. It is a main class in EOSimulator. While Model is defines the system, Experiment handles the runs.
Public Member Functions | |
| Experiment () | |
| The constructor creates an Experiment. | |
| ~Experiment () | |
| The destructor deletes all the entities scheduled. | |
| void | run (double simTime) |
| This operation simulates the connected model until simTime. | |
| void | setModel (Model *model) |
| This operation links an experiment to model. | |
| void | schedule (double offset, Entity *who) |
| This operation schedules who at the simulation’s actual time plus offset. | |
| void | setSeed (unsigned long seed) |
| This operation uses seed to assign a new seed to all distribution registered in the model. | |
| void | registerDist (dist::Distribution *dist) |
| This operation register dist in the experiment. | |
| void | registerCEvent (CEvent *cEv) |
| This operation register cEv in the experiment. | |
| double | getSimTime () |
| This operation returns the simulation’s actual time. | |
| Experiment::~Experiment | ( | ) |
The destructor deletes all the entities scheduled.
| void Experiment::run | ( | double | simTime | ) |
This operation simulates the connected model until simTime.
| void Experiment::setModel | ( | Model * | model | ) |
This operation links an experiment to model.
| void Experiment::schedule | ( | double | offset, | |
| Entity * | who | |||
| ) |
This operation schedules who at the simulation’s actual time plus offset.
| void Experiment::setSeed | ( | unsigned long | seed | ) |
This operation uses seed to assign a new seed to all distribution registered in the model.
| void Experiment::registerDist | ( | dist::Distribution * | dist | ) |
This operation register dist in the experiment.
| void Experiment::registerCEvent | ( | CEvent * | cEv | ) |
This operation register cEv in the experiment.
1.5.2