Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 3f5887d5 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

added validation to new gear params (downshift/upshift delay, min acc.)

parent e62604ae
Branches
Tags
No related merge requests found
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
*/ */
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data; using System.Data;
using TUGraz.VectoCommon.Models; using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Utils; using TUGraz.VectoCommon.Utils;
...@@ -94,7 +95,6 @@ namespace TUGraz.VectoCommon.InputData ...@@ -94,7 +95,6 @@ namespace TUGraz.VectoCommon.InputData
DataTable CrosswindCorrectionMap { get; } DataTable CrosswindCorrectionMap { get; }
} }
public interface IAxleEngineeringInputData : IAxleDeclarationInputData public interface IAxleEngineeringInputData : IAxleDeclarationInputData
{ {
/// <summary> /// <summary>
...@@ -110,7 +110,6 @@ namespace TUGraz.VectoCommon.InputData ...@@ -110,7 +110,6 @@ namespace TUGraz.VectoCommon.InputData
KilogramSquareMeter Inertia { get; } KilogramSquareMeter Inertia { get; }
} }
public interface IGearboxEngineeringInputData : IGearboxDeclarationInputData public interface IGearboxEngineeringInputData : IGearboxDeclarationInputData
{ {
/// <summary> /// <summary>
...@@ -168,15 +167,19 @@ namespace TUGraz.VectoCommon.InputData ...@@ -168,15 +167,19 @@ namespace TUGraz.VectoCommon.InputData
/// </summary> /// </summary>
bool SkipGears { get; } bool SkipGears { get; }
/// <summary> /// <summary>
/// P090, P091, P092, P127 /// P090, P091, P092, P127
/// cf. VECTO Input Parameters.xlsx /// cf. VECTO Input Parameters.xlsx
/// </summary> /// </summary>
ITorqueConverterInputData TorqueConverter { get; } ITorqueConverterInputData TorqueConverter { get; }
[Required, SIRange(0, double.MaxValue)]
Second DownshiftAferUpshiftDelay { get; } Second DownshiftAferUpshiftDelay { get; }
[Required, SIRange(0, double.MaxValue)]
Second UpshiftAfterDownshiftDelay { get; } Second UpshiftAfterDownshiftDelay { get; }
[Required, SIRange(0, double.MaxValue)]
MeterPerSquareSecond UpshiftMinAcceleration { get; } MeterPerSquareSecond UpshiftMinAcceleration { get; }
} }
...@@ -189,7 +192,6 @@ namespace TUGraz.VectoCommon.InputData ...@@ -189,7 +192,6 @@ namespace TUGraz.VectoCommon.InputData
KilogramSquareMeter Inertia { get; } KilogramSquareMeter Inertia { get; }
} }
public interface IAuxiliariesEngineeringInputData : IAuxiliariesDeclarationInputData public interface IAuxiliariesEngineeringInputData : IAuxiliariesDeclarationInputData
{ {
new IList<IAuxiliaryEngineeringInputData> Auxiliaries { get; } new IList<IAuxiliaryEngineeringInputData> Auxiliaries { get; }
...@@ -202,7 +204,6 @@ namespace TUGraz.VectoCommon.InputData ...@@ -202,7 +204,6 @@ namespace TUGraz.VectoCommon.InputData
string AdvancedAuxiliaryFilePath { get; } string AdvancedAuxiliaryFilePath { get; }
} }
public interface IDriverEngineeringInputData : IDriverDeclarationInputData public interface IDriverEngineeringInputData : IDriverDeclarationInputData
{ {
new IStartStopEngineeringInputData StartStop { get; } new IStartStopEngineeringInputData StartStop { get; }
...@@ -218,7 +219,6 @@ namespace TUGraz.VectoCommon.InputData ...@@ -218,7 +219,6 @@ namespace TUGraz.VectoCommon.InputData
ILookaheadCoastingInputData Lookahead { get; } ILookaheadCoastingInputData Lookahead { get; }
} }
public interface IOverSpeedEcoRollEngineeringInputData : IOverSpeedEcoRollDeclarationInputData public interface IOverSpeedEcoRollEngineeringInputData : IOverSpeedEcoRollDeclarationInputData
{ {
/// <summary> /// <summary>
...@@ -261,7 +261,6 @@ namespace TUGraz.VectoCommon.InputData ...@@ -261,7 +261,6 @@ namespace TUGraz.VectoCommon.InputData
Second Delay { get; } Second Delay { get; }
} }
public interface ILookaheadCoastingInputData public interface ILookaheadCoastingInputData
{ {
/// <summary> /// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment