Scheduler
Static Public Member Functions | List of all members
Scheduler::TaskSetGenerator Class Reference

#include <taskSetGenerator.h>

Static Public Member Functions

static void generate (SchedulingSimulator *simulator, unsigned int nbOfTasks, double utilization, time_t seed, bool critical=true, bool integerPeriod=false, std::shared_ptr< Utils::BoundedRandomDistribution > dist=nullptr)
 generates a random task set. The deadline will be equal to the period. The start time will be 0.1 The set is then saved in the System class, in order to be accessed by some scheduling disciplines needing it. More...
 

Detailed Description

Definition at line 31 of file taskSetGenerator.h.

Member Function Documentation

void TaskSetGenerator::generate ( SchedulingSimulator simulator,
unsigned int  nbOfTasks,
double  utilization,
time_t  seed,
bool  critical = true,
bool  integerPeriod = false,
std::shared_ptr< Utils::BoundedRandomDistribution dist = nullptr 
)
static

generates a random task set. The deadline will be equal to the period. The start time will be 0.1 The set is then saved in the System class, in order to be accessed by some scheduling disciplines needing it.

Parameters
nbTasksthe number of tasks
utilizationthe total cpu utilization
seedthe seed to use for the random generator
criticalwether there is an hyperperiod at the start of which all tasks get issued Note: for the moment, critical is always true.
integerPeriodif true, the period of each task is an integer. IMPORTANT: setting this to true modifies slightly the actual utilization compared to the specified value
isRandomif true, the amount of work is random.

Definition at line 30 of file taskSetGenerator.cpp.


The documentation for this class was generated from the following files: