View extends AbstractModel<Void> implements TickListener, UserInterface, MainView { @CheckReturnValue public static Builder builder() { return Builder.create(); } View(Builder b, ClockController cc); @Override void show(); @Override void tick(TimeLapse time); @Override void afterTick(TimeLapse time); @Override boolean register(Void element); @Override boolean unregister(Void element); @Override void addListener(Listener l); @Override U get(Class<U> clazz); @CheckReturnValue static Builder builder();  }
@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(); }
@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(); }