From 88fb93f0955977db96afb5987fee5376cfa9c892 Mon Sep 17 00:00:00 2001 From: atef Date: Tue, 3 Oct 2023 15:58:33 +0200 Subject: [PATCH] Update Ac3Bus to have on S3 --- csharp/Lib/Units/Composite/Ac3Bus.cs | 39 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/csharp/Lib/Units/Composite/Ac3Bus.cs b/csharp/Lib/Units/Composite/Ac3Bus.cs index 2301c1d97..917e98f67 100644 --- a/csharp/Lib/Units/Composite/Ac3Bus.cs +++ b/csharp/Lib/Units/Composite/Ac3Bus.cs @@ -3,7 +3,8 @@ using System.Collections; namespace InnovEnergy.Lib.Units.Composite; -public record Ac3Bus : IReadOnlyList +// removed to have it on S3. Find a better solution +public record Ac3Bus // : IReadOnlyList { public required AcPhase L1 { get; init; } public required AcPhase L2 { get; init; } @@ -20,22 +21,22 @@ public record Ac3Bus : IReadOnlyList L3 = AcPhase.Zero, }; - public IEnumerator GetEnumerator() - { - yield return L1; - yield return L2; - yield return L3; - } - - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); - - public Int32 Count => 3; - - public AcPhase this[Int32 index] => index switch - { - 0 => L1, // it's retarded - 1 => L2, - 2 => L3, - _ => throw new ArgumentOutOfRangeException(nameof(index)) - }; + // public IEnumerator GetEnumerator() + // { + // yield return L1; + // yield return L2; + // yield return L3; + // } + // + // IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + // + // public Int32 Count => 3; + // + // public AcPhase this[Int32 index] => index switch + // { + // 0 => L1, // it's retarded + // 1 => L2, + // 2 => L3, + // _ => throw new ArgumentOutOfRangeException(nameof(index)) + // }; } \ No newline at end of file