public class Periodic
extends java.lang.Object
A component can be consisted of a set of sub-components or a set of periodic task. In case of a set of periodic tasks, we can consider them as a single periodic task which can schedule given periodic tasks. In case of a set of subcomponents, we can transform each component to single task. Then, we abstract them as a single task which can schedule all sub-components. In point of subcomponents, this single task can be considered as resource model supply certain amount of resouce allocation which is needed to schedule all sub-components.
(Periodic Resource Model) Periodic resource model guarantees resource allocation of ��e�� time units every ��p�� time unit, where a resource period ��p�� is a positive integer and a resource allocation time ��e�� is a real number in (0, p].
computed Resource Model using abstract procedure is saved in component c
Constructor and Description |
---|
Periodic() |
Modifier and Type | Method and Description |
---|---|
void |
abstractionProcedure(TreeComponent tc)
Abstract them as a single task which can schedule all sub-components.
|
void |
start(TreeComponent comp) |
public void start(TreeComponent comp)
public void abstractionProcedure(TreeComponent tc) throws java.lang.Exception
The tasks in the workload of c comprises of all the tasks in the TaskList data structure as well as speci c tasks from the ProcessedTaskList data structure of its children.
Function abstractionProcedure first invokes function generateInterface and then invokes function transformInterface for each period value i. gen- erateInterface returns a periodic resource model with period i, which is then transformed into a periodic task with period i by function transformInter- face.
The resource model is stored in the ResourceModelList data structure and the transformed task is stored in the ProcessedTaskList data structure of object c. Further, if c has a parent SchedulingComponent object, then the tasks in ProcessedTaskList are also copied in the ChildrenToTaskTable data structure of the parent. Finally, the Processed boolean variable of c is set to true so that appropriate visual cues can be given in the GUI indicating that c has been processe
c
- Target Componentjava.lang.Exception
none