Skip to content
Snippets Groups Projects
Commit e3757dbb authored by Sergey Bozhko's avatar Sergey Bozhko :eyes: Committed by Björn Brandenburg
Browse files

introduce the notion of "total service of jobs"

parent b5e717e6
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ Section ServiceOfJobs. ...@@ -66,7 +66,7 @@ Section ServiceOfJobs.
End PerJobPriority. End PerJobPriority.
(** Finally, we define the notion of cumulative service received by (** We define the notion of cumulative service received by
the jobs of a given task. *) the jobs of a given task. *)
Section ServiceOfTask. Section ServiceOfTask.
...@@ -83,4 +83,21 @@ Section ServiceOfJobs. ...@@ -83,4 +83,21 @@ Section ServiceOfJobs.
End ServiceOfTask. End ServiceOfTask.
(** Finally, we define the notion of total service received by a set of jobs. *)
Section TotalService.
(** Let [jobs] denote any (finite) set of jobs. *)
Variable jobs : seq Job.
(** We define the total service of [jobs] in an interval <<[t1,t2)>> simply
as a sum of the service of individual jobs in interval <<[t1,t2)>>.
(The predicate [predT] is the trivial predicate that always evaluates to
[true], meaning that no jobs are filtered, and hence all jobs are
accounted for.) *)
Definition total_service_of_jobs_in (t1 t2 : instant) :=
service_of_jobs predT jobs t1 t2.
End TotalService.
End ServiceOfJobs. End ServiceOfJobs.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment