public class DMSchedulability_arinc
extends java.lang.Object
1. Compute optimal bandwidth and deadline
Using schedulability test, it compute optimal bandwidth and deadline
2. transform a resource model into a single task
supported resource model : ARINC, EDP
supported scheduling algorithm : DM
| Constructor and Description |
|---|
DMSchedulability_arinc(SchedulingComponent C,
int resPeriod)
Constructor
It set target component and target period
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeDeadline(double demand,
double time,
double theta) |
void |
computeUtilization() |
double |
getBandwidth()
It calculates optimal bandwidth of given component and given period
by using schedulability test.
|
double |
getDeadline(double bandwidth)
It calculates optimal bandwidth of given component and given period
by using schedulability test.
|
double |
getTheta(double demand,
double time) |
public DMSchedulability_arinc(SchedulingComponent C, int resPeriod) throws java.lang.Exception
C - target componentperiod - given periodjava.lang.Exceptionpublic double getBandwidth()
throws java.lang.Exception
java.lang.Exceptionnonepublic double getTheta(double demand,
double time)
public void computeUtilization()
public double getDeadline(double bandwidth)
throws java.lang.Exception
theta - execution time of given component.java.lang.Exceptionnonepublic double computeDeadline(double demand,
double time,
double theta)