JobCostModel

Trait JobCostModel 

Source
pub trait JobCostModel {
    // Required method
    fn job_cost_iter<'a>(&'a self) -> Box<dyn Iterator<Item = Service> + 'a>;

    // Provided methods
    fn cost_of_jobs(&self, n: usize) -> Service { ... }
    fn least_wcet(&self, n: usize) -> Service { ... }
}
Expand description

The interface for models of per-job and per-job-sequence maximum execution costs.

Required Methods§

Source

fn job_cost_iter<'a>(&'a self) -> Box<dyn Iterator<Item = Service> + 'a>

Model: iterate the maximum WCETs of any sequence of consecutive jobs.

Provided Methods§

Source

fn cost_of_jobs(&self, n: usize) -> Service

Model: yield the maximum cumulative processor demand of any n consecutive jobs.

Source

fn least_wcet(&self, n: usize) -> Service

Model: yield the WCET of the job with the least WCET among any sequence of n consecutive jobs.

Implementations on Foreign Types§

Source§

impl<'b, T: 'b + JobCostModel + ?Sized> JobCostModel for &'b T

Source§

fn cost_of_jobs(&self, n: usize) -> Service

Source§

fn least_wcet(&self, n: usize) -> Service

Source§

fn job_cost_iter<'a>(&'a self) -> Box<dyn Iterator<Item = Service> + 'a>

Source§

impl<T: JobCostModel + ?Sized> JobCostModel for Box<T>

Source§

fn cost_of_jobs(&self, n: usize) -> Service

Source§

fn least_wcet(&self, n: usize) -> Service

Source§

fn job_cost_iter<'a>(&'a self) -> Box<dyn Iterator<Item = Service> + 'a>

Source§

impl<T: JobCostModel + ?Sized> JobCostModel for Rc<T>

Source§

fn cost_of_jobs(&self, n: usize) -> Service

Source§

fn least_wcet(&self, n: usize) -> Service

Source§

fn job_cost_iter<'a>(&'a self) -> Box<dyn Iterator<Item = Service> + 'a>

Implementors§