Class Location

java.lang.Object
com.graphhopper.jsprit.core.problem.Location
All Implemented Interfaces:
HasId, HasIndex

public final class Location extends Object implements HasIndex, HasId
Created by schroeder on 16.12.14.
  • Field Details

  • Method Details

    • newInstance

      public static Location newInstance(double x, double y)
      Factory method (and shortcut) for creating a location object just with x and y coordinates.
      Parameters:
      x - coordinate
      y - coordinate
      Returns:
      location
    • newInstance

      public static Location newInstance(String id)
      Factory method (and shortcut) for creating location object just with id
      Parameters:
      id - location id
      Returns:
      location
    • newInstance

      public static Location newInstance(int index)
      Factory method (and shortcut) for creating location object just with location index
      Parameters:
      index - of location
      Returns:
      this builder
    • getUserData

      public Object getUserData()
      Returns:
      User-specific domain data associated by the job
    • getId

      public String getId()
      Specified by:
      getId in interface HasId
    • getIndex

      public int getIndex()
      Specified by:
      getIndex in interface HasIndex
    • getCoordinate

      public Coordinate getCoordinate()
    • getName

      public String getName()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object