PDPModelRenderer extends AbstractCanvasRenderer { public static Builder builder() { return Builder.create(false); } PDPModelRenderer(RoadModel rm, PDPModel pm, Device d, boolean lines); @Override void renderStatic(GC gc, ViewPort vp); @Override void renderDynamic(GC gc, ViewPort vp, long time); static Builder builder();  }
@Test public void test() { final Simulator sim = Simulator.builder() .addModel(TimeModel.builder().withRealTime()) .addModel(RoadModelBuilders.plane()) .addModel(DefaultPDPModel.builder()) .addModel(View.builder() .with(PlaneRoadModelRenderer.builder()) .with(RoadUserRenderer.builder() .withColorAssociation(Depot.class, new RGB(255, 200, 0)) .withCircleAroundObjects()) .with(PDPModelRenderer.builder() .withDestinationLines()) .withAutoPlay() .withAutoClose() .withSimulatorEndTime(5000)) .build(); for (int i = 0; i < 10; i++) { if (i != 5) { sim.register(Parcel.builder(new Point(i, i + 1), new Point(5, 5)) .build()); sim .register( new TestVehicle(new Point(i, 10 - i), new Point(i, i + 1))); } } sim.register(new Depot(new Point(5, 5))); sim.start(); }