DynamicSimulationParameters extends AbstractExtendable<DynamicSimulationParameters> { public static DynamicSimulationParameters load() { return load(PlatformConfig.defaultConfig()); } DynamicSimulationParameters(int startTime, int stopTime);  DynamicSimulationParameters(); protected  DynamicSimulationParameters(DynamicSimulationParameters other); static DynamicSimulationParameters load(); static DynamicSimulationParameters load(PlatformConfig platformConfig); int getStartTime(); DynamicSimulationParameters setStartTime(int startTime); int getStopTime(); DynamicSimulationParameters setStopTime(int stopTime); DynamicSimulationParameters copy(); @Override String toString(); static final String VERSION; static final int DEFAULT_START_TIME; static final int DEFAULT_STOP_TIME; }
@Test public void testNoConfig() { DynamicSimulationParameters parameters = new DynamicSimulationParameters(); DynamicSimulationParameters.load(parameters, platformConfig); checkValues(parameters, DynamicSimulationParameters.DEFAULT_START_TIME, DynamicSimulationParameters.DEFAULT_STOP_TIME); }
@Test public void testExtensionFromConfig() { DynamicSimulationParameters parameters = DynamicSimulationParameters.load(platformConfig); assertEquals(1, parameters.getExtensions().size()); assertTrue(parameters.getExtensionByName("dummyExtension") instanceof DummyExtension); assertNotNull(parameters.getExtension(DummyExtension.class)); }