diff --git a/csharp/app/Meiringen/Bus.cs b/csharp/app/Meiringen/Bus.cs
deleted file mode 100644
index 77cc9c427..000000000
--- a/csharp/app/Meiringen/Bus.cs
+++ /dev/null
@@ -1,6 +0,0 @@
-namespace InnovEnergy.Meiringen;
-
-public record Bus
-{
-
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/Alarms.cs b/csharp/app/Meiringen/DataTypes/Alarms.cs
deleted file mode 100644
index 8d34543c4..000000000
--- a/csharp/app/Meiringen/DataTypes/Alarms.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-
-namespace InnovEnergy.Meiringen.DataTypes;
-
-[Flags]
-[SuppressMessage("ReSharper", "InconsistentNaming")]
-[SuppressMessage("ReSharper", "IdentifierTypo")]
-public enum Alarms : UInt64
-{
- Tam = 1L << 0,
- TaM2 = 1L << 2,
- Tbm = 1L << 3,
- TbM2 = 1L << 5,
- VBm2 = 1L << 7,
- VBM2 = 1L << 9,
- IDM2 = 1L << 11,
- ISOB = 1L << 12,
- MSWE = 1L << 13,
- FUSE = 1L << 14,
- HTRE = 1L << 15,
- TCPE = 1L << 16,
- STRE = 1L << 17,
- CME = 1L << 18,
- HWFL = 1L << 19,
- HWEM = 1L << 20,
- ThM = 1L << 21,
- vsm1 = 1L << 22,
- vsm2 = 1L << 23,
- vsM2 = 1L << 25,
- iCM2 = 1L << 27,
- iDM2 = 1L << 29,
- MID2 = 1L << 31,
- CCBF = 1L << 33,
- AhFL = 1L << 34,
- TbCM = 1L << 36,
- BRNF = 1L << 37,
- HTFS = 1L << 42,
- DATA = 1L << 43,
- CELL2 = 1L << 45,
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/BatteryState.cs b/csharp/app/Meiringen/DataTypes/BatteryState.cs
deleted file mode 100644
index 60bdaf401..000000000
--- a/csharp/app/Meiringen/DataTypes/BatteryState.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace InnovEnergy.Meiringen.DataTypes;
-
-public enum BatteryState : UInt16
-{
- EocReached ,
- Cold ,
- Heating ,
- Charging ,
- Discharging ,
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/BatteryStatus.cs b/csharp/app/Meiringen/DataTypes/BatteryStatus.cs
deleted file mode 100644
index 8b8c294cd..000000000
--- a/csharp/app/Meiringen/DataTypes/BatteryStatus.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-//using InnovEnergy.S3.Records.Fields;
-
-namespace InnovEnergy.Meiringen.DataTypes;
-
-public record BatteryStatus
-{
- public MainStats MainStats { get; init; }
- public Leds Leds { get; init; }
- public Warnings Warnings { get; init; }
- public Alarms Alarms { get; init; }
- public IoStatus IoStatus { get; init; }
- public Temperatures TemperatureManagement { get; init; }
- public BmsInfo BmsInfo { get; init; }
-
- //public BatteryState BatteryState { get; init; }
- //public Limits OperationalLimits { get; init; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/BmsInfo.cs b/csharp/app/Meiringen/DataTypes/BmsInfo.cs
deleted file mode 100644
index 09514ffde..000000000
--- a/csharp/app/Meiringen/DataTypes/BmsInfo.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace InnovEnergy.Meiringen.DataTypes;
-
-public record BmsInfo
-{
- public String FirmwareVersion { get; init; }
- public String HardwareVersion { get; init; }
- public String BmsVersion { get; init; }
- public UInt32 RtcCounter { get; init; }
- public String SlaveId { get; init; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/IoStatus.cs b/csharp/app/Meiringen/DataTypes/IoStatus.cs
deleted file mode 100644
index 5964e3c83..000000000
--- a/csharp/app/Meiringen/DataTypes/IoStatus.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-
-namespace InnovEnergy.Meiringen.DataTypes;
-
-[Flags]
-[SuppressMessage("ReSharper", "InconsistentNaming")]
-[SuppressMessage("ReSharper", "IdentifierTypo")]
-public enum IoStatus : UInt16
-{
- MainSwitchClosed = 1 << 0,
- AlarmOutActive = 1 << 1,
- InternalFanActive = 1 << 2,
- VoltMeasurementAllowed = 1 << 3,
- AuxRelay = 1 << 4,
- RemoteState = 1 << 5,
- HeaterOn = 1 << 6,
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/LedState.cs b/csharp/app/Meiringen/DataTypes/LedState.cs
deleted file mode 100644
index 970c1ed8f..000000000
--- a/csharp/app/Meiringen/DataTypes/LedState.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace InnovEnergy.Meiringen.DataTypes;
-
-public enum LedState : Byte
-{
- Off = 0,
- On = 1,
- BlinkingSlow = 2,
- BlinkingFast = 3,
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/Leds.cs b/csharp/app/Meiringen/DataTypes/Leds.cs
deleted file mode 100644
index e6fa3443c..000000000
--- a/csharp/app/Meiringen/DataTypes/Leds.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace InnovEnergy.Meiringen.DataTypes;
-
-public record Leds
-{
- public LedState Red { get; init; }
- public LedState Green { get; init; }
- public LedState Blue { get; init; }
- public LedState Amber { get; init; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/Limits.cs b/csharp/app/Meiringen/DataTypes/Limits.cs
deleted file mode 100644
index 22c53eadb..000000000
--- a/csharp/app/Meiringen/DataTypes/Limits.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using InnovEnergy.S3.Records.Fields;
-
-
-namespace InnovEnergy.Meiringen.DataTypes;
-
-public record Limits
-{
- [Unit("A")] public Double MaxDischargeCurrent { get; init; }
- [Unit("A")] public Double MaxChargeCurrent { get; init; }
- [Unit("V")] public Double MaxChargeVoltage { get; init; }
- [Unit("V")] public Double MinDischargeVoltage { get; init; }
- [Unit("W")] public Double MaxChargePower { get; init; }
- [Unit("W")] public Double MaxDischargePower { get; init; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/MainStats.cs b/csharp/app/Meiringen/DataTypes/MainStats.cs
deleted file mode 100644
index 44a489a49..000000000
--- a/csharp/app/Meiringen/DataTypes/MainStats.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using InnovEnergy.S3.Records.Fields;
-
-namespace InnovEnergy.Meiringen.DataTypes;
-
-public record MainStats
-{
- [Unit("V")] public Double BusVoltage { get; init; }
- [Unit("V")] public Double StringsVoltage { get; init; }
- [Unit("A")] public Double Current { get; init; }
- [Unit("%")] public Double Soc { get; init; }
- [Unit("°C")] public Double Temperature { get; init; }
- [Unit("Wh")] public Double Capacity { get; init; }
- [Unit("W")] public Double Power => Current * StringsVoltage;
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/Temperatures.cs b/csharp/app/Meiringen/DataTypes/Temperatures.cs
deleted file mode 100644
index 185fd1571..000000000
--- a/csharp/app/Meiringen/DataTypes/Temperatures.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using InnovEnergy.S3.Records.Fields;
-
-namespace InnovEnergy.Meiringen.DataTypes;
-
-public record Temperatures
-{
- [Unit("°C")] public Double Battery { get; init; }
- [Unit("°C")] public Double Board { get; init; }
- [Unit("°C")] public Double Center { get; init; }
- [Unit("°C")] public Double Lateral1 { get; init; }
- [Unit("°C")] public Double Lateral2 { get; init; }
- [Unit("%")] public Double CenterHeaterPwm { get; init; }
- [Unit("%")] public Double LateralHeaterPwm { get; init; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/DataTypes/Warnings.cs b/csharp/app/Meiringen/DataTypes/Warnings.cs
deleted file mode 100644
index 187189b80..000000000
--- a/csharp/app/Meiringen/DataTypes/Warnings.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-
-namespace InnovEnergy.Meiringen.DataTypes;
-
-[Flags]
-[SuppressMessage("ReSharper", "InconsistentNaming")]
-[SuppressMessage("ReSharper", "IdentifierTypo")]
-public enum Warnings : UInt64
-{
- TaM1 = 1L << 1,
- TbM1 = 1L << 4,
- VBm1 = 1L << 6,
- VBM1 = 1L << 8,
- IDM1 = 1L << 10,
- vsM1 = 1L << 24,
- iCM1 = 1L << 26,
- iDM1 = 1L << 28,
- MID1 = 1L << 30,
- BLPW = 1L << 32,
- Ah_W = 1L << 35,
- MPMM = 1L << 38,
- TCMM = 1L << 39,
- TCdi = 1L << 40,
- WMTO = 1L << 41,
- CELL1 = 1L << 46,
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Meiringen.csproj b/csharp/app/Meiringen/Meiringen.csproj
deleted file mode 100644
index 2c414d777..000000000
--- a/csharp/app/Meiringen/Meiringen.csproj
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
- InnovEnergy.Meiringen
- true
- Meiringen
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/csharp/app/Meiringen/Program.cs b/csharp/app/Meiringen/Program.cs
deleted file mode 100644
index 5bfcaf6f1..000000000
--- a/csharp/app/Meiringen/Program.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-using System.Reactive.Linq;
-using System.Text.Json;
-using Flurl.Http;
-using InnovEnergy.S3.Drivers;
-using InnovEnergy.Lib.Utils;
-using static System.StringSplitOptions;
-
-namespace InnovEnergy.Meiringen;
-
-/*
-dotnet publish Meiringen.csproj -c Release -r linux-arm -p:PublishSingleFile=true --self-contained false && \
-rsync -av bin/Release/net5.0/linux-arm/publish/ debian@10.2.1.87:/home/debian/Monitor && \
-ssh debian@10.2.1.87 /home/debian/Monitor/Meiringen /home/debian/trumpf/csvData
-*/
-
-class Program
-{
- //private static UdpClient _incomingSocket = new UdpClient(Settings.IncomingEndPoint);
-
- private static readonly S3Config S3Config = new S3Config
- {
- Bucket = "meiringen",
- Region = "sos-ch-dk-2",
- Provider = "exo.io",
- ContentType = "text/plain; charset=utf-8",
- //Key = "EXO821fc7a9a3ea6d7365b0c6b8",
- //Secret = "xiCpn5f9sFeyXL81CG7iTqDGkTekNsrJ-_bJRiyRp9Q"
- Key = "EXO36c6c169fbe39800742f4f56",
- Secret = "MA5svEdwwNF9XaLO-8PKj_P325Ovog5aeihPAc88R1w"
- };
-
- public static void Main(String[] args)
- {
- var path = args.FirstOrDefault() ?? ".";
-
- Console.WriteLine("Starting");
-
- Observable.Interval(TimeSpan.FromSeconds(2))
- .SelectMany(_ => TryUploadData(path))
- .Subscribe(Console.WriteLine);
-
- Console.ReadLine();
- }
-
-
- private static async Task TryUploadData(String path)
- {
- try
- {
- return await UploadData(path);
- }
- catch (Exception e)
- {
- return e.ToString();
- }
- }
-
- private static async Task UploadData(String path)
- {
- // var pv = ReadFile(path, "PV.csv").FirstOrDefault();
- // var grid = ReadFile(path, "gridPower.csv").FirstOrDefault();
- // var inverter = -ReadFile(path, "inverterPower.csv").FirstOrDefault();
- // var acLoad = ReadFile(path, "loadPower.csv").FirstOrDefault();
- // var socBattery = ReadFile(path, "battery.csv");
- //
- // var soc = socBattery.ElementAtOrDefault(0);
- // var battery = -socBattery.ElementAtOrDefault(1);
-
-
- var battery = 0;
- var soc = 1;
- var pv = 2;
- var grid = 3;
- var inverter = 4;
- var acLoad = 5;
-
-
- var data = new
- {
- battery,
- soc,
- pv,
- grid,
- inverter,
- acLoad,
- };
-
- var json = JsonSerializer.Serialize(data);
-
- var unixTime = DateTimeOffset.UtcNow.ToUnixTimeSeconds() / 2 * 2;
- var s3Path = "/" + unixTime;
-
- var request = S3Config.CreatePutRequest(s3Path);
-
- var response = await request.PutAsync(new StringContent(json));
-
- if (response.StatusCode == 200)
- return "PUT " + s3Path;
-
- var error = await response.GetStringAsync();
- return "ERROR: " + error;
- }
-
- private static IReadOnlyList ReadFile(String path, String file)
- {
- var fullPath = Path.Combine(path, file);
-
- return File
- .ReadAllText(fullPath)
- .Trim()
- .Split(',', TrimEntries | RemoveEmptyEntries)
- .Select(ParseDouble)
- .ToList();
-
- Double ParseDouble(String s) => Double.TryParse(s, out var value) ? value : 0;
- }
-
-
-
-
- private static IEnumerable FakeDataSource(Double min, Double max)
- {
- var amplitude = (max - min)/2;
-
- return EnumerableUtils
- .InfinitelyMany(0)
- .Select(_ => Random.Shared.NextDouble() * 2 - 1)
- .IntegrateNormalize()
- .Select(x => x * .5) // those constants have been drawn out of thin air to make it look good
- .IntegrateNormalize()
- .Select(x => x * .1)
- .IntegrateNormalize()
- .Select(x => (x + 1) * amplitude + min);
-
-
- }
-
-
-
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Records/AlarmsOld.cs b/csharp/app/Meiringen/Records/AlarmsOld.cs
deleted file mode 100644
index 87b69d3bd..000000000
--- a/csharp/app/Meiringen/Records/AlarmsOld.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-// ReSharper disable IdentifierTypo
-// ReSharper disable UnusedAutoPropertyAccessor.Global
-// ReSharper disable InconsistentNaming
-
-namespace InnovEnergy.Meiringen.Records;
-
-public class AlarmsOld : BatteryRecordOld
-{
- public String Installation { get; set; }
- public String BatteryId { get; set; }
-
- public Boolean Tam { get; set; }
- public Boolean TaM2 { get; set; }
- public Boolean Tbm { get; set; }
- public Boolean TbM2 { get; set; }
- public Boolean VBm2 { get; set; }
- public Boolean VBM2 { get; set; }
- public Boolean IDM2 { get; set; }
- public Boolean MSWE { get; set; }
- public Boolean FUSE { get; set; }
- public Boolean HTRE { get; set; }
- public Boolean TCPE { get; set; }
- public Boolean CME { get; set; }
- public Boolean HWFL { get; set; }
- public Boolean HWEM { get; set; }
- public Boolean ThM { get; set; }
- public Boolean vsm1 { get; set; }
- public Boolean vsm2 { get; set; }
- public Boolean vsM2 { get; set; }
- public Boolean iCM2 { get; set; }
- public Boolean iDM2 { get; set; }
- public Boolean MID2 { get; set; }
- public Boolean CCBF { get; set; }
- public Boolean AhFL { get; set; }
- public Boolean TbCM { get; set; }
- public Boolean HTFS { get; set; }
- public Boolean DATA { get; set; }
- public Boolean ISOB { get; set; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Records/BatteryRecordOld.cs b/csharp/app/Meiringen/Records/BatteryRecordOld.cs
deleted file mode 100644
index b624fc3b0..000000000
--- a/csharp/app/Meiringen/Records/BatteryRecordOld.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-namespace InnovEnergy.Meiringen.Records;
-
-public abstract class BatteryRecordOld
-{}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Records/BatteryStatusOld.cs b/csharp/app/Meiringen/Records/BatteryStatusOld.cs
deleted file mode 100644
index 7795ed03e..000000000
--- a/csharp/app/Meiringen/Records/BatteryStatusOld.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-// ReSharper disable UnusedAutoPropertyAccessor.Global
-// ReSharper disable MemberCanBePrivate.Global
-
-namespace InnovEnergy.Meiringen.Records;
-
-public class BatteryStatusOld : BatteryRecordOld
-{
- public String InstallationName { get; set; }
- public String BatteryId { get; set; }
-
- public String HardwareVersion { get; set; }
- public String FirmwareVersion { get; set; }
- public String BmsVersion { get; set; }
- public UInt32 AmpereHours { get; set; }
- public UInt32 RtcCounter { get; set; }
-
- public Decimal Voltage { get; set; }
- public Decimal Current { get; set; }
- public Decimal BusVoltage { get; set; }
- public Decimal Soc { get; set; }
- public Decimal Temperature { get; set; }
-
- public UInt64 WarningsBitmap { get; set; }
- public UInt64 AlarmsBitmap { get; set; }
-
- public DateTime LastSeen { get; set; }
-
- public String IpAddress { get; set; }
- public Int32 Port { get; set; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Records/Error.cs b/csharp/app/Meiringen/Records/Error.cs
deleted file mode 100644
index 6abf6c147..000000000
--- a/csharp/app/Meiringen/Records/Error.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-// ReSharper disable UnusedAutoPropertyAccessor.Global
-
-namespace InnovEnergy.Meiringen.Records;
-
-public class Error : BatteryRecordOld
-{
- public String Message { get; set; }
- public String IpAddress { get; set; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Records/InstallationStatus.cs b/csharp/app/Meiringen/Records/InstallationStatus.cs
deleted file mode 100644
index 4c8c5057f..000000000
--- a/csharp/app/Meiringen/Records/InstallationStatus.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-namespace InnovEnergy.Meiringen.Records;
-
-public class InstallationStatus : BatteryRecordOld
-{
- public String InstallationName { get; set; }
-
- public Decimal Voltage { get; set; }
- public Decimal Current { get; set; }
- public Decimal BusVoltage { get; set; }
- public Decimal Soc { get; set; }
- public Decimal Temperature { get; set; }
-
- public Int64 LastSeen { get; set; }
-
- public String IpAddress { get; set; }
- public Int32 Port { get; set; }
-
-
- // Warnings
- public Boolean TaM1 { get; set; }
- public Boolean TbM1 { get; set; }
- public Boolean VBm1 { get; set; }
- public Boolean VBM1 { get; set; }
- public Boolean IDM1 { get; set; }
- public Boolean vsM1 { get; set; }
- public Boolean iCM1 { get; set; }
- public Boolean iDM1 { get; set; }
- public Boolean MID1 { get; set; }
- public Boolean BLPW { get; set; }
- public Boolean Ah_W { get; set; }
- public Boolean MPMM { get; set; }
- public Boolean TCMM { get; set; }
- public Boolean TCdi { get; set; }
-
- // Alarms
- public Boolean Tam { get; set; }
- public Boolean TaM2 { get; set; }
- public Boolean Tbm { get; set; }
- public Boolean TbM2 { get; set; }
- public Boolean VBm2 { get; set; }
- public Boolean VBM2 { get; set; }
- public Boolean IDM2 { get; set; }
- public Boolean MSWE { get; set; }
- public Boolean FUSE { get; set; }
- public Boolean HTRE { get; set; }
- public Boolean TCPE { get; set; }
- public Boolean CME { get; set; }
- public Boolean HWFL { get; set; }
- public Boolean HWEM { get; set; }
- public Boolean ThM { get; set; }
- public Boolean vsm1 { get; set; }
- public Boolean vsm2 { get; set; }
- public Boolean vsM2 { get; set; }
- public Boolean iCM2 { get; set; }
- public Boolean iDM2 { get; set; }
- public Boolean MID2 { get; set; }
- public Boolean CCBF { get; set; }
- public Boolean AhFL { get; set; }
- public Boolean TbCM { get; set; }
- public Boolean HTFS { get; set; }
- public Boolean DATA { get; set; }
- public Boolean ISOB { get; set; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Records/IoStatusOld.cs b/csharp/app/Meiringen/Records/IoStatusOld.cs
deleted file mode 100644
index 2564635ce..000000000
--- a/csharp/app/Meiringen/Records/IoStatusOld.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-// ReSharper disable UnusedAutoPropertyAccessor.Global
-
-namespace InnovEnergy.Meiringen.Records;
-
-public class IoStatusOld : BatteryRecordOld
-{
- public String Installation { get; set; }
- public String BatteryId { get; set; }
-
- public Boolean MainSwitchClosed { get; set; }
- public Boolean AlarmOutActive { get; set; }
- public Boolean InternalFanActive { get; set; }
- public Boolean VoltMeasurementAllowed { get; set; }
- public Boolean AuxRelay { get; set; }
- public Boolean RemoteState { get; set; }
- public Boolean HeatingOn { get; set; }
-
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Records/LedsOld.cs b/csharp/app/Meiringen/Records/LedsOld.cs
deleted file mode 100644
index f2b8aedab..000000000
--- a/csharp/app/Meiringen/Records/LedsOld.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-// ReSharper disable UnusedAutoPropertyAccessor.Global
-// ReSharper disable UnusedMember.Global
-
-namespace InnovEnergy.Meiringen.Records;
-
-public class LedsOld : BatteryRecordOld
-{
- public String Installation { get; set; }
- public String BatteryId { get; set; }
-
- public LedStateOld Green { get; set; }
- public LedStateOld Amber { get; set; }
- public LedStateOld Blue { get; set; }
- public LedStateOld Red { get; set; }
-}
-
-
-public enum LedStateOld : byte
-{
- Off = 0b00,
- On = 0b01,
- BlinkingSlow = 0b10,
- BlinkingFast = 0b11,
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Records/TemperaturesOld.cs b/csharp/app/Meiringen/Records/TemperaturesOld.cs
deleted file mode 100644
index de5f28485..000000000
--- a/csharp/app/Meiringen/Records/TemperaturesOld.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-// ReSharper disable UnusedAutoPropertyAccessor.Global
-
-namespace InnovEnergy.Meiringen.Records;
-
-public class TemperaturesOld : BatteryRecordOld
-{
- public String Installation { get; set; }
- public String BatteryId { get; set; }
-
- public Decimal Battery { get; set; }
- public Decimal Board { get; set; }
- public Decimal Center { get; set; }
- public Decimal Lateral1 { get; set; }
- public Decimal Lateral2 { get; set; }
- public Decimal CenterHeaterPwm { get; set; }
- public Decimal LateralHeaterPwm { get; set; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Records/WarningsOld.cs b/csharp/app/Meiringen/Records/WarningsOld.cs
deleted file mode 100644
index 2d211e0fb..000000000
--- a/csharp/app/Meiringen/Records/WarningsOld.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-// ReSharper disable IdentifierTypo
-// ReSharper disable UnusedAutoPropertyAccessor.Global
-// ReSharper disable InconsistentNaming
-
-
-namespace InnovEnergy.Meiringen.Records;
-
-public class WarningsOld : BatteryRecordOld
-{
- public String Installation { get; set; }
- public String BatteryId { get; set; }
-
- public Boolean TaM1 { get; set; }
- public Boolean TbM1 { get; set; }
- public Boolean VBm1 { get; set; }
- public Boolean VBM1 { get; set; }
- public Boolean IDM1 { get; set; }
- public Boolean vsM1 { get; set; }
- public Boolean iCM1 { get; set; }
- public Boolean iDM1 { get; set; }
- public Boolean MID1 { get; set; }
- public Boolean BLPW { get; set; }
- public Boolean Ah_W { get; set; }
- public Boolean MPMM { get; set; }
- public Boolean TCMM { get; set; }
- public Boolean TCdi { get; set; }
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Settings.cs b/csharp/app/Meiringen/Settings.cs
deleted file mode 100644
index fd5a81d26..000000000
--- a/csharp/app/Meiringen/Settings.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Net;
-
-namespace InnovEnergy.Meiringen;
-
-public static class Settings
-{
- public const String ProtocolV3 = "48TL200V3";
-
- public static readonly IPEndPoint IncomingEndPoint = IPEndPoint.Parse("127.0.0.1:8134");
-}
\ No newline at end of file
diff --git a/csharp/app/Meiringen/Types.cs b/csharp/app/Meiringen/Types.cs
deleted file mode 100644
index 29f140f13..000000000
--- a/csharp/app/Meiringen/Types.cs
+++ /dev/null
@@ -1,2616 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: src/protobuf/types.proto
-//
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-/// Holder for reflection information generated from src/protobuf/types.proto
-public static partial class TypesReflection {
-
- #region Descriptor
- /// File descriptor for src/protobuf/types.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static TypesReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "ChhzcmMvcHJvdG9idWYvdHlwZXMucHJvdG8iJgoCRGMSDwoHdm9sdGFnZRgB",
- "IAEoAhIPCgdjdXJyZW50GAIgASgCIiYKAkFjEg8KB3ZvbHRhZ2UYASABKAIS",
- "DwoHY3VycmVudBgCIAEoAiI4CgNBYzMSDwoCTDEYASABKAsyAy5BYxIPCgJM",
- "MhgCIAEoCzIDLkFjEg8KAkwzGAMgASgLMgMuQWMiLAoISW52ZXJ0ZXISDwoC",
- "YWMYASABKAsyAy5BYxIPCgJkYxgCIAEoCzIDLkRjIi4KCUludmVydGVyMxIQ",
- "CgJhYxgBIAEoCzIELkFjMxIPCgJkYxgCIAEoCzIDLkRjIigKB0JhdHRlcnkS",
- "CwoDc29jGAEgASgCEhAKA2J1cxgCIAEoCzIDLkRjInEKBUFjQnVzEhMKBnNv",
- "dXJjZRgBIAEoCzIDLkFjEhEKBHNpbmsYAiABKAsyAy5BYxIhCgpzb3VyY2VU",
- "eXBlGAMgASgOMg0uQWNTb3VyY2VUeXBlEh0KCHNpbmtUeXBlGAQgASgOMgsu",
- "QWNTaW5rVHlwZSJ0CgZBY0J1czMSFAoGc291cmNlGAEgASgLMgQuQWMzEhIK",
- "BHNpbmsYAiABKAsyBC5BYzMSIQoKc291cmNlVHlwZRgDIAEoDjINLkFjU291",
- "cmNlVHlwZRIdCghzaW5rVHlwZRgEIAEoDjILLkFjU2lua1R5cGUicQoFRGNC",
- "dXMSEwoGc291cmNlGAEgASgLMgMuRGMSEQoEc2luaxgCIAEoCzIDLkRjEiEK",
- "CnNvdXJjZVR5cGUYAyABKA4yDS5EY1NvdXJjZVR5cGUSHQoIc2lua1R5cGUY",
- "BCABKA4yCy5EY1NpbmtUeXBlIowBChFTaW5nbGVQaGFzZVN5c3RlbRIRCgRn",
- "cmlkGAEgASgLMgMuQWMSFQoFYWNCdXMYAiADKAsyBi5BY0J1cxIbCghpbnZl",
- "cnRlchgDIAEoCzIJLkludmVydGVyEhUKBWRjQnVzGAQgAygLMgYuRGNCdXMS",
- "GQoHYmF0dGVyeRgFIAEoCzIILkJhdHRlcnkijgEKEFRocmVlUGhhc2VTeXN0",
- "ZW0SEgoEZ3JpZBgBIAEoCzIELkFjMxIWCgVhY0J1cxgCIAMoCzIHLkFjQnVz",
- "MxIcCghpbnZlcnRlchgDIAEoCzIKLkludmVydGVyMxIVCgVkY0J1cxgEIAMo",
- "CzIGLkRjQnVzEhkKB2JhdHRlcnkYBSABKAsyCC5CYXR0ZXJ5IicKClN5c3Rl",
- "bURhdGESGQoCdjEYASABKAsyDS5TeXN0ZW1EYXRhVjEiagoMU3lzdGVtRGF0",
- "YVYxEikKC3NpbmdsZVBoYXNlGAEgASgLMhIuU2luZ2xlUGhhc2VTeXN0ZW1I",
- "ABInCgp0aHJlZVBoYXNlGAMgASgLMhEuVGhyZWVQaGFzZVN5c3RlbUgAQgYK",
- "BGRhdGEqHgoMQWNTb3VyY2VUeXBlEg4KClB2SW52ZXJ0ZXIQACoqCgpBY1Np",
- "bmtUeXBlEgoKBkFjTG9hZBAAEhAKDENyaXRpY2FsTG9hZBABKhgKDERjU291",
- "cmNlVHlwZRIICgRNcHB0EAAqGAoKRGNTaW5rVHlwZRIKCgZEY0xvYWQQAGIG",
- "cHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AcSourceType), typeof(global::AcSinkType), typeof(global::DcSourceType), typeof(global::DcSinkType), }, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Dc), global::Dc.Parser, new[]{ "Voltage", "Current" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Ac), global::Ac.Parser, new[]{ "Voltage", "Current" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Ac3), global::Ac3.Parser, new[]{ "L1", "L2", "L3" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Inverter), global::Inverter.Parser, new[]{ "Ac", "Dc" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Inverter3), global::Inverter3.Parser, new[]{ "Ac", "Dc" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Battery), global::Battery.Parser, new[]{ "Soc", "Bus" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AcBus), global::AcBus.Parser, new[]{ "Source", "Sink", "SourceType", "SinkType" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AcBus3), global::AcBus3.Parser, new[]{ "Source", "Sink", "SourceType", "SinkType" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::DcBus), global::DcBus.Parser, new[]{ "Source", "Sink", "SourceType", "SinkType" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::SinglePhaseSystem), global::SinglePhaseSystem.Parser, new[]{ "Grid", "AcBus", "Inverter", "DcBus", "Battery" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::ThreePhaseSystem), global::ThreePhaseSystem.Parser, new[]{ "Grid", "AcBus", "Inverter", "DcBus", "Battery" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::SystemData), global::SystemData.Parser, new[]{ "V1" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::SystemDataV1), global::SystemDataV1.Parser, new[]{ "SinglePhase", "ThreePhase" }, new[]{ "Data" }, null, null)
- }));
- }
- #endregion
-
-}
-#region Enums
-public enum AcSourceType {
- [pbr::OriginalName("PvInverter")] PvInverter = 0,
-}
-
-public enum AcSinkType {
- [pbr::OriginalName("AcLoad")] AcLoad = 0,
- [pbr::OriginalName("CriticalLoad")] CriticalLoad = 1,
-}
-
-public enum DcSourceType {
- [pbr::OriginalName("Mppt")] Mppt = 0,
-}
-
-public enum DcSinkType {
- [pbr::OriginalName("DcLoad")] DcLoad = 0,
-}
-
-#endregion
-
-#region Messages
-public sealed partial class Dc : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Dc());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Dc() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Dc(Dc other) : this() {
- voltage_ = other.voltage_;
- current_ = other.current_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Dc Clone() {
- return new Dc(this);
- }
-
- /// Field number for the "voltage" field.
- public const int VoltageFieldNumber = 1;
- private float voltage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Voltage {
- get { return voltage_; }
- set {
- voltage_ = value;
- }
- }
-
- /// Field number for the "current" field.
- public const int CurrentFieldNumber = 2;
- private float current_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Current {
- get { return current_; }
- set {
- current_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Dc);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Dc other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Voltage, other.Voltage)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Current, other.Current)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Voltage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Voltage);
- if (Current != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Current);
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Voltage != 0F) {
- output.WriteRawTag(13);
- output.WriteFloat(Voltage);
- }
- if (Current != 0F) {
- output.WriteRawTag(21);
- output.WriteFloat(Current);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Voltage != 0F) {
- size += 1 + 4;
- }
- if (Current != 0F) {
- size += 1 + 4;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Dc other) {
- if (other == null) {
- return;
- }
- if (other.Voltage != 0F) {
- Voltage = other.Voltage;
- }
- if (other.Current != 0F) {
- Current = other.Current;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 13: {
- Voltage = input.ReadFloat();
- break;
- }
- case 21: {
- Current = input.ReadFloat();
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class Ac : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Ac());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Ac() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Ac(Ac other) : this() {
- voltage_ = other.voltage_;
- current_ = other.current_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Ac Clone() {
- return new Ac(this);
- }
-
- /// Field number for the "voltage" field.
- public const int VoltageFieldNumber = 1;
- private float voltage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Voltage {
- get { return voltage_; }
- set {
- voltage_ = value;
- }
- }
-
- /// Field number for the "current" field.
- public const int CurrentFieldNumber = 2;
- private float current_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Current {
- get { return current_; }
- set {
- current_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Ac);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Ac other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Voltage, other.Voltage)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Current, other.Current)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Voltage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Voltage);
- if (Current != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Current);
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Voltage != 0F) {
- output.WriteRawTag(13);
- output.WriteFloat(Voltage);
- }
- if (Current != 0F) {
- output.WriteRawTag(21);
- output.WriteFloat(Current);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Voltage != 0F) {
- size += 1 + 4;
- }
- if (Current != 0F) {
- size += 1 + 4;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Ac other) {
- if (other == null) {
- return;
- }
- if (other.Voltage != 0F) {
- Voltage = other.Voltage;
- }
- if (other.Current != 0F) {
- Current = other.Current;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 13: {
- Voltage = input.ReadFloat();
- break;
- }
- case 21: {
- Current = input.ReadFloat();
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class Ac3 : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Ac3());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Ac3() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Ac3(Ac3 other) : this() {
- l1_ = other.l1_ != null ? other.l1_.Clone() : null;
- l2_ = other.l2_ != null ? other.l2_.Clone() : null;
- l3_ = other.l3_ != null ? other.l3_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Ac3 Clone() {
- return new Ac3(this);
- }
-
- /// Field number for the "L1" field.
- public const int L1FieldNumber = 1;
- private global::Ac l1_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac L1 {
- get { return l1_; }
- set {
- l1_ = value;
- }
- }
-
- /// Field number for the "L2" field.
- public const int L2FieldNumber = 2;
- private global::Ac l2_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac L2 {
- get { return l2_; }
- set {
- l2_ = value;
- }
- }
-
- /// Field number for the "L3" field.
- public const int L3FieldNumber = 3;
- private global::Ac l3_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac L3 {
- get { return l3_; }
- set {
- l3_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Ac3);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Ac3 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(L1, other.L1)) return false;
- if (!object.Equals(L2, other.L2)) return false;
- if (!object.Equals(L3, other.L3)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (l1_ != null) hash ^= L1.GetHashCode();
- if (l2_ != null) hash ^= L2.GetHashCode();
- if (l3_ != null) hash ^= L3.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (l1_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(L1);
- }
- if (l2_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(L2);
- }
- if (l3_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(L3);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (l1_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(L1);
- }
- if (l2_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(L2);
- }
- if (l3_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(L3);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Ac3 other) {
- if (other == null) {
- return;
- }
- if (other.l1_ != null) {
- if (l1_ == null) {
- l1_ = new global::Ac();
- }
- L1.MergeFrom(other.L1);
- }
- if (other.l2_ != null) {
- if (l2_ == null) {
- l2_ = new global::Ac();
- }
- L2.MergeFrom(other.L2);
- }
- if (other.l3_ != null) {
- if (l3_ == null) {
- l3_ = new global::Ac();
- }
- L3.MergeFrom(other.L3);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (l1_ == null) {
- l1_ = new global::Ac();
- }
- input.ReadMessage(l1_);
- break;
- }
- case 18: {
- if (l2_ == null) {
- l2_ = new global::Ac();
- }
- input.ReadMessage(l2_);
- break;
- }
- case 26: {
- if (l3_ == null) {
- l3_ = new global::Ac();
- }
- input.ReadMessage(l3_);
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class Inverter : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Inverter());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Inverter() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Inverter(Inverter other) : this() {
- ac_ = other.ac_ != null ? other.ac_.Clone() : null;
- dc_ = other.dc_ != null ? other.dc_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Inverter Clone() {
- return new Inverter(this);
- }
-
- /// Field number for the "ac" field.
- public const int AcFieldNumber = 1;
- private global::Ac ac_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac Ac {
- get { return ac_; }
- set {
- ac_ = value;
- }
- }
-
- /// Field number for the "dc" field.
- public const int DcFieldNumber = 2;
- private global::Dc dc_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Dc Dc {
- get { return dc_; }
- set {
- dc_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Inverter);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Inverter other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Ac, other.Ac)) return false;
- if (!object.Equals(Dc, other.Dc)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (ac_ != null) hash ^= Ac.GetHashCode();
- if (dc_ != null) hash ^= Dc.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (ac_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Ac);
- }
- if (dc_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Dc);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (ac_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ac);
- }
- if (dc_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Dc);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Inverter other) {
- if (other == null) {
- return;
- }
- if (other.ac_ != null) {
- if (ac_ == null) {
- ac_ = new global::Ac();
- }
- Ac.MergeFrom(other.Ac);
- }
- if (other.dc_ != null) {
- if (dc_ == null) {
- dc_ = new global::Dc();
- }
- Dc.MergeFrom(other.Dc);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (ac_ == null) {
- ac_ = new global::Ac();
- }
- input.ReadMessage(ac_);
- break;
- }
- case 18: {
- if (dc_ == null) {
- dc_ = new global::Dc();
- }
- input.ReadMessage(dc_);
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class Inverter3 : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Inverter3());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[4]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Inverter3() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Inverter3(Inverter3 other) : this() {
- ac_ = other.ac_ != null ? other.ac_.Clone() : null;
- dc_ = other.dc_ != null ? other.dc_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Inverter3 Clone() {
- return new Inverter3(this);
- }
-
- /// Field number for the "ac" field.
- public const int AcFieldNumber = 1;
- private global::Ac3 ac_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac3 Ac {
- get { return ac_; }
- set {
- ac_ = value;
- }
- }
-
- /// Field number for the "dc" field.
- public const int DcFieldNumber = 2;
- private global::Dc dc_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Dc Dc {
- get { return dc_; }
- set {
- dc_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Inverter3);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Inverter3 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Ac, other.Ac)) return false;
- if (!object.Equals(Dc, other.Dc)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (ac_ != null) hash ^= Ac.GetHashCode();
- if (dc_ != null) hash ^= Dc.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (ac_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Ac);
- }
- if (dc_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Dc);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (ac_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ac);
- }
- if (dc_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Dc);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Inverter3 other) {
- if (other == null) {
- return;
- }
- if (other.ac_ != null) {
- if (ac_ == null) {
- ac_ = new global::Ac3();
- }
- Ac.MergeFrom(other.Ac);
- }
- if (other.dc_ != null) {
- if (dc_ == null) {
- dc_ = new global::Dc();
- }
- Dc.MergeFrom(other.Dc);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (ac_ == null) {
- ac_ = new global::Ac3();
- }
- input.ReadMessage(ac_);
- break;
- }
- case 18: {
- if (dc_ == null) {
- dc_ = new global::Dc();
- }
- input.ReadMessage(dc_);
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class Battery : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Battery());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[5]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Battery() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Battery(Battery other) : this() {
- soc_ = other.soc_;
- bus_ = other.bus_ != null ? other.bus_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Battery Clone() {
- return new Battery(this);
- }
-
- /// Field number for the "soc" field.
- public const int SocFieldNumber = 1;
- private float soc_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Soc {
- get { return soc_; }
- set {
- soc_ = value;
- }
- }
-
- /// Field number for the "bus" field.
- public const int BusFieldNumber = 2;
- private global::Dc bus_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Dc Bus {
- get { return bus_; }
- set {
- bus_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Battery);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Battery other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Soc, other.Soc)) return false;
- if (!object.Equals(Bus, other.Bus)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Soc != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Soc);
- if (bus_ != null) hash ^= Bus.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Soc != 0F) {
- output.WriteRawTag(13);
- output.WriteFloat(Soc);
- }
- if (bus_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Bus);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Soc != 0F) {
- size += 1 + 4;
- }
- if (bus_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bus);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Battery other) {
- if (other == null) {
- return;
- }
- if (other.Soc != 0F) {
- Soc = other.Soc;
- }
- if (other.bus_ != null) {
- if (bus_ == null) {
- bus_ = new global::Dc();
- }
- Bus.MergeFrom(other.Bus);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 13: {
- Soc = input.ReadFloat();
- break;
- }
- case 18: {
- if (bus_ == null) {
- bus_ = new global::Dc();
- }
- input.ReadMessage(bus_);
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class AcBus : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AcBus());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[6]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AcBus() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AcBus(AcBus other) : this() {
- source_ = other.source_ != null ? other.source_.Clone() : null;
- sink_ = other.sink_ != null ? other.sink_.Clone() : null;
- sourceType_ = other.sourceType_;
- sinkType_ = other.sinkType_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AcBus Clone() {
- return new AcBus(this);
- }
-
- /// Field number for the "source" field.
- public const int SourceFieldNumber = 1;
- private global::Ac source_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac Source {
- get { return source_; }
- set {
- source_ = value;
- }
- }
-
- /// Field number for the "sink" field.
- public const int SinkFieldNumber = 2;
- private global::Ac sink_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac Sink {
- get { return sink_; }
- set {
- sink_ = value;
- }
- }
-
- /// Field number for the "sourceType" field.
- public const int SourceTypeFieldNumber = 3;
- private global::AcSourceType sourceType_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AcSourceType SourceType {
- get { return sourceType_; }
- set {
- sourceType_ = value;
- }
- }
-
- /// Field number for the "sinkType" field.
- public const int SinkTypeFieldNumber = 4;
- private global::AcSinkType sinkType_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AcSinkType SinkType {
- get { return sinkType_; }
- set {
- sinkType_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as AcBus);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(AcBus other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Source, other.Source)) return false;
- if (!object.Equals(Sink, other.Sink)) return false;
- if (SourceType != other.SourceType) return false;
- if (SinkType != other.SinkType) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (source_ != null) hash ^= Source.GetHashCode();
- if (sink_ != null) hash ^= Sink.GetHashCode();
- if (SourceType != 0) hash ^= SourceType.GetHashCode();
- if (SinkType != 0) hash ^= SinkType.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (source_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Source);
- }
- if (sink_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Sink);
- }
- if (SourceType != 0) {
- output.WriteRawTag(24);
- output.WriteEnum((int) SourceType);
- }
- if (SinkType != 0) {
- output.WriteRawTag(32);
- output.WriteEnum((int) SinkType);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (source_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source);
- }
- if (sink_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sink);
- }
- if (SourceType != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SourceType);
- }
- if (SinkType != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SinkType);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(AcBus other) {
- if (other == null) {
- return;
- }
- if (other.source_ != null) {
- if (source_ == null) {
- source_ = new global::Ac();
- }
- Source.MergeFrom(other.Source);
- }
- if (other.sink_ != null) {
- if (sink_ == null) {
- sink_ = new global::Ac();
- }
- Sink.MergeFrom(other.Sink);
- }
- if (other.SourceType != 0) {
- SourceType = other.SourceType;
- }
- if (other.SinkType != 0) {
- SinkType = other.SinkType;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (source_ == null) {
- source_ = new global::Ac();
- }
- input.ReadMessage(source_);
- break;
- }
- case 18: {
- if (sink_ == null) {
- sink_ = new global::Ac();
- }
- input.ReadMessage(sink_);
- break;
- }
- case 24: {
- sourceType_ = (global::AcSourceType) input.ReadEnum();
- break;
- }
- case 32: {
- sinkType_ = (global::AcSinkType) input.ReadEnum();
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class AcBus3 : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AcBus3());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[7]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AcBus3() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AcBus3(AcBus3 other) : this() {
- source_ = other.source_ != null ? other.source_.Clone() : null;
- sink_ = other.sink_ != null ? other.sink_.Clone() : null;
- sourceType_ = other.sourceType_;
- sinkType_ = other.sinkType_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AcBus3 Clone() {
- return new AcBus3(this);
- }
-
- /// Field number for the "source" field.
- public const int SourceFieldNumber = 1;
- private global::Ac3 source_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac3 Source {
- get { return source_; }
- set {
- source_ = value;
- }
- }
-
- /// Field number for the "sink" field.
- public const int SinkFieldNumber = 2;
- private global::Ac3 sink_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac3 Sink {
- get { return sink_; }
- set {
- sink_ = value;
- }
- }
-
- /// Field number for the "sourceType" field.
- public const int SourceTypeFieldNumber = 3;
- private global::AcSourceType sourceType_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AcSourceType SourceType {
- get { return sourceType_; }
- set {
- sourceType_ = value;
- }
- }
-
- /// Field number for the "sinkType" field.
- public const int SinkTypeFieldNumber = 4;
- private global::AcSinkType sinkType_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AcSinkType SinkType {
- get { return sinkType_; }
- set {
- sinkType_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as AcBus3);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(AcBus3 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Source, other.Source)) return false;
- if (!object.Equals(Sink, other.Sink)) return false;
- if (SourceType != other.SourceType) return false;
- if (SinkType != other.SinkType) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (source_ != null) hash ^= Source.GetHashCode();
- if (sink_ != null) hash ^= Sink.GetHashCode();
- if (SourceType != 0) hash ^= SourceType.GetHashCode();
- if (SinkType != 0) hash ^= SinkType.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (source_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Source);
- }
- if (sink_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Sink);
- }
- if (SourceType != 0) {
- output.WriteRawTag(24);
- output.WriteEnum((int) SourceType);
- }
- if (SinkType != 0) {
- output.WriteRawTag(32);
- output.WriteEnum((int) SinkType);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (source_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source);
- }
- if (sink_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sink);
- }
- if (SourceType != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SourceType);
- }
- if (SinkType != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SinkType);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(AcBus3 other) {
- if (other == null) {
- return;
- }
- if (other.source_ != null) {
- if (source_ == null) {
- source_ = new global::Ac3();
- }
- Source.MergeFrom(other.Source);
- }
- if (other.sink_ != null) {
- if (sink_ == null) {
- sink_ = new global::Ac3();
- }
- Sink.MergeFrom(other.Sink);
- }
- if (other.SourceType != 0) {
- SourceType = other.SourceType;
- }
- if (other.SinkType != 0) {
- SinkType = other.SinkType;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (source_ == null) {
- source_ = new global::Ac3();
- }
- input.ReadMessage(source_);
- break;
- }
- case 18: {
- if (sink_ == null) {
- sink_ = new global::Ac3();
- }
- input.ReadMessage(sink_);
- break;
- }
- case 24: {
- sourceType_ = (global::AcSourceType) input.ReadEnum();
- break;
- }
- case 32: {
- sinkType_ = (global::AcSinkType) input.ReadEnum();
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class DcBus : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DcBus());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[8]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DcBus() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DcBus(DcBus other) : this() {
- source_ = other.source_ != null ? other.source_.Clone() : null;
- sink_ = other.sink_ != null ? other.sink_.Clone() : null;
- sourceType_ = other.sourceType_;
- sinkType_ = other.sinkType_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DcBus Clone() {
- return new DcBus(this);
- }
-
- /// Field number for the "source" field.
- public const int SourceFieldNumber = 1;
- private global::Dc source_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Dc Source {
- get { return source_; }
- set {
- source_ = value;
- }
- }
-
- /// Field number for the "sink" field.
- public const int SinkFieldNumber = 2;
- private global::Dc sink_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Dc Sink {
- get { return sink_; }
- set {
- sink_ = value;
- }
- }
-
- /// Field number for the "sourceType" field.
- public const int SourceTypeFieldNumber = 3;
- private global::DcSourceType sourceType_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::DcSourceType SourceType {
- get { return sourceType_; }
- set {
- sourceType_ = value;
- }
- }
-
- /// Field number for the "sinkType" field.
- public const int SinkTypeFieldNumber = 4;
- private global::DcSinkType sinkType_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::DcSinkType SinkType {
- get { return sinkType_; }
- set {
- sinkType_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as DcBus);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(DcBus other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Source, other.Source)) return false;
- if (!object.Equals(Sink, other.Sink)) return false;
- if (SourceType != other.SourceType) return false;
- if (SinkType != other.SinkType) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (source_ != null) hash ^= Source.GetHashCode();
- if (sink_ != null) hash ^= Sink.GetHashCode();
- if (SourceType != 0) hash ^= SourceType.GetHashCode();
- if (SinkType != 0) hash ^= SinkType.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (source_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Source);
- }
- if (sink_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Sink);
- }
- if (SourceType != 0) {
- output.WriteRawTag(24);
- output.WriteEnum((int) SourceType);
- }
- if (SinkType != 0) {
- output.WriteRawTag(32);
- output.WriteEnum((int) SinkType);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (source_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source);
- }
- if (sink_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sink);
- }
- if (SourceType != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SourceType);
- }
- if (SinkType != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SinkType);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(DcBus other) {
- if (other == null) {
- return;
- }
- if (other.source_ != null) {
- if (source_ == null) {
- source_ = new global::Dc();
- }
- Source.MergeFrom(other.Source);
- }
- if (other.sink_ != null) {
- if (sink_ == null) {
- sink_ = new global::Dc();
- }
- Sink.MergeFrom(other.Sink);
- }
- if (other.SourceType != 0) {
- SourceType = other.SourceType;
- }
- if (other.SinkType != 0) {
- SinkType = other.SinkType;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (source_ == null) {
- source_ = new global::Dc();
- }
- input.ReadMessage(source_);
- break;
- }
- case 18: {
- if (sink_ == null) {
- sink_ = new global::Dc();
- }
- input.ReadMessage(sink_);
- break;
- }
- case 24: {
- sourceType_ = (global::DcSourceType) input.ReadEnum();
- break;
- }
- case 32: {
- sinkType_ = (global::DcSinkType) input.ReadEnum();
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class SinglePhaseSystem : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SinglePhaseSystem());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[9]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SinglePhaseSystem() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SinglePhaseSystem(SinglePhaseSystem other) : this() {
- grid_ = other.grid_ != null ? other.grid_.Clone() : null;
- acBus_ = other.acBus_.Clone();
- inverter_ = other.inverter_ != null ? other.inverter_.Clone() : null;
- dcBus_ = other.dcBus_.Clone();
- battery_ = other.battery_ != null ? other.battery_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SinglePhaseSystem Clone() {
- return new SinglePhaseSystem(this);
- }
-
- /// Field number for the "grid" field.
- public const int GridFieldNumber = 1;
- private global::Ac grid_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac Grid {
- get { return grid_; }
- set {
- grid_ = value;
- }
- }
-
- /// Field number for the "acBus" field.
- public const int AcBusFieldNumber = 2;
- private static readonly pb::FieldCodec _repeated_acBus_codec
- = pb::FieldCodec.ForMessage(18, global::AcBus.Parser);
- private readonly pbc::RepeatedField acBus_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField AcBus {
- get { return acBus_; }
- }
-
- /// Field number for the "inverter" field.
- public const int InverterFieldNumber = 3;
- private global::Inverter inverter_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Inverter Inverter {
- get { return inverter_; }
- set {
- inverter_ = value;
- }
- }
-
- /// Field number for the "dcBus" field.
- public const int DcBusFieldNumber = 4;
- private static readonly pb::FieldCodec _repeated_dcBus_codec
- = pb::FieldCodec.ForMessage(34, global::DcBus.Parser);
- private readonly pbc::RepeatedField dcBus_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField DcBus {
- get { return dcBus_; }
- }
-
- /// Field number for the "battery" field.
- public const int BatteryFieldNumber = 5;
- private global::Battery battery_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Battery Battery {
- get { return battery_; }
- set {
- battery_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SinglePhaseSystem);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SinglePhaseSystem other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Grid, other.Grid)) return false;
- if(!acBus_.Equals(other.acBus_)) return false;
- if (!object.Equals(Inverter, other.Inverter)) return false;
- if(!dcBus_.Equals(other.dcBus_)) return false;
- if (!object.Equals(Battery, other.Battery)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (grid_ != null) hash ^= Grid.GetHashCode();
- hash ^= acBus_.GetHashCode();
- if (inverter_ != null) hash ^= Inverter.GetHashCode();
- hash ^= dcBus_.GetHashCode();
- if (battery_ != null) hash ^= Battery.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (grid_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Grid);
- }
- acBus_.WriteTo(output, _repeated_acBus_codec);
- if (inverter_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Inverter);
- }
- dcBus_.WriteTo(output, _repeated_dcBus_codec);
- if (battery_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(Battery);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (grid_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Grid);
- }
- size += acBus_.CalculateSize(_repeated_acBus_codec);
- if (inverter_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Inverter);
- }
- size += dcBus_.CalculateSize(_repeated_dcBus_codec);
- if (battery_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Battery);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SinglePhaseSystem other) {
- if (other == null) {
- return;
- }
- if (other.grid_ != null) {
- if (grid_ == null) {
- grid_ = new global::Ac();
- }
- Grid.MergeFrom(other.Grid);
- }
- acBus_.Add(other.acBus_);
- if (other.inverter_ != null) {
- if (inverter_ == null) {
- inverter_ = new global::Inverter();
- }
- Inverter.MergeFrom(other.Inverter);
- }
- dcBus_.Add(other.dcBus_);
- if (other.battery_ != null) {
- if (battery_ == null) {
- battery_ = new global::Battery();
- }
- Battery.MergeFrom(other.Battery);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (grid_ == null) {
- grid_ = new global::Ac();
- }
- input.ReadMessage(grid_);
- break;
- }
- case 18: {
- acBus_.AddEntriesFrom(input, _repeated_acBus_codec);
- break;
- }
- case 26: {
- if (inverter_ == null) {
- inverter_ = new global::Inverter();
- }
- input.ReadMessage(inverter_);
- break;
- }
- case 34: {
- dcBus_.AddEntriesFrom(input, _repeated_dcBus_codec);
- break;
- }
- case 42: {
- if (battery_ == null) {
- battery_ = new global::Battery();
- }
- input.ReadMessage(battery_);
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class ThreePhaseSystem : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ThreePhaseSystem());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[10]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ThreePhaseSystem() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ThreePhaseSystem(ThreePhaseSystem other) : this() {
- grid_ = other.grid_ != null ? other.grid_.Clone() : null;
- acBus_ = other.acBus_.Clone();
- inverter_ = other.inverter_ != null ? other.inverter_.Clone() : null;
- dcBus_ = other.dcBus_.Clone();
- battery_ = other.battery_ != null ? other.battery_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ThreePhaseSystem Clone() {
- return new ThreePhaseSystem(this);
- }
-
- /// Field number for the "grid" field.
- public const int GridFieldNumber = 1;
- private global::Ac3 grid_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Ac3 Grid {
- get { return grid_; }
- set {
- grid_ = value;
- }
- }
-
- /// Field number for the "acBus" field.
- public const int AcBusFieldNumber = 2;
- private static readonly pb::FieldCodec _repeated_acBus_codec
- = pb::FieldCodec.ForMessage(18, global::AcBus3.Parser);
- private readonly pbc::RepeatedField acBus_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField AcBus {
- get { return acBus_; }
- }
-
- /// Field number for the "inverter" field.
- public const int InverterFieldNumber = 3;
- private global::Inverter3 inverter_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Inverter3 Inverter {
- get { return inverter_; }
- set {
- inverter_ = value;
- }
- }
-
- /// Field number for the "dcBus" field.
- public const int DcBusFieldNumber = 4;
- private static readonly pb::FieldCodec _repeated_dcBus_codec
- = pb::FieldCodec.ForMessage(34, global::DcBus.Parser);
- private readonly pbc::RepeatedField dcBus_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField DcBus {
- get { return dcBus_; }
- }
-
- /// Field number for the "battery" field.
- public const int BatteryFieldNumber = 5;
- private global::Battery battery_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Battery Battery {
- get { return battery_; }
- set {
- battery_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ThreePhaseSystem);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ThreePhaseSystem other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Grid, other.Grid)) return false;
- if(!acBus_.Equals(other.acBus_)) return false;
- if (!object.Equals(Inverter, other.Inverter)) return false;
- if(!dcBus_.Equals(other.dcBus_)) return false;
- if (!object.Equals(Battery, other.Battery)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (grid_ != null) hash ^= Grid.GetHashCode();
- hash ^= acBus_.GetHashCode();
- if (inverter_ != null) hash ^= Inverter.GetHashCode();
- hash ^= dcBus_.GetHashCode();
- if (battery_ != null) hash ^= Battery.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (grid_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Grid);
- }
- acBus_.WriteTo(output, _repeated_acBus_codec);
- if (inverter_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Inverter);
- }
- dcBus_.WriteTo(output, _repeated_dcBus_codec);
- if (battery_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(Battery);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (grid_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Grid);
- }
- size += acBus_.CalculateSize(_repeated_acBus_codec);
- if (inverter_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Inverter);
- }
- size += dcBus_.CalculateSize(_repeated_dcBus_codec);
- if (battery_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Battery);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ThreePhaseSystem other) {
- if (other == null) {
- return;
- }
- if (other.grid_ != null) {
- if (grid_ == null) {
- grid_ = new global::Ac3();
- }
- Grid.MergeFrom(other.Grid);
- }
- acBus_.Add(other.acBus_);
- if (other.inverter_ != null) {
- if (inverter_ == null) {
- inverter_ = new global::Inverter3();
- }
- Inverter.MergeFrom(other.Inverter);
- }
- dcBus_.Add(other.dcBus_);
- if (other.battery_ != null) {
- if (battery_ == null) {
- battery_ = new global::Battery();
- }
- Battery.MergeFrom(other.Battery);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (grid_ == null) {
- grid_ = new global::Ac3();
- }
- input.ReadMessage(grid_);
- break;
- }
- case 18: {
- acBus_.AddEntriesFrom(input, _repeated_acBus_codec);
- break;
- }
- case 26: {
- if (inverter_ == null) {
- inverter_ = new global::Inverter3();
- }
- input.ReadMessage(inverter_);
- break;
- }
- case 34: {
- dcBus_.AddEntriesFrom(input, _repeated_dcBus_codec);
- break;
- }
- case 42: {
- if (battery_ == null) {
- battery_ = new global::Battery();
- }
- input.ReadMessage(battery_);
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class SystemData : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemData());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[11]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SystemData() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SystemData(SystemData other) : this() {
- v1_ = other.v1_ != null ? other.v1_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SystemData Clone() {
- return new SystemData(this);
- }
-
- /// Field number for the "v1" field.
- public const int V1FieldNumber = 1;
- private global::SystemDataV1 v1_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::SystemDataV1 V1 {
- get { return v1_; }
- set {
- v1_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SystemData);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SystemData other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(V1, other.V1)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (v1_ != null) hash ^= V1.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (v1_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(V1);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (v1_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(V1);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SystemData other) {
- if (other == null) {
- return;
- }
- if (other.v1_ != null) {
- if (v1_ == null) {
- v1_ = new global::SystemDataV1();
- }
- V1.MergeFrom(other.V1);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (v1_ == null) {
- v1_ = new global::SystemDataV1();
- }
- input.ReadMessage(v1_);
- break;
- }
- }
- }
- }
-
-}
-
-public sealed partial class SystemDataV1 : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SystemDataV1());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::TypesReflection.Descriptor.MessageTypes[12]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SystemDataV1() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SystemDataV1(SystemDataV1 other) : this() {
- switch (other.DataCase) {
- case DataOneofCase.SinglePhase:
- SinglePhase = other.SinglePhase.Clone();
- break;
- case DataOneofCase.ThreePhase:
- ThreePhase = other.ThreePhase.Clone();
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SystemDataV1 Clone() {
- return new SystemDataV1(this);
- }
-
- /// Field number for the "singlePhase" field.
- public const int SinglePhaseFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::SinglePhaseSystem SinglePhase {
- get { return dataCase_ == DataOneofCase.SinglePhase ? (global::SinglePhaseSystem) data_ : null; }
- set {
- data_ = value;
- dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.SinglePhase;
- }
- }
-
- /// Field number for the "threePhase" field.
- public const int ThreePhaseFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::ThreePhaseSystem ThreePhase {
- get { return dataCase_ == DataOneofCase.ThreePhase ? (global::ThreePhaseSystem) data_ : null; }
- set {
- data_ = value;
- dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.ThreePhase;
- }
- }
-
- private object data_;
- /// Enum of possible cases for the "data" oneof.
- public enum DataOneofCase {
- None = 0,
- SinglePhase = 1,
- ThreePhase = 3,
- }
- private DataOneofCase dataCase_ = DataOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DataOneofCase DataCase {
- get { return dataCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearData() {
- dataCase_ = DataOneofCase.None;
- data_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SystemDataV1);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SystemDataV1 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(SinglePhase, other.SinglePhase)) return false;
- if (!object.Equals(ThreePhase, other.ThreePhase)) return false;
- if (DataCase != other.DataCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (dataCase_ == DataOneofCase.SinglePhase) hash ^= SinglePhase.GetHashCode();
- if (dataCase_ == DataOneofCase.ThreePhase) hash ^= ThreePhase.GetHashCode();
- hash ^= (int) dataCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (dataCase_ == DataOneofCase.SinglePhase) {
- output.WriteRawTag(10);
- output.WriteMessage(SinglePhase);
- }
- if (dataCase_ == DataOneofCase.ThreePhase) {
- output.WriteRawTag(26);
- output.WriteMessage(ThreePhase);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (dataCase_ == DataOneofCase.SinglePhase) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SinglePhase);
- }
- if (dataCase_ == DataOneofCase.ThreePhase) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ThreePhase);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SystemDataV1 other) {
- if (other == null) {
- return;
- }
- switch (other.DataCase) {
- case DataOneofCase.SinglePhase:
- if (SinglePhase == null) {
- SinglePhase = new global::SinglePhaseSystem();
- }
- SinglePhase.MergeFrom(other.SinglePhase);
- break;
- case DataOneofCase.ThreePhase:
- if (ThreePhase == null) {
- ThreePhase = new global::ThreePhaseSystem();
- }
- ThreePhase.MergeFrom(other.ThreePhase);
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- global::SinglePhaseSystem subBuilder = new global::SinglePhaseSystem();
- if (dataCase_ == DataOneofCase.SinglePhase) {
- subBuilder.MergeFrom(SinglePhase);
- }
- input.ReadMessage(subBuilder);
- SinglePhase = subBuilder;
- break;
- }
- case 26: {
- global::ThreePhaseSystem subBuilder = new global::ThreePhaseSystem();
- if (dataCase_ == DataOneofCase.ThreePhase) {
- subBuilder.MergeFrom(ThreePhase);
- }
- input.ReadMessage(subBuilder);
- ThreePhase = subBuilder;
- break;
- }
- }
- }
- }
-
-}
-
-#endregion
-
-
-#endregion Designer generated code
diff --git a/csharp/app/Meiringen/run_on_graber.sh b/csharp/app/Meiringen/run_on_graber.sh
deleted file mode 100644
index e69de29bb..000000000