pub struct ConverterDecl {
pub name: String,
pub meta: NodeMeta,
pub p_value: String,
pub formula_to: String,
pub formula_from: String,
pub variables_to: Vec<(String, String)>,
pub variables_from: Vec<(String, String)>,
pub bindings: FormulaBindings,
pub unit: Option<String>,
pub output: SkOutput,
pub predicates: PredicateRefs,
}Expand description
Declaration of a Converter node for bidirectional value transformation.
Converters expose a floating-point value computed from an underlying register or node via a formula.
Fields§
§name: StringFeature name exposed to clients.
meta: NodeMetaShared metadata.
p_value: StringName of the node providing the raw register value.
formula_to: String<FormulaTo>: converts the feature value to the raw register value.
This is the write direction; its FROM variable is the incoming
value.
formula_from: String<FormulaFrom>: converts the raw register value to the feature value.
This is the read direction; its TO variable is the raw value.
variables_to: Vec<(String, String)>Mapping of formula variables to provider node names for formula_to.
variables_from: Vec<(String, String)>Mapping of formula variables to provider node names for formula_from.
bindings: FormulaBindingsNamed literals and sub-formulas referenced by either formula.
unit: Option<String>Engineering unit (if provided).
output: SkOutputDesired output type.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Trait Implementations§
Source§impl Clone for ConverterDecl
impl Clone for ConverterDecl
Source§fn clone(&self) -> ConverterDecl
fn clone(&self) -> ConverterDecl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more