Phase => Bus

This commit is contained in:
ig 2023-03-01 10:52:54 +01:00
parent b983614cfc
commit fac1a090bf
12 changed files with 18 additions and 18 deletions

View File

@ -10,7 +10,7 @@ using T = BatteryStatus;
[OpParallel]
public partial record BatteryStatus : DeviceStatus, IDcConnection
{
public DcPhase Dc { get; init; }
public DcBus Dc { get; init; }
public Percent Soc { get; init; }
public Temperature Temperature { get; init; }
}

View File

@ -4,5 +4,5 @@ namespace InnovEnergy.Lib.StatusApi.Connections;
public interface IAc1Connection
{
Ac1Phase Ac { get; }
Ac1Bus Ac { get; }
}

View File

@ -4,5 +4,5 @@ namespace InnovEnergy.Lib.StatusApi.Connections;
public interface IAc3Connection
{
Ac3Phase Ac { get; }
Ac3Bus Ac { get; }
}

View File

@ -5,5 +5,5 @@ namespace InnovEnergy.Lib.StatusApi.Connections;
public interface IDcConnection
{
DcPhase Dc { get; }
DcBus Dc { get; }
}

View File

@ -4,5 +4,5 @@ namespace InnovEnergy.Lib.StatusApi.Connections;
public interface IPvConnection
{
IReadOnlyList<DcPhase> Strings { get; }
IReadOnlyList<DcBus> Strings { get; }
}

View File

@ -6,8 +6,8 @@ namespace InnovEnergy.Lib.StatusApi;
[OpParallel]
public partial record DcDcConverterStatus : DeviceStatus
{
public DcPhase Left { get; init; }
public DcPhase Right { get; init; }
public DcBus Left { get; init; }
public DcBus Right { get; init; }
}

View File

@ -7,8 +7,8 @@ namespace InnovEnergy.Lib.StatusApi;
[OpParallel]
public partial record MpptStatus : IDcConnection, IPvConnection
{
public DcPhase Dc { get; init; }
public IReadOnlyList<DcPhase> Strings { get; init; }
public DcBus Dc { get; init; }
public IReadOnlyList<DcBus> Strings { get; init; }
}

View File

@ -7,5 +7,5 @@ namespace InnovEnergy.Lib.StatusApi;
[OpParallel]
public partial record PowerMeterStatus : DeviceStatus, IAc3Connection
{
public Ac3Phase Ac { get; init; }
public Ac3Bus Ac { get; init; }
}

View File

@ -10,6 +10,6 @@ public partial record SinglePhaseInverterStatus :
IAc1Connection,
IDcConnection
{
public Ac1Phase Ac { get; init; }
public DcPhase Dc { get; init; }
public Ac1Bus Ac { get; init; }
public DcBus Dc { get; init; }
}

View File

@ -10,6 +10,6 @@ public partial record SinglePhasePvInverterStatus :
IAc1Connection,
IPvConnection
{
public Ac1Phase Ac { get; init; }
public IReadOnlyList<DcPhase> Strings { get; init; }
public Ac1Bus Ac { get; init; }
public IReadOnlyList<DcBus> Strings { get; init; }
}

View File

@ -10,7 +10,7 @@ public partial record ThreePhaseInverterStatus :
IAc3Connection,
IDcConnection
{
public Ac3Phase Ac { get; init; }
public DcPhase Dc { get; init; }
public Ac3Bus Ac { get; init; }
public DcBus Dc { get; init; }
}

View File

@ -10,6 +10,6 @@ public partial record ThreePhasePvInverterStatus :
IAc3Connection,
IPvConnection
{
public Ac3Phase Ac { get; init; }
public IReadOnlyList<DcPhase> Strings { get; init; }
public Ac3Bus Ac { get; init; }
public IReadOnlyList<DcBus> Strings { get; init; }
}