Skip to content

Commit f695699

Browse files
Christoph BodensteinChristoph Bodenstein
authored andcommitted
cleanup code, added annotations
1 parent c63510b commit f695699

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

TimeNETOptimizationEnvironment/src/toe/simulation/SimulatorLocal.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public SimulatorLocal() {
5858
* @param listOfParameterSetsTMP List of Parameter-sets to be simulated
5959
* @param simulationCounterTMP start value of simulation counter
6060
*/
61+
@Override
6162
public void initSimulator(ArrayList< ArrayList<parameter>> listOfParameterSetsTMP, int simulationCounterTMP, boolean log) {
6263
this.status = 0;
6364
this.listOfParameterSets = listOfParameterSetsTMP;
@@ -78,9 +79,10 @@ public void initSimulator(ArrayList< ArrayList<parameter>> listOfParameterSetsTM
7879
* Run Method to start simulations and collect the data simulats the SCPNs,
7980
* main routine
8081
*/
82+
@Override
8183
public void run() {
8284
this.status = 0;
83-
this.listOfCompletedSimulationParsers = new ArrayList<SimulationType>();
85+
this.listOfCompletedSimulationParsers = new ArrayList<>();
8486
int numberOfSimulations = 0;
8587
if (support.checkTimeNetPath()) {
8688
try {
@@ -293,6 +295,7 @@ private void startLocalSimulation(String exportFileName) {
293295
*
294296
* @return List of completed simulation parsers
295297
*/
298+
@Override
296299
public ArrayList<SimulationType> getListOfCompletedSimulationParsers() {
297300
return this.listOfCompletedSimulationParsers;
298301
}
@@ -313,6 +316,7 @@ public void deleteTmpFiles() {
313316
*
314317
* @return number of actual simulation
315318
*/
319+
@Override
316320
public int getSimulationCounter() {
317321
return this.simulationCounter;
318322
}
@@ -331,14 +335,17 @@ public void setSimulationCounter(int i) {
331335
*
332336
* @return % of simulations that are finished
333337
*/
338+
@Override
334339
public int getStatus() {
335340
return this.status;
336341
}
337342

343+
@Override
338344
public void processEnded() {
339345
support.log("Local Simulation ended.");
340346
}
341347

348+
@Override
342349
public void errorOccured(String message) {
343350
support.log("Error while local simulation.");
344351
}
@@ -347,6 +354,7 @@ public void errorOccured(String message) {
347354
* Returns the calulated optimimum For Benchmark-Functions this can be
348355
* caluclated. For other simulators, this must be given by user.
349356
*/
357+
@Override
350358
public SimulationType getCalculatedOptimum(MeasureType targetMeasure) {
351359
support.log("SimulatorLocal: Getting absolute optimum simulation from Cache. Will return null.");
352360
return null;

0 commit comments

Comments
 (0)