Codota Logo
TimeWindow.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.graphhopper.jsprit.core.problem.solution.route.activity.TimeWindow
constructor

Best Java code snippets using com.graphhopper.jsprit.core.problem.solution.route.activity.TimeWindow.<init> (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: graphhopper/jsprit

/**
 * Returns new instance of TimeWindow.
 *
 * @param start
 * @param end
 * @return TimeWindow
 * @throw IllegalArgumentException either if start or end < 0.0 or end < start
 */
public static TimeWindow newInstance(double start, double end) {
  return new TimeWindow(start, end);
}
origin: com.graphhopper/jsprit-core

/**
 * Returns new instance of TimeWindow.
 *
 * @param start
 * @param end
 * @return TimeWindow
 * @throw IllegalArgumentException either if start or end < 0.0 or end < start
 */
public static TimeWindow newInstance(double start, double end) {
  return new TimeWindow(start, end);
}
origin: PGWelch/com.opendoorlogistics

TimeWindow twObj = new TimeWindow(tw[0].getTotalMilliseconds(), tw[1].getTotalMilliseconds());
if (i == 0) {
  builder.setPickupTimeWindow(twObj);
origin: PGWelch/com.opendoorlogistics

private Service buildStop(ODLTableReadOnly table, int row, StopsTableDefn dfn, Service.Builder builder) {
  LatLong ll = dfn.latLong.getLatLong(table, row,false);
  
  Location location = Location.newInstance(locs.addLatLong(ll));
  builder.setLocation(location);
  
  // validate and add quantities
  for (int q = 0; q < dfn.quantityIndices.length; q++) {
    builder.addSizeDimension(q, dfn.getQuantity(table, row, q));
  }
  // validate and set service duration
  if (dfn.serviceDuration != -1) {
    builder.setServiceTime(dfn.getDuration(table, row).getTotalMilliseconds());
  }
  // validate and set time window
  ODLTime[] tw = dfn.getTW(table, row);
  if (tw != null) {
    builder.setTimeWindow(new TimeWindow(tw[0].getTotalMilliseconds(), tw[1].getTotalMilliseconds()));
  }
  // add required skills
  for(String skill: getSkillsArray((String)table.getValueAt(row, dfn.requiredSkills))){
    builder.addRequiredSkill(skill);
  }
  return builder.build();
}
com.graphhopper.jsprit.core.problem.solution.route.activityTimeWindow<init>

Javadoc

Constructs the timeWindow

Popular methods of TimeWindow

  • getEnd
    Returns endTime of TimeWindow.
  • getStart
    Returns startTime of TimeWindow.
  • newInstance
    Returns new instance of TimeWindow.

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JFileChooser (javax.swing)
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
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