Struct rta_for_fps_lib::task::Task[][src]

pub struct Task {
    pub offset: TimeUnit,
    pub demand: TimeUnit,
    pub interval: TimeUnit,
}
Expand description

The Task type based on the Modeling described in the second paragraph of Chapter 3. in the paper

Fields

offset: TimeUnit

The offset of the tasks, O index i in the paper

demand: TimeUnit

The demand induced by the task called the worst-case execution time (WCET) C index i in the paper

interval: TimeUnit

The interval of the task, called Period P index i in the paper

Implementations

Create a new Task with the corresponding parameters

Panics

If the interval is shorter than the demand

calculate the Higher Priority task Demand for the task with priority index as defined in Definition 14. (1) in the paper, for a set of tasks indexed by their priority (lower index <=> higher priority) and up to the specified limit

Calculate the available execution Curve for the task with priority task_index of the server with priority server_index up to the specified limit.

Based on Definition 14. (2) of the paper

Calculate the actual execution Curve for the Task with priority task_index of the Server with priority server_index up to the specified limit.

Based on Definition 14. (3) of the paper

Calculate the WCRT for the task with priority task_index for the Server with priority server_index

See definition 15. of the paper for reference

Takes the system of servers that the task which worst case execution time shall be calculated is part of the priority/index of the server the Task belongs to and the tasks priority/index in that server as well as the time till which jobs that arrive prior shall be considered for the analysis

Panics

When sanity checks fail

Calculate the time till the execution curve has served t Units of Demand Implementing Algorithm 5. form the paper

Panics

When the capacity of the curve is less than t or t is TimeUnit::ZERO

Calculate the arrival for the job_index+1-th job

Note: The paper uses 1-index for jobs while this uses 0-index

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Generate the Demand Curve for the Task

Based on Definition 9. and 10. of the paper

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.