FNSS C++ library
C++ API for the Fast Network Simulation Setup (FNSS) toolchain
|
#include <event-schedule.h>
Classes | |
class | IndexOutOfBoundsException |
Public Member Functions | |
EventSchedule (const Quantity &startTime_=Quantity("0s", Units::Time), const Quantity &endTime_=Quantity("0s", Units::Time)) | |
Quantity | getStartTime () const |
void | setStartTime (const Quantity &time) |
Quantity | getEndTime () const |
void | setEndTime (const Quantity &time) |
unsigned int | size () const |
Event | getEvent (unsigned int index) const |
void | addEvent (const Event &event) |
void | removeEvent (unsigned int index) |
Represent a schedule of events. Each event is represented by a time and a set of properties.
fnss::EventSchedule::EventSchedule | ( | const Quantity & | startTime_ = Quantity("0s", Units::Time) , |
const Quantity & | endTime_ = Quantity("0s", Units::Time) |
||
) |
Constructor.
startTime | the start time of the schedule. |
endTime | the end time of the schedule. |
void fnss::EventSchedule::addEvent | ( | const Event & | event | ) |
Quantity fnss::EventSchedule::getEndTime | ( | ) | const |
Get the end time of the schedule.
Event fnss::EventSchedule::getEvent | ( | unsigned int | index | ) | const |
Quantity fnss::EventSchedule::getStartTime | ( | ) | const |
Get the start time of the schedule.
void fnss::EventSchedule::removeEvent | ( | unsigned int | index | ) |
void fnss::EventSchedule::setEndTime | ( | const Quantity & | time | ) |
Get the end time of the schedule.
time | the end time of the schedule. |
void fnss::EventSchedule::setStartTime | ( | const Quantity & | time | ) |
Get the start time of the schedule.
time | the start time of the schedule. |
unsigned int fnss::EventSchedule::size | ( | ) | const |
Get the number of events present in the schedule.