pub struct ComponentGraphConfig {
pub allow_component_validation_failures: bool,
pub allow_unconnected_components: bool,
pub allow_unspecified_inverters: bool,
pub disable_fallback_components: bool,
pub include_phantom_loads_in_consumer_formula: bool,
pub prefer_inverters_in_pv_formula: bool,
pub prefer_inverters_in_battery_formula: bool,
pub prefer_chp_in_chp_formula: bool,
pub prefer_ev_chargers_in_ev_formula: bool,
pub prefer_wind_turbines_in_wind_formula: bool,
}Expand description
Configuration options for the ComponentGraph.
Fields§
§allow_component_validation_failures: boolWhether to allow validation errors on components. When this is true,
the graph will be built even if there are validation errors on
components.
allow_unconnected_components: boolWhether to allow unconnected components in the graph, that are not reachable from the root.
allow_unspecified_inverters: boolWhether to allow untyped inverters in the graph. When this is true,
inverters that have InverterType::Unspecified will be assumed to be
Battery inverters.
disable_fallback_components: boolWhether to disable fallback components in generated formulas. When this
is true, the formulas will not include fallback components.
include_phantom_loads_in_consumer_formula: boolMeters with successors can still have loads not represented in the component graph. These are called phantom loads.
When this is true, phantom loads are included in formulas by excluding
the measurements of successor meters from the measurements of their
predecessor meters.
When false, consumer formula is generated by excluding production
and battery components from the grid measurements.
prefer_inverters_in_pv_formula: boolWhether to prefer PV inverters when generating PV formulas. When this
is true, PV inverters will be the primary source and PV meters will be
the fallback. When false, PV meters will be the primary source.
prefer_inverters_in_battery_formula: boolWhether to prefer battery inverters when generating Battery formulas.
When this is true, battery inverters will be the primary source and
battery meters will be secondary. When false, battery meters will be
the primary source.
prefer_chp_in_chp_formula: boolWhether to prefer CHP when generating CHP formulas. When this is
true, CHP units will be the primary source and CHP meters will be
secondary. When false, CHP meters will be the primary source.
prefer_ev_chargers_in_ev_formula: boolWhether to prefer EV chargers when generating EV formulas. When this
is true, EV chargers will be the primary source and EV meters will be
secondary. When false, EV meters will be the primary source.
prefer_wind_turbines_in_wind_formula: boolWhether to prefer wind turbines when generating Wind formulas. When
this is true, wind turbines will be the primary source and wind meters
will be secondary. When false, wind meters will be the primary
source.
Trait Implementations§
Source§impl Clone for ComponentGraphConfig
impl Clone for ComponentGraphConfig
Source§fn clone(&self) -> ComponentGraphConfig
fn clone(&self) -> ComponentGraphConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more