ElectricalNodeDto class sealed

Implementers
Available extensions
Annotations

Constructors

ElectricalNodeDto.fromJson(Map<String, dynamic> json)
factory
ElectricalNodeDto.load({required String id, required String name, @Default(ElectricalState()) ElectricalState state, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, @Default(AssetMetadata()) AssetMetadata assetMetadata, @Default(3000) double powerWatts, @Default(0.9) double cosPhi, @Default(LoadType.power) LoadType type, @Default(false) bool isThreePhase, CatalogMetadata? cableCatalogData})
const
factory
ElectricalNodeDto.panel({required String id, required String name, @Default(ElectricalState()) ElectricalState state, @Default(230) double nominalVoltage, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, @Default(AssetMetadata()) AssetMetadata assetMetadata, @Default([]) List<ElectricalNodeDto> children})
const
factory
ElectricalNodeDto.protection({required String id, required String name, @Default(ElectricalState()) ElectricalState state, MeasurementState? lastMeasurement, @Default(AssetMetadata()) AssetMetadata assetMetadata, @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<ElectricalNodeDto> children, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData})
const
factory
ElectricalNodeDto.source({required String id, required String name, @Default(ElectricalState()) ElectricalState state, @Default(230) double nominalVoltage, @Default(10000) double shortCircuitCapacity, ConductorAttributes? mainFeedCable, MeasurementState? lastMeasurement, @Default(AssetMetadata()) AssetMetadata assetMetadata, @Default([]) List<ElectricalNodeDto> children})
const
factory

Properties

assetMetadata AssetMetadata
no setterinherited
copyWith → $ElectricalNodeDtoCopyWith<ElectricalNodeDto>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
lastMeasurement MeasurementState?
no setterinherited
name String
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(SourceNodeDto value), required TResult panel(PanelNodeDto value), required TResult protection(ProtectionNodeDto value), required TResult load(LoadNodeDto value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? source(SourceNodeDto value)?, TResult? panel(PanelNodeDto value)?, TResult? protection(ProtectionNodeDto value)?, TResult? load(LoadNodeDto value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult source(SourceNodeDto value)?, TResult panel(PanelNodeDto value)?, TResult protection(ProtectionNodeDto value)?, TResult load(LoadNodeDto value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult source(String id, String name, ElectricalState state, double nominalVoltage, double shortCircuitCapacity, ConductorAttributes? mainFeedCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children)?, TResult panel(String id, String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children)?, TResult protection(String id, String name, ElectricalState state, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, ProtectionType protectionType, double ratingAmps, double? pdc, String curve, double sensitivity, int poles, List<ElectricalNodeDto> children, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData)?, TResult load(String id, String name, ElectricalState state, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, double powerWatts, double cosPhi, LoadType type, bool isThreePhase, CatalogMetadata? cableCatalogData)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDomain() ElectricalNode

Available on ElectricalNodeDto, provided by the ElectricalNodeDtoX extension

toJson() Map<String, dynamic>
inherited
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, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children), required TResult panel(String id, String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children), required TResult protection(String id, String name, ElectricalState state, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, ProtectionType protectionType, double ratingAmps, double? pdc, String curve, double sensitivity, int poles, List<ElectricalNodeDto> children, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData), required TResult load(String id, String name, ElectricalState state, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, double powerWatts, double cosPhi, LoadType type, bool isThreePhase, CatalogMetadata? cableCatalogData)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? source(String id, String name, ElectricalState state, double nominalVoltage, double shortCircuitCapacity, ConductorAttributes? mainFeedCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children)?, TResult? panel(String id, String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children)?, TResult? protection(String id, String name, ElectricalState state, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, ProtectionType protectionType, double ratingAmps, double? pdc, String curve, double sensitivity, int poles, List<ElectricalNodeDto> children, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData)?, TResult? load(String id, String name, ElectricalState state, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, double powerWatts, double cosPhi, LoadType type, bool isThreePhase, CatalogMetadata? cableCatalogData)?}) → TResult?
inherited

Operators

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