Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit b703c1cf authored by Harald Martini's avatar Harald Martini
Browse files

updated IEPC_S rundatafactory creation

parent 6d93f68a
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider.v24
public override VectoSimulationJobType VehicleType
{
get => VectoSimulationJobType.BatteryElectricVehicle;
get => VectoSimulationJobType.IEPC_E;
}
}
......@@ -239,7 +239,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider.v24
public override VectoSimulationJobType VehicleType
{
get => VectoSimulationJobType.SerialHybridVehicle;
get => VectoSimulationJobType.IEPC_S;
}
public override bool HybridElectricHDV => true;
......
......@@ -186,8 +186,9 @@ namespace TUGraz.VectoCore.InputData.Reader
_vehicleStringHelper.GetName(VehicleCategoryHelper.CompletedBus, VectoSimulationJobType.SerialHybridVehicle,
ArchitectureID.S4));
Bind<IVectoRunDataFactory>().To<DeclarationModeCompletedBusRunDataFactory.HEV_S_IEPC>().Named(
_vehicleStringHelper.GetName(VehicleCategoryHelper.CompletedBus, VectoSimulationJobType.SerialHybridVehicle,
_vehicleStringHelper.GetName(VehicleCategoryHelper.CompletedBus, VectoSimulationJobType.IEPC_S,
ArchitectureID.S_IEPC));
Bind<IVectoRunDataFactory>().To<DeclarationModeCompletedBusRunDataFactory.HEV_P1>().Named(
_vehicleStringHelper.GetName(VehicleCategoryHelper.CompletedBus, VectoSimulationJobType.ParallelHybridVehicle,
ArchitectureID.P1));
......
......@@ -637,6 +637,27 @@ namespace TUGraz.VectoCore.Tests.InputData.RunDataFactory
var type = arch.ToString().StartsWith("P")
? VectoSimulationJobType.ParallelHybridVehicle
: VectoSimulationJobType.SerialHybridVehicle;
switch (arch) {
case ArchitectureID.P1:
case ArchitectureID.P2:
case ArchitectureID.P2_5:
case ArchitectureID.P3:
case ArchitectureID.P4:
type = VectoSimulationJobType.ParallelHybridVehicle;
break;
case ArchitectureID.S2:
case ArchitectureID.S3:
case ArchitectureID.S4:
type = VectoSimulationJobType.SerialHybridVehicle;
break;
case ArchitectureID.S_IEPC:
type = VectoSimulationJobType.IEPC_S;
break;
default:
throw new ArgumentOutOfRangeException(nameof(arch), arch, null);
}
mock.Setup(p => p.JobInputData.Vehicle.ArchitectureID).
Returns(arch);
mock.Setup(p => p.JobInputData.JobType).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment