Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sergey Bozhko
rt-proofs
Commits
4e4337d6
Commit
4e4337d6
authored
May 24, 2019
by
Maxime Lesourd
Committed by
Björn Brandenburg
Jun 05, 2019
Browse files
Add sporadic task model
parent
848b0214
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
restructuring/model/arrival/sporadic.v
restructuring/model/arrival/sporadic.v
+43
-0
No files found.
restructuring/model/arrival/sporadic.v
0 → 100644
View file @
4e4337d6
From
rt
.
restructuring
.
behavior
Require
Export
arrival
.
arrival_sequence
task
.
Section
TaskMinInterArrivalTime
.
Context
{
T
:
TaskType
}.
Variable
(
task_min_inter_arrival_time
:
duration
).
Definition
valid_task_min_inter_arrival_time
:
=
task_min_inter_arrival_time
>
0
.
End
TaskMinInterArrivalTime
.
(* Definition of a generic type of parameter for task
minimum inter arrival times *)
Class
SporadicModel
(
T
:
TaskType
)
:
=
task_min_inter_arrival_time
:
T
->
duration
.
Section
SporadicModel
.
Context
{
T
:
TaskType
}
`
{
SporadicModel
T
}.
Variable
ts
:
seq
T
.
Definition
valid_taskset_min_inter_arrival_times
:
=
forall
tsk
:
T
,
tsk
\
in
ts
->
task_min_inter_arrival_time
tsk
>
0
.
Context
{
J
:
JobType
}
`
{
JobTask
J
T
}
`
{
JobArrival
J
}.
Variable
arr_seq
:
arrival_sequence
J
.
(* Then, we define the sporadic task model as follows.*)
Definition
respects_sporadic_task_model
:
=
forall
(
j
j'
:
J
),
j
<>
j'
->
(* Given two different jobs j and j' ... *)
arrives_in
arr_seq
j
->
(* ...that belong to the arrival sequence... *)
arrives_in
arr_seq
j'
->
job_task
j
=
job_task
j'
->
(* ... and that are spawned by the same task, ... *)
job_arrival
j
<=
job_arrival
j'
->
(* ... if the arrival of j precedes the arrival of j' ..., *)
(* then the arrival of j and the arrival of j' are separated by at least one period. *)
job_arrival
j'
>=
job_arrival
j
+
task_min_inter_arrival_time
(
job_task
j
).
End
SporadicModel
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment