public interface ITask
Modifier and Type | Method and Description |
---|---|
void |
activate(long time)
Activates a job of this task with a release time of 'time' units
|
boolean |
checkDeadlineMissed(long time)
Checks if the task missed its deadline by checking its current job at a
certain instant of time
|
ITask |
cloneTask()
Duplicates the task's object
|
PriorityQueue<Job> |
getActiveJobs()
Returns the active jobs of the task
|
Job |
getCurrentJob()
Gets the current job of the task, i.e. the first job that has not been
completed
|
long |
getDeadline()
Gets the relative deadline of the task
|
long |
getEnergyConsumption(long time)
Gets the energy consumption of the task if executed during a certain
period of time
|
IEnergyConsumptionProfile |
getEnergyConsumptionProfile() |
long |
getEnergyConsumptionRate()
Gets the energy consumption rate of the task rate = wcee / wcet
|
long |
getFirstRelease()
Gets the first release time of the task
|
int |
getId()
Gets the identifier of the task
|
Job |
getLastExecutedJob()
Gets task's last executed job
|
long |
getLaxity()
Gets the laxity (slack time) of a task
|
long |
getNextAbsoluteDeadline(long time)
Gets the absolute deadline of the next job of the task
|
long |
getNextActivation(long time)
Gets the next activation time of the task
|
long |
getNextDeadline(long time,
boolean nextPeriod)
Gets the absolute deadline of the current job of the task according to
the value of the boolean 'nextPeriod'
|
long |
getPeriod()
Gets the relative period of the task
|
long |
getPreviousAbsoluteDeadline(long date)
Gets the absolute deadline of the previous job of the task
|
int |
getPriority()
Gets the priority of the task
|
long |
getRemainingCost()
Gets the remaining time cost of task's current job
|
String |
getType()
Gets the type of the task (simple, subtask, graph, ...)
|
long |
getWcee()
Gets the worst-case execution energy consumption of the task
|
long |
getWcet()
Gets the worst-case execution time of the task
|
boolean |
isActivationTime(long time)
Checks if a new job of task can be activated at 'time' instant of time
|
boolean |
isActive()
Checks if the task has active jobs
|
boolean |
lastExecutedJobHasCompleted()
Checks if the active job is not the last executed one
|
void |
setFirstRelease(long firstRelease)
Sets the first release time of a task
|
void |
setId(int id)
Sets an identifier to the task
|
void |
setLastExecutedJob(Job lastExecutedJob)
Sets last executed job of the task
|
void |
setPriority(int priority)
Sets the priority of the task
|
int getId()
void setId(int id)
id
- task's identifier to be setlong getFirstRelease()
void setFirstRelease(long firstRelease)
firstRelease
- first release timelong getWcet()
long getWcee()
long getPeriod()
long getDeadline()
int getPriority()
void setPriority(int priority)
priority
- task's priority to be setlong getEnergyConsumptionRate()
long getEnergyConsumption(long time)
time
- number of time's unitslong getLaxity()
ITask cloneTask()
PriorityQueue<Job> getActiveJobs()
boolean isActive()
void activate(long time)
time
- time unitsJob getCurrentJob()
boolean checkDeadlineMissed(long time)
time
- time instantboolean lastExecutedJobHasCompleted()
long getRemainingCost()
long getNextDeadline(long time, boolean nextPeriod)
time
- current instant of timenextPeriod
- if true, next period of the task is calculated. If false,
current period is calculatedlong getNextActivation(long time)
time
- current timeboolean isActivationTime(long time)
time
- current timelong getNextAbsoluteDeadline(long time)
time
- current instant of timelong getPreviousAbsoluteDeadline(long date)
time
- current instant of timeJob getLastExecutedJob()
void setLastExecutedJob(Job lastExecutedJob)
lastExecutedJob
- the last executed job to setString getType()
IEnergyConsumptionProfile getEnergyConsumptionProfile()
Copyright © 2012. All Rights Reserved.