.withImageAssociation(AGV.class, "/graphics/flat/forklift2.png")) .withTitleAppendix("Factory Demo") .withAutoPlay() .withAutoClose()
.withTitleAppendix("Communication example") .with(PlaneRoadModelRenderer.builder()) .with(CommRenderer.builder()
.withTitleAppendix("Communication example") .with(PlaneRoadModelRenderer.builder()) .with(CommRenderer.builder()
.withAutoClose() .withSpeedUp(8) .withTitleAppendix("testGraphUpdates()"))
.withTitleAppendix("Wrapped GraphRoadModel UI test") .with(GraphRoadModelRenderer.builder().withMargin(1)) .with(RoadUserRenderer.builder())
.withAutoClose() .withSpeedUp(8) .withTitleAppendix("testGraphRenderers()"))
.withTitleAppendix("Simple example") .with(RoadUserRenderer.builder());
.withTitleAppendix("UAV example");
.withTitleAppendix("Simple example") .with(RoadUserRenderer.builder());
.withTitleAppendix("Gradient field example") .with(PlaneRoadModelRenderer.builder()) .with(RoadUserRenderer.builder()
.withTitleAppendix("UAV example");
.addModel( View.builder() .withTitleAppendix("ViewTest") .with(PlaneRoadModelRenderer.builder()) .with(RoadUserRenderer.builder())
.withTitleAppendix("Gradient field example") .with(PlaneRoadModelRenderer.builder()) .with(RoadUserRenderer.builder()
.withAutoClose() .withSimulatorEndTime(TEST_END_TIME) .withTitleAppendix("TESTING") .withSpeedUp(TEST_SPEED_UP); } else { viewBuilder = viewBuilder.withTitleAppendix("AGV example");
.withAutoClose() .withSimulatorEndTime(TEST_END_TIME) .withTitleAppendix("TESTING") .withSpeedUp(TEST_SPEED_UP); } else { viewBuilder = viewBuilder.withTitleAppendix("AGV example");
Customer.class, "/graphics/flat/person-red-32.png")) .with(TaxiRenderer.builder(Language.ENGLISH)) .withTitleAppendix("Taxi example");
Customer.class, "/graphics/flat/person-red-32.png")) .with(TaxiRenderer.builder(Language.ENGLISH)) .withTitleAppendix("Taxi example");
static StatisticsDTO simulate(Scenario scenario) { final ExperimentResults results = Experiment.builder() .addScenario(scenario) .addConfiguration(Central.solverConfiguration( StochasticSuppliers.constant(TestSolvers.lazyInsertion()))) .withThreads(1) .usePostProcessor(PostProcessors.statisticsPostProcessor(OBJ_FUNC)) .showGui(View.builder() .withAutoPlay() // .withAutoClose() .withSpeedUp(4) // .withFullScreen() .withTitleAppendix("AAMAS 2016 Experiment") .with(RoadUserRenderer.builder() .withToStringLabel()) .with(PDPModelRenderer.builder()) .with(RouteRenderer.builder()) .with(PlaneRoadModelRenderer.builder()) .with(TimeLinePanel.builder()) .withResolution(1280, 1024)) .showGui(false) .perform(); final SimulationResult res = results.getResults().iterator().next(); final StatisticsDTO stats = (StatisticsDTO) res.getResultObject(); return stats; }
/** * Test for ui with real time clock. */ @Test public void testRealtime() { final Simulator sim = Simulator.builder() .addModel(TimeModel.builder() .withRealTime() .withTickLength(100L)) .addModel(RoadModelBuilders.plane()) .addModel(View.builder() .withTitleAppendix("ViewTest") .withAutoClose() .withAutoPlay() .withSimulatorEndTime(1000) .with(PlaneRoadModelRenderer.builder()) .with(TestRenderer.builder())) .build(); sim.start(); }
/** * Simple GUI test. */ @Test public void testRenderer() { final Simulator sim = Simulator.builder() .addModel(RoadModelBuilders.plane()) .addModel(View.builder() .withTitleAppendix("ViewTest") .withAutoClose() .withAutoPlay() .withSimulatorEndTime(10000) .with(PlaneRoadModelRenderer.builder()) .with(TestRenderer.builder())) .build(); sim.start(); }