@@ -23,7 +23,7 @@ public class SimulatorCached implements Simulator {
2323
2424 private SimulationCache mySimulationCache = null ;
2525 private ArrayList <SimulationType > myListOfSimulations = null ;
26- private String logFileName ;
26+ private final String logFileName ;
2727
2828 /**
2929 * Constructor
@@ -40,6 +40,7 @@ public SimulatorCached() {
4040 * @param simulationCounterTMP actual Number of simulation, will be
4141 * increased with every simulation-run
4242 */
43+ @ Override
4344 public void initSimulator (ArrayList <ArrayList <parameter >> listOfParameterSetsTMP , int simulationCounterTMP , boolean log ) {
4445 if (mySimulationCache != null ) {
4546 this .myListOfSimulations = mySimulationCache .getListOfCompletedSimulationParsers (listOfParameterSetsTMP , support .getGlobalSimulationCounter ());
@@ -83,6 +84,7 @@ public void initSimulator(ArrayList<ArrayList<parameter>> listOfParameterSetsTMP
8384 *
8485 * @return % of simulatiions that are finished
8586 */
87+ @ Override
8688 public int getStatus () {
8789 if (this .myListOfSimulations != null ) {
8890 return 100 ;
@@ -96,6 +98,7 @@ public int getStatus() {
9698 *
9799 * @return actual simulation counter
98100 */
101+ @ Override
99102 public int getSimulationCounter () {
100103 return support .getGlobalSimulationCounter ();
101104 }
@@ -107,6 +110,7 @@ public int getSimulationCounter() {
107110 * @return list of completed simulations (parsers) which contain all data
108111 * from the log-files
109112 */
113+ @ Override
110114 public ArrayList <SimulationType > getListOfCompletedSimulationParsers () {
111115 return this .myListOfSimulations ;
112116 }
@@ -136,6 +140,7 @@ public void setMySimulationCache(SimulationCache mySimulationCache) {
136140 *
137141 * @return
138142 */
143+ @ Override
139144 public SimulationType getCalculatedOptimum (MeasureType targetMeasure ) {
140145 //iterate through all cached sims and look for best solution
141146 support .log ("SimulatorCached: Getting absolute optimum simulation from Cache." );
0 commit comments