return new MotorcycleFlagEncoder(configuration);
@Test public void testDirectionDependentSpeedFwdSearch() { runTestWithDirectionDependentEdgeSpeed(10, 20, 0, 2, IntArrayList.from(0, 1, 2), new MotorcycleFlagEncoder()); runTestWithDirectionDependentEdgeSpeed(10, 20, 0, 2, IntArrayList.from(0, 1, 2), new Bike2WeightFlagEncoder()); }
@Test public void testDirectionDependentSpeedBwdSearch() { runTestWithDirectionDependentEdgeSpeed(20, 10, 2, 0, IntArrayList.from(2, 1, 0), new MotorcycleFlagEncoder()); runTestWithDirectionDependentEdgeSpeed(20, 10, 2, 0, IntArrayList.from(2, 1, 0), new Bike2WeightFlagEncoder()); }
@Override public FlagEncoder createFlagEncoder( String name, PMap configuration ) { if (name.equals(CAR)) return new CarFlagEncoder(configuration); if (name.equals(BIKE)) return new BikeFlagEncoder(configuration); if (name.equals(BIKE2)) return new Bike2WeightFlagEncoder(configuration); if (name.equals(RACINGBIKE)) return new RacingBikeFlagEncoder(configuration); if (name.equals(MOUNTAINBIKE)) return new MountainBikeFlagEncoder(configuration); if (name.equals(FOOT)) return new FootFlagEncoder(configuration); if (name.equals(HIKE)) return new HikeFlagEncoder(configuration); if (name.equals(MOTORCYCLE)) return new MotorcycleFlagEncoder(configuration); throw new IllegalArgumentException("entry in encoder list not supported " + name); } }
return new MotorcycleFlagEncoder(configuration);
return new MotorcycleFlagEncoder(configuration);