@@ -133,6 +133,8 @@ public class GLDAllConfigurationHandler extends BaseConfigurationHandler impleme
133
133
public static final String SIMULATOR = "simulator" ;
134
134
public static final String SEPARATED_LOADS_FILE = "separated_loads_file" ;
135
135
public static final int TIMEFILTER_YEAR = 2013 ;
136
+ public static final String RUN_REALTIME = "run_realtime" ;
137
+ public static final String TIMESTEP = "timestep" ;
136
138
137
139
// public static final String CONFIGTARGET = "glm";
138
140
public static final String CONFIGTARGET = "both" ; //will build files for both glm and dss
@@ -387,7 +389,9 @@ protected void generateStartupFile(Properties parameters, String tempDataPath, P
387
389
throw new Exception ("Missing parameter " +SIMULATIONID );
388
390
}
389
391
String scheduleName = GridAppsDConstants .getStringProperty (parameters , SCHEDULENAME , null );
390
-
392
+
393
+ boolean run_realtime = GridAppsDConstants .getBooleanProperty (parameters , RUN_REALTIME , true );
394
+
391
395
double nominalv = 0 ;
392
396
393
397
try {
@@ -460,7 +464,10 @@ protected void generateStartupFile(Properties parameters, String tempDataPath, P
460
464
startupFileWriter .println (" name " +simulationID +";" );
461
465
if (simulator .equalsIgnoreCase ("gridlab-d" ))
462
466
startupFileWriter .println (" message_type JSON;" );
463
- startupFileWriter .println (" publish_period 3;" );
467
+ if (run_realtime )
468
+ startupFileWriter .println (" publish_period 3;" );
469
+ else
470
+ startupFileWriter .println (" publish_period 60;" );
464
471
startupFileWriter .println (" configure model_outputs.json;" );
465
472
startupFileWriter .println ("}" );
466
473
@@ -477,7 +484,10 @@ protected void generateStartupFile(Properties parameters, String tempDataPath, P
477
484
startupFileWriter .println (" parent " +simulationID +";" );
478
485
startupFileWriter .println (" property message_type;" );
479
486
startupFileWriter .println (" file " +simulationID +".csv;" );
480
- startupFileWriter .println (" interval 1;" );
487
+ if (run_realtime )
488
+ startupFileWriter .println (" interval 1;" );
489
+ else
490
+ startupFileWriter .println (" interval 60;" );
481
491
startupFileWriter .println ("}" );
482
492
/*startupFileWriter.println("object multi_recorder {");
483
493
startupFileWriter.println(" parent "+simulationName+";");
0 commit comments