Skip to content

Commit 6d5151f

Browse files
ChristophBodensteinChristophBodenstein
authored andcommitted
added spining label while reading from cache
added cancel cache reading
1 parent 46df358 commit 6d5151f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TimeNETOptimizationEnvironment/src/toe/simulation/SimulationCache.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ public ArrayList<SimulationType> getListOfCompletedSimulationParsers(ArrayList<A
485485
for (parameter myParameter : parameterSet) {
486486
tmpParameterList.add(myParameter);
487487
}
488+
support.spinInLabel();
488489
//Get local simulation results
489490
ArrayList<MeasureType> listOfMeasureWithGivenParameters = this.getAllMeasuresWithParameterList(tmpParameterList);
490491
//support.log("Size of ParameterList: "+ tmpParameterList.size() + " results in " +listOfMeasureWithGivenParameters.size()+ " Measurements.");
@@ -500,6 +501,9 @@ public ArrayList<SimulationType> getListOfCompletedSimulationParsers(ArrayList<A
500501
myParserList.add(tmpParser);
501502
simulationCounter++;
502503
}
504+
if (support.isCancelEverything()) {
505+
return null;
506+
}
503507
}
504508
if (myParserList.isEmpty()) {
505509
return null;

0 commit comments

Comments
 (0)