Codota Logo
PDPRoadModel$Builder.build
Code IndexAdd Codota to your IDE (free)

How to use
build
method
in
com.github.rinde.rinsim.pdptw.common.PDPRoadModel$Builder

Best Java code snippets using com.github.rinde.rinsim.pdptw.common.PDPRoadModel$Builder.build (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: rinde/RinSim

/**
 * Setup an environment with three vehicles and three parcels.
 */
@Before
public void setUp() {
 final DependencyProvider dp = mock(DependencyProvider.class);
 rm = PDPRoadModel.builder(
  RoadModelBuilders.plane()
   .withMaxSpeed(300d))
  .withAllowVehicleDiversion(false)
  .build(dp);
 when(dp.get(RoadModel.class)).thenReturn(rm);
 pm = DefaultPDPModel.builder()
  .withTimeWindowPolicy(TimeWindowPolicies.TARDY_ALLOWED)
  .build(dp);
 mp = new TestModelProvider(new ArrayList<>(
  Arrays.<Model<?>>asList(rm, pm)));
 rm.registerModelProvider(mp);
 v1 = new TestVehicle(new Point(0, 1));
 v2 = new TestVehicle(new Point(0, 2));
 v3 = new TestVehicle(new Point(0, 3));
 p1 = createParcel(new Point(3, 0), new Point(0, 3));
 p2 = createParcel(new Point(6, 9), new Point(2, 9));
 p3 = createParcel(new Point(2, 8), new Point(8, 2));
 ss = rm.getSnapshot();
}
origin: rinde/RinSim

 .withSpeedUnit(NonSI.KILOMETERS_PER_HOUR))
.withAllowVehicleDiversion(allowDiversion)
.build(dep);
origin: rinde/RinSim

 .withMaxSpeed(30d))
.withAllowVehicleDiversion(diversionIsAllowed)
.build(dp);
com.github.rinde.rinsim.pdptw.commonPDPRoadModel$Builderbuild

Popular methods of PDPRoadModel$Builder

  • withAllowVehicleDiversion
  • getAllowVehicleDiversion
  • create
  • getDelegateModelBuilder
  • setProvidingTypes

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • JTextField (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now