pub struct EmcBuilder { /* private fields */ }Expand description
Builder for EquationModelCard.
Enforces that all required fields are provided before building.
Implementations§
Source§impl EmcBuilder
impl EmcBuilder
Sourcepub fn class(self, class: EquationClass) -> Self
pub fn class(self, class: EquationClass) -> Self
Set the equation class.
Sourcepub fn add_reference(self, reference: Citation) -> Self
pub fn add_reference(self, reference: Citation) -> Self
Add an additional reference.
Sourcepub fn add_variable(self, symbol: &str, name: &str, units: &str) -> Self
pub fn add_variable(self, symbol: &str, name: &str, units: &str) -> Self
Add a variable.
Sourcepub fn add_variable_full(self, variable: EquationVariable) -> Self
pub fn add_variable_full(self, variable: EquationVariable) -> Self
Add a variable with full specification.
Sourcepub fn add_verification_test(
self,
description: &str,
expected: f64,
tolerance: f64,
) -> Self
pub fn add_verification_test( self, description: &str, expected: f64, tolerance: f64, ) -> Self
Add a verification test.
Sourcepub fn add_verification_test_full(self, test: VerificationTest) -> Self
pub fn add_verification_test_full(self, test: VerificationTest) -> Self
Add a verification test with full specification.
Sourcepub fn add_domain_constraint(self, constraint: DomainConstraint) -> Self
pub fn add_domain_constraint(self, constraint: DomainConstraint) -> Self
Add a domain constraint.
Sourcepub fn add_falsification_criterion(
self,
criterion: FalsificationCriterion,
) -> Self
pub fn add_falsification_criterion( self, criterion: FalsificationCriterion, ) -> Self
Add a falsification criterion.
Sourcepub fn add_implementation_note(self, note: ImplementationNote) -> Self
pub fn add_implementation_note(self, note: ImplementationNote) -> Self
Add an implementation note.
Sourcepub fn description(self, description: &str) -> Self
pub fn description(self, description: &str) -> Self
Set the description.
Sourcepub fn add_lineage(self, parent: &str) -> Self
pub fn add_lineage(self, parent: &str) -> Self
Add a parent EMC to the lineage.
Trait Implementations§
Source§impl Debug for EmcBuilder
impl Debug for EmcBuilder
Source§impl Default for EmcBuilder
impl Default for EmcBuilder
Source§fn default() -> EmcBuilder
fn default() -> EmcBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmcBuilder
impl RefUnwindSafe for EmcBuilder
impl Send for EmcBuilder
impl Sync for EmcBuilder
impl Unpin for EmcBuilder
impl UnsafeUnpin for EmcBuilder
impl UnwindSafe for EmcBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more