RBF

Struct RBF 

Source
pub struct RBF<B: ArrivalBound, C: JobCostModel> {
    pub wcet: C,
    pub arrival_bound: B,
}
Expand description

The canonical request-bound function (RBF), which connects arrival bounds and job-cost models.

Given an arrival model and a job-cost model, the RBF bounds demand over an interval of length delta simply as the total cumulative cost of the maximum number of jobs that can arrive in an interval of length delta.

Fields§

§wcet: C§arrival_bound: B

Implementations§

Source§

impl<B: ArrivalBound, C: JobCostModel> RBF<B, C>

Source

pub fn new(ab: B, cm: C) -> RBF<B, C>

Construct a new RBF from the given arrival bound and cost model.

Trait Implementations§

Source§

impl<'a, B: ArrivalBound + 'a, C: JobCostModel + 'a> AsRef<dyn RequestBound + 'a> for RBF<B, C>

Source§

fn as_ref<'b>(&'b self) -> &'b (dyn RequestBound + 'a)

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<B: Clone + ArrivalBound, C: Clone + JobCostModel> Clone for RBF<B, C>

Source§

fn clone(&self) -> RBF<B, C>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<B: Debug + ArrivalBound, C: Debug + JobCostModel> Debug for RBF<B, C>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<B: ArrivalBound, C: JobCostModel> RequestBound for RBF<B, C>

Source§

fn service_needed(&self, delta: Duration) -> Service

Bound the total amount of service needed in an interval of length delta.
Source§

fn least_wcet_in_interval(&self, delta: Duration) -> Service

Expose the smallest WCET of any job encountered in an interval of length delta.
Source§

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

Yield an iterator over the interval lengths (i.e., values of delta in RequestBound::service_needed) at which the cumulative demand changes. Read more
Source§

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

Expose an iterator over the individual costs that comprise the overall demand.
Source§

fn service_needed_by_n_jobs(&self, delta: Duration, max_jobs: usize) -> Service

Bound the total amount of service needed by up to max_jobs in an interval of length delta.

Auto Trait Implementations§

§

impl<B, C> Freeze for RBF<B, C>
where C: Freeze, B: Freeze,

§

impl<B, C> RefUnwindSafe for RBF<B, C>

§

impl<B, C> Send for RBF<B, C>
where C: Send, B: Send,

§

impl<B, C> Sync for RBF<B, C>
where C: Sync, B: Sync,

§

impl<B, C> Unpin for RBF<B, C>
where C: Unpin, B: Unpin,

§

impl<B, C> UnwindSafe for RBF<B, C>
where C: UnwindSafe, B: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.