74 return "Usage update";
105 return "Frequency update";
120 return "Dummy event";
virtual void print()
print information about the event
std::shared_ptr< TimeOut > getNextTimeout() override
std::string getName()
get the name of the event
std::string getName()
get the name of the event
std::shared_ptr< TimeOut > getNextTimeout()
static System * getInstance()
std::shared_ptr< TimeOut > getNextTimeout() override
void updateUsage()
updates the value of the usage percentage.
std::string getName() override
get the name of the event
std::shared_ptr< TimeOut > getNextTimeout() override
void scheduleTask(TriggeringEvent trigger)
This function is the scheduler. When called, it schedule the task to be executed on the processor ama...
std::shared_ptr< TimeOut > getNextTimeout() override
TaskScheduler * getScheduler()
returns the task scheduler object
void setInterval(double inter)
std::shared_ptr< Event > insert(std::shared_ptr< Event > e)
std::string getName() override
get the name of the event
virtual std::shared_ptr< TimeOut > getNextTimeout()=0
void process() override
handle the the event TODO: 'process' is maybe not the best word for that, given that our simulator ac...
Processor * getProc()
return the processor
TriggeringEvent eventType
The event type is need by the scheduling discipline, to determine if this kind of event triggers invo...
std::string getName() override
get the name of the event
static EventList * getInstance()
Singleton pattern.
void updateFreq()
invokes the frequency governor to changes the frequency of the processor