public class ARINC
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.
(ARINC Resource Model) ARINC Resource Model consist of (O; J;T;C; D) tuple, where O is offset,J is jitter, T is period, C is worst case execution time, and D(<=T) is deadline. Jobs of this process are dispatched at time instants xT+O for every non-negative integer x, and each job will be released for execution at any time in the interval [xT+O; xT+O+J]. For such a process it is reasonable to assume that O <= D
computed Resource Model using abstract procedure is saved in component c
Constructor and Description |
---|
ARINC() |
Modifier and Type | Method and Description |
---|---|
void |
abstractionProcedure(TreeComponent tc)
Abstract them as a single task which can schedule all sub-components.
|
static java.lang.String |
check(TreeComponent tc) |
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 specific 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
public static java.lang.String check(TreeComponent tc) throws java.lang.Exception
java.lang.Exception