RtSolverModel extends AbstractModel<RtSolverUser> implements TickListener { @CheckReturnValue public static Builder builder() { return Builder.create(Mode.UNKNOWN, 0, false); } RtSolverModel(RealtimeClockController c, PDPRoadModel rm, PDPModel pm,
      Mode m, int threads, boolean threadGrouping); @Override boolean register(RtSolverUser element); @Override boolean unregister(RtSolverUser element); @Override U get(Class<U> clazz); @Override void tick(TimeLapse timeLapse); @Override void afterTick(TimeLapse timeLapse); @CheckReturnValue static Builder builder(); static final int DEFAULT_NUM_THREADS_IN_SINGLE_MODE; }
@Test public void testBuilder() { final RtSolverModel m = RtSolverModel.builder() .withMultiMode() .build(dependencyProvider); assertThat(m.mode).isEqualTo(Mode.MULTI_MODE); final RtSolverModel m2 = RtSolverModel.builder() .withSingleMode() .build(dependencyProvider); assertThat(m2.mode).isEqualTo(Mode.SINGLE_MODE); }