File tree Expand file tree Collapse file tree 13 files changed +51
-12
lines changed
TimeNETOptimizationEnvironment/src/toe Expand file tree Collapse file tree 13 files changed +51
-12
lines changed Original file line number Diff line number Diff line change @@ -1079,7 +1079,7 @@ private void jButtonStartBatchSimulationActionPerformed(java.awt.event.ActionEve
10791079 }
10801080
10811081 Simulator mySimulator = SimOptiFactory .getSimulator ();
1082- mySimulator .initSimulator (ListOfParameterSetsToBeWritten , true );
1082+ mySimulator .initSimulator (ListOfParameterSetsToBeWritten , support . isCreateseparateLogFilesForEverySimulation () );
10831083 support .waitForSimulatorAsynchronous (mySimulator , this );
10841084 } else {
10851085 this .popUIState ();
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ public void run() {
174174 //support.waitForEndOfSimulator(mySimulator, support.DEFAULT_TIMEOUT);
175175 synchronized (mySimulator ) {
176176 try {
177- mySimulator .initSimulator (getNextParameterSetAsArrayList (), false );
177+ mySimulator .initSimulator (getNextParameterSetAsArrayList (), support . isCreateseparateLogFilesForEverySimulation () );
178178 mySimulator .wait ();
179179 } catch (InterruptedException ex ) {
180180 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
@@ -200,7 +200,7 @@ public void run() {
200200 //support.waitForEndOfSimulator(mySimulator, support.DEFAULT_TIMEOUT);
201201 synchronized (mySimulator ) {
202202 try {
203- mySimulator .initSimulator (getNextParameterSetAsArrayList (source ), false );
203+ mySimulator .initSimulator (getNextParameterSetAsArrayList (source ), support . isCreateseparateLogFilesForEverySimulation () );
204204 mySimulator .wait ();
205205 } catch (InterruptedException ex ) {
206206 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public void run() {
108108 //support.waitForEndOfSimulator(mySimulator, support.DEFAULT_TIMEOUT);
109109 synchronized (mySimulator ) {
110110 try {
111- mySimulator .initSimulator (getNextParameterSetAsArrayList (), false );
111+ mySimulator .initSimulator (getNextParameterSetAsArrayList (), support . isCreateseparateLogFilesForEverySimulation () );
112112 mySimulator .wait ();
113113 } catch (InterruptedException ex ) {
114114 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
@@ -137,7 +137,7 @@ public void run() {
137137 //support.waitForEndOfSimulator(mySimulator, support.DEFAULT_TIMEOUT);
138138 synchronized (mySimulator ) {
139139 try {
140- mySimulator .initSimulator (parameterList , false );
140+ mySimulator .initSimulator (parameterList , support . isCreateseparateLogFilesForEverySimulation () );
141141 mySimulator .wait ();
142142 } catch (InterruptedException ex ) {
143143 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public void run() {
109109 //support.waitForEndOfSimulator(mySimulator, support.DEFAULT_TIMEOUT);
110110 synchronized (mySimulator ) {
111111 try {
112- mySimulator .initSimulator (getNextParameterSetAsArrayList (), false );
112+ mySimulator .initSimulator (getNextParameterSetAsArrayList (), support . isCreateseparateLogFilesForEverySimulation () );
113113 mySimulator .wait ();
114114 } catch (InterruptedException ex ) {
115115 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
@@ -147,7 +147,7 @@ public void run() {
147147 //support.waitForEndOfSimulator(mySimulator, support.DEFAULT_TIMEOUT);
148148 synchronized (mySimulator ) {
149149 try {
150- mySimulator .initSimulator (parameterList , false );
150+ mySimulator .initSimulator (parameterList , support . isCreateseparateLogFilesForEverySimulation () );
151151 mySimulator .wait ();
152152 } catch (InterruptedException ex ) {
153153 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public void run() {
104104 //support.log("Performed % of simulations: "+mySimulator.getStatus(), typeOfLogLevel.INFO);
105105 synchronized (mySimulator ) {
106106 try {
107- mySimulator .initSimulator (getParametersetAsArrayList (getFirstParameterset ()), false );
107+ mySimulator .initSimulator (getParametersetAsArrayList (getFirstParameterset ()), support . isCreateseparateLogFilesForEverySimulation () );
108108 mySimulator .wait ();
109109 } catch (InterruptedException ex ) {
110110 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
@@ -131,7 +131,7 @@ public void run() {
131131 //support.waitForEndOfSimulator(mySimulator, support.DEFAULT_TIMEOUT);
132132 synchronized (mySimulator ) {
133133 try {
134- mySimulator .initSimulator (newParameterset , false );
134+ mySimulator .initSimulator (newParameterset , support . isCreateseparateLogFilesForEverySimulation () );
135135 mySimulator .wait ();
136136 } catch (InterruptedException ex ) {
137137 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public void run() {
9898 //support.waitForEndOfSimulator(mySimulator, support.DEFAULT_TIMEOUT);
9999 synchronized (mySimulator ) {
100100 try {
101- mySimulator .initSimulator (getNextParameterSetAsArrayList (), false );
101+ mySimulator .initSimulator (getNextParameterSetAsArrayList (), support . isCreateseparateLogFilesForEverySimulation () );
102102 mySimulator .wait ();
103103 } catch (InterruptedException ex ) {
104104 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
@@ -139,7 +139,7 @@ public void run() {
139139 //support.waitForEndOfSimulator(mySimulator, support.DEFAULT_TIMEOUT);
140140 synchronized (mySimulator ) {
141141 try {
142- mySimulator .initSimulator (parameterList , false );
142+ mySimulator .initSimulator (parameterList , support . isCreateseparateLogFilesForEverySimulation () );
143143 mySimulator .wait ();
144144 } catch (InterruptedException ex ) {
145145 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .INFO );
Original file line number Diff line number Diff line change @@ -57,4 +57,10 @@ public interface Simulator {
5757 * @return info-value about success of cancelation
5858 */
5959 public int cancelAllSimulations ();
60+
61+ /**
62+ * Returns name of local logfile, used by this simulator. The logfilename is chosen at init of simulator
63+ * @return
64+ */
65+ public String getLogfileName ();
6066}
Original file line number Diff line number Diff line change @@ -178,4 +178,9 @@ public SimulationType getCalculatedOptimum(MeasureType targetMeasure) {
178178 public int cancelAllSimulations () {
179179 throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
180180 }
181+
182+ @ Override
183+ public String getLogfileName () {
184+ return this .logFileName ;
185+ }
181186}
Original file line number Diff line number Diff line change @@ -194,4 +194,8 @@ public SimulationType getCalculatedOptimum(MeasureType targetMeasure) {
194194 public int cancelAllSimulations () {
195195 return 0 ;
196196 }
197+ @ Override
198+ public String getLogfileName () {
199+ return this .logFileName ;
200+ }
197201}
Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ public void run() {
9292
9393 synchronized (myLocalSimulator ) {
9494 try {
95- myLocalSimulator .initSimulator (remainingParametersets , false );
95+ support .addLinesToLogFileFromListOfParser (myLocalSimulator .getListOfCompletedSimulationParsers (), myLocalSimulator .getLogfileName ());
96+ myLocalSimulator .initSimulator (remainingParametersets , support .isCreateseparateLogFilesForEverySimulation ());
9697 myLocalSimulator .wait ();
9798 } catch (InterruptedException ex ) {
9899 support .log ("Problem waiting for end of non-cache-simulator." , typeOfLogLevel .ERROR );
@@ -179,4 +180,8 @@ public int cancelAllSimulations() {
179180 return 0 ;
180181 }
181182
183+ @ Override
184+ public String getLogfileName () {
185+ return this .logFileName ;
186+ }
182187}
You can’t perform that action at this time.
0 commit comments