diff --git a/VectoCore/VectoCore/OutputData/DeclarationReport.cs b/VectoCore/VectoCore/OutputData/DeclarationReport.cs index 0cc738025db9bdd343a169940f18e1f5e43a6f9a..e522154058dcb579e56ab5ca18ef1bbe856e58a6 100644 --- a/VectoCore/VectoCore/OutputData/DeclarationReport.cs +++ b/VectoCore/VectoCore/OutputData/DeclarationReport.cs @@ -74,6 +74,8 @@ namespace TUGraz.VectoCore.OutputData { void Initialize(VectoRunData vectoRunData); + VectoRunData VectoRunData { get; } + VectoRun.Status Status { get; } VectoRunData.OvcHevMode OVCMode { get; } diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/IXMLVehicleInformationFile.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/IXMLVehicleInformationFile.cs index 8d330dd58b5c1bcfd268dee69f0986b031550349..b54d3b7e0d1f311ce6330b6ec0ffad716aae4bc4 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/IXMLVehicleInformationFile.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/IXMLVehicleInformationFile.cs @@ -6,7 +6,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF public interface IXMLVehicleInformationFile { void Initialize(VectoRunData modelData); - void WriteResult(XMLDeclarationReport.ResultEntry result); + void WriteResult(IResultEntry result); void GenerateReport(XElement fullReportHash); XDocument Report { get; } XNamespace Tns { get; } diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/AbstractVehicleInformationFile.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/AbstractVehicleInformationFile.cs index 19d94946d628fcfd47e9c1b6e9ab75d94ad71702..f8971b6e5abad9c34b913014beb0db67c74d54ca 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/AbstractVehicleInformationFile.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/AbstractVehicleInformationFile.cs @@ -64,7 +64,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF } - public void WriteResult(XMLDeclarationReport.ResultEntry result) + public void WriteResult(IResultEntry result) { _results.Add(result); } diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLExemptedPrimaryBusVehicleReport.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLExemptedPrimaryBusVehicleReport.cs index be87c99c1aedc52718f4efb8da8d06d1f8d7000a..1f61748ebd4f770cd93ae5d78007cc08bf3a3cf3 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLExemptedPrimaryBusVehicleReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLExemptedPrimaryBusVehicleReport.cs @@ -43,7 +43,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF } - public override void WriteResult(XMLDeclarationReport.ResultEntry result) + public override void WriteResult(IResultEntry result) { // no results for exempted vehicle } diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLPrimaryBusVehicleReport.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLPrimaryBusVehicleReport.cs index 5663b85f1a2389ab2f214d0c927e90d4641e523a..94e2365155b45f62913f75878c43248298768fd6 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLPrimaryBusVehicleReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLPrimaryBusVehicleReport.cs @@ -531,7 +531,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF }; } - public virtual void WriteResult(XMLDeclarationReport.ResultEntry resultEntry) + public virtual void WriteResult(IResultEntry resultEntry) { _allSuccess &= resultEntry.Status == VectoRun.Status.Success; @@ -566,7 +566,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF GetResults(resultEntry))); } - private object[] GetResults(XMLDeclarationReport.ResultEntry resultEntry) + private object[] GetResults(IResultEntry resultEntry) { switch (resultEntry.Status) { case VectoRun.Status.Pending: @@ -582,7 +582,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF } } - private object[] GetSuccessResultEntry(XMLDeclarationReport.ResultEntry result) + private object[] GetSuccessResultEntry(IResultEntry result) { var retVal = new List<XElement>(); diff --git a/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs b/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs index d1f4eddbe487d04367bf61b3891a53ed94527653..25ca624844800164a39fbc558b8dbe0ef0389288 100644 --- a/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs @@ -95,19 +95,22 @@ namespace TUGraz.VectoCore.OutputData.XML MaxChargingPower = runData.MaxChargingPower; BatteryData = runData.BatteryData; OVCMode = runData.OVCMode; + VectoRunData = runData; } - public MissionType Mission { get; set; } - public LoadingType LoadingType { get; set; } - public int FuelMode { get; set; } + public VectoRunData VectoRunData { get; private set; } + + public MissionType Mission { get; private set; } + public LoadingType LoadingType { get; private set; } + public int FuelMode { get; private set; } public IList<IFuelProperties> FuelData { get; set; } public Kilogram Payload { get; set; } - public Kilogram TotalVehicleMass { get; set; } + public Kilogram TotalVehicleMass { get; private set; } - public CubicMeter CargoVolume { get; set; } + public CubicMeter CargoVolume { get; private set; } public double? PassengerCount { get; set; } public VehicleClass VehicleClass { get; set; }