diff --git a/VectoCore/VectoCore/InputData/FileIO/JSON/JSONElectricMotor.cs b/VectoCore/VectoCore/InputData/FileIO/JSON/JSONElectricMotor.cs index cb3c2f1f695f294c707aec318ad83e6c8da68c80..2e537cda6e410bae087b96e8a050f1453046a4e3 100644 --- a/VectoCore/VectoCore/InputData/FileIO/JSON/JSONElectricMotor.cs +++ b/VectoCore/VectoCore/InputData/FileIO/JSON/JSONElectricMotor.cs @@ -51,14 +51,13 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON public virtual string Manufacturer => Constants.NOT_AVAILABLE; public virtual string Model => Body.GetEx<string>("Model"); - public virtual IList<IElectricMotorVoltageLevel> VoltageLevels + public virtual IList<IElectricMotorVoltageLevel> VoltageLevels => _voltageLevels ?? (_voltageLevels = ReadVoltageLevels()); public virtual DateTime Date => DateTime.MinValue; - get - { - return _voltageLevels ?? (_voltageLevels = ReadVoltageLevels()); - } + + public CertificationMethod CertificationMethod => CertificationMethod.NotCertified; public string CertificationNumber => Constants.NOT_AVAILABLE; + protected virtual IList<IElectricMotorVoltageLevel> ReadVoltageLevels() { return new List<IElectricMotorVoltageLevel>() { @@ -75,6 +74,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON FullLoadCurve = ReadTableData(Body.GetEx<string>("FullLoadCurve"), "ElectricMotor FullLoadCurve") }, }; + } public DigestData DigestValue => null;