ElectricalNode class sealed

Implementers
Available extensions
Annotations

Constructors

ElectricalNode.load({required String id, required String name, @Default(ElectricalState()) ElectricalState state, ConductorAttributes? inputCable, @Default(3000) double powerWatts, @Default(0.9) double cosPhi, @Default(LoadType.power) LoadType type, @Default(false) bool isThreePhase, CalculationResult? result, MeasurementState? lastMeasurement, @Default(AssetMetadata()) AssetMetadata assetMetadata, CatalogMetadata? cableCatalogData})
const
factory
ElectricalNode.panel({required String id, required String name, @Default(ElectricalState()) ElectricalState state, @Default(230) double nominalVoltage, ConductorAttributes? inputCable, @Default([]) List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, @Default(AssetMetadata()) AssetMetadata assetMetadata})
const
factory
ElectricalNode.protection({required String id, required String name, @Default(ElectricalState()) ElectricalState state, @Default(ProtectionType.circuitBreaker) ProtectionType protectionType, @Default(16) double ratingAmps, double? pdc, @Default("C") String curve, @Default(30.0) double sensitivity, @Default(2) int poles, @Default([]) List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, @Default(AssetMetadata()) AssetMetadata assetMetadata, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData})
const
factory
ElectricalNode.source({required String id, required String name, @Default(ElectricalState()) ElectricalState state, @Default(230) double nominalVoltage, @Default(10000) double shortCircuitCapacity, ConductorAttributes? mainFeedCable, @Default([]) List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, @Default(AssetMetadata()) AssetMetadata assetMetadata})
const
factory

Properties

assetMetadata AssetMetadata
no setterinherited
copyWith → $ElectricalNodeCopyWith<ElectricalNode>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
lastMeasurement MeasurementState?
no setterinherited
name String
no setterinherited
result CalculationResult?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ElectricalState
no setterinherited

Methods

map<TResult extends Object?>({required TResult source(SourceNode value), required TResult panel(PanelNode value), required TResult protection(ProtectionNode value), required TResult load(LoadNode value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? source(SourceNode value)?, TResult? panel(PanelNode value)?, TResult? protection(ProtectionNode value)?, TResult? load(LoadNode value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult source(SourceNode value)?, TResult panel(PanelNode value)?, TResult protection(ProtectionNode value)?, TResult load(LoadNode value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult source(String id, String name, ElectricalState state, double nominalVoltage, double shortCircuitCapacity, ConductorAttributes? mainFeedCable, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata)?, TResult panel(String id, String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata)?, TResult protection(String id, String name, ElectricalState state, ProtectionType protectionType, double ratingAmps, double? pdc, String curve, double sensitivity, int poles, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData)?, TResult load(String id, String name, ElectricalState state, ConductorAttributes? inputCable, double powerWatts, double cosPhi, LoadType type, bool isThreePhase, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, CatalogMetadata? cableCatalogData)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDto() ElectricalNodeDto

Available on ElectricalNode, provided by the ElectricalNodeX extension

toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult source(String id, String name, ElectricalState state, double nominalVoltage, double shortCircuitCapacity, ConductorAttributes? mainFeedCable, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata), required TResult panel(String id, String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata), required TResult protection(String id, String name, ElectricalState state, ProtectionType protectionType, double ratingAmps, double? pdc, String curve, double sensitivity, int poles, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData), required TResult load(String id, String name, ElectricalState state, ConductorAttributes? inputCable, double powerWatts, double cosPhi, LoadType type, bool isThreePhase, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, CatalogMetadata? cableCatalogData)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? source(String id, String name, ElectricalState state, double nominalVoltage, double shortCircuitCapacity, ConductorAttributes? mainFeedCable, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata)?, TResult? panel(String id, String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata)?, TResult? protection(String id, String name, ElectricalState state, ProtectionType protectionType, double ratingAmps, double? pdc, String curve, double sensitivity, int poles, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData)?, TResult? load(String id, String name, ElectricalState state, ConductorAttributes? inputCable, double powerWatts, double cosPhi, LoadType type, bool isThreePhase, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, CatalogMetadata? cableCatalogData)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited