SavingsCalculationMethod

Trait SavingsCalculationMethod 

Source
pub trait SavingsCalculationMethod {
    // Required methods
    fn calculate_savings(
        &self,
        baseline_cost: f64,
        optimized_cost: f64,
        implementation_cost: f64,
    ) -> DeviceResult<SavingsCalculation>;
    fn get_method_name(&self) -> String;
}
Expand description

Savings calculation method trait

Required Methods§

Source

fn calculate_savings( &self, baseline_cost: f64, optimized_cost: f64, implementation_cost: f64, ) -> DeviceResult<SavingsCalculation>

Source

fn get_method_name(&self) -> String

Implementors§