PanelNode class abstract

Implemented types
Available extensions

Constructors

PanelNode({required String id, required String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, List<ElectricalNode> children, CalculationResult? result, MeasurementState? lastMeasurement, AssetMetadata assetMetadata})
const
factory

Properties

assetMetadata AssetMetadata
no setteroverride
children List<ElectricalNode>
no setter
copyWith → _$$PanelNodeImplCopyWith<_$PanelNodeImpl>
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String
no setteroverride
inputCable ConductorAttributes?
no setter
lastMeasurement MeasurementState?
no setteroverride
name String
no setteroverride
nominalVoltage double
no setter
result CalculationResult?
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ElectricalState
no setteroverride

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