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

Skip to content
Snippets Groups Projects
Commit 4700ba00 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

merge

parent 9d13c9ae
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ using System.Collections.Generic;
using TUGraz.VectoCore.Models.SimulationComponent.Data;
using TUGraz.VectoCore.Models.SimulationComponent.Data.Gearbox;
using TUGraz.VectoCore.Utils;
namespace TUGraz.VectoCore.Models.Declaration
{
public class DeclarationData
......@@ -45,7 +46,6 @@ namespace TUGraz.VectoCore.Models.Declaration
}
public static Meter DynamicTyreRadius(string wheels, string rims)
public static Fan Fan
{
var wheelsEntry = Wheels.Lookup(wheels);
var rimsEntry = Rims.Lookup(rims);
......@@ -55,6 +55,7 @@ namespace TUGraz.VectoCore.Models.Declaration
return wheelsEntry.TyreRadius * correction / (2 * Math.PI);
}
public static Fan Fan
{
get { return Instance()._fan ?? (Instance()._fan = new Fan()); }
}
......
......@@ -12,7 +12,7 @@ namespace TUGraz.VectoCore.Models.Declaration
protected const string ResourceId = "TUGraz.VectoCore.Resources.Declaration.PT1.csv";
public DeclarationPT1()
public PT1()
{
ParseData(ReadCsvResource(ResourceId));
}
......
......@@ -12,7 +12,7 @@ namespace TUGraz.VectoCore.Models.Declaration
protected const string ResourceId = ResourceNamespace + "SegmentTable.csv";
public DeclarationSegments()
public Segments()
{
ParseData(ReadCsvResource(ResourceId));
}
......@@ -51,7 +51,7 @@ namespace TUGraz.VectoCore.Models.Declaration
private static IEnumerable<Mission> CreateMissions(Kilogram grossVehicleMassRating, Kilogram curbWeight, DataRow row)
{
var missionTypes = Enum.GetValues(typeof (MissionType)).Cast<MissionType>();
var missionTypes = Enum.GetValues(typeof(MissionType)).Cast<MissionType>();
foreach (var missionType in missionTypes.Where(m => row.Field<string>(m.ToString()) == "1")) {
string vcdvField;
string axleField;
......
......@@ -8,7 +8,7 @@ namespace TUGraz.VectoCore.Models.Declaration
{
protected const string ResourceId = "TUGraz.VectoCore.Resources.Declaration.Wheels.csv";
public DeclarationWheels()
public Wheels()
{
ParseData(ReadCsvResource(ResourceId));
}
......
......@@ -142,6 +142,7 @@
<Compile Include="Models\Declaration\Fan.cs" />
<Compile Include="Models\Declaration\HVAC.cs" />
<Compile Include="Models\Declaration\PneumaticSystem.cs" />
<Compile Include="Models\Declaration\Rims.cs" />
<Compile Include="Models\Declaration\SteeringPump.cs" />
<Compile Include="Models\Declaration\WHTCCorrection.cs" />
<Compile Include="Models\SimulationComponent\Data\AccelerationCurve.cs" />
......
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