use super::SupplyBound;
use crate::time::{Duration, Service};
#[derive(Debug, Clone, Copy, Default)]
pub struct Dedicated {
}
impl Dedicated {
pub fn new() -> Dedicated {
Dedicated {}
}
}
impl SupplyBound for Dedicated {
fn provided_service(&self, delta: Duration) -> Service {
Service::from(delta)
}
fn service_time(&self, demand: Service) -> Duration {
Duration::from(demand)
}
}