Execute(...) arguments changed everywhere, repetitionNr usage depends on outerLoopMode, outerLoopCounter, ver. 2.12.412

This commit is contained in:
Milan Hanajik
2016-12-10 13:03:35 +01:00
parent f9888a2108
commit 216e08d57c
31 changed files with 48 additions and 48 deletions
@@ -32,7 +32,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection.Compound
public IList<Event> Execute(Test test, bool outerLoopMode, int outerLoopCounter)
{
return (new FixedStartMassCollectionSeq()).Execute(test, true, null);
return (new FixedStartMassCollectionSeq()).Execute(test, outerLoopMode, outerLoopCounter, true, null);
}
}
}
@@ -26,7 +26,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
/// Event.OpArgumentError . Target flow is out of range
/// Event.Error . . . . . . Unspecified error
/// </returns>
public IList<Event> Execute(Config.Entities.Test test,
public IList<Event> Execute(Config.Entities.Test test, bool outerLoopMode, int outerLoopCounter,
bool compound,
HeatMeters.TestParams heatMetersTestParams)
{
@@ -49,7 +49,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
float[] wmBeginStates = new float[Config.Data.WMsCount];
float[] wmEndStates = new float[Config.Data.WMsCount];
int repetitionNr = 1; /// First test: repetitionNr=1
int repetitionNr = outerLoopMode ? outerLoopCounter : 1; /// First test: repetitionNr=1
//====================================
// Transition or SetRoute - Start
@@ -900,7 +900,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
/// Append the results to the CSV-file
allResults.Info(TestResult2CsvLine(testName, test.Part));
if (++repetitionNr <= test.Repeats)
if (!outerLoopMode && (++repetitionNr <= test.Repeats))
{
goto loop;
}
@@ -35,7 +35,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection.HeatMeters
public IList<Event> Execute(Test test, bool outerLoopMode, int outerLoopCounter)
{
return (new FixedStartMassCollectionSeq()).Execute(test, false, testMethodCfg.TestParams);
return (new FixedStartMassCollectionSeq()).Execute(test, outerLoopMode, outerLoopCounter, false, testMethodCfg.TestParams);
}
}
}
@@ -32,7 +32,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection.Single
public IList<Event> Execute(Test test, bool outerLoopMode, int outerLoopCounter)
{
return (new FixedStartMassCollectionSeq()).Execute(test, false, null);
return (new FixedStartMassCollectionSeq()).Execute(test, outerLoopMode, outerLoopCounter, false, null);
}
}
}