Class Location
java.lang.Object
com.graphhopper.jsprit.core.problem.Location
Created by schroeder on 16.12.14.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()intgetIndex()getName()inthashCode()static LocationnewInstance(double x, double y) Factory method (and shortcut) for creating a location object just with x and y coordinates.static LocationnewInstance(int index) Factory method (and shortcut) for creating location object just with location indexstatic LocationnewInstance(String id) Factory method (and shortcut) for creating location object just with idtoString()
-
Field Details
-
NO_INDEX
public static final int NO_INDEX- See Also:
-
-
Method Details
-
newInstance
Factory method (and shortcut) for creating a location object just with x and y coordinates.- Parameters:
x- coordinatey- coordinate- Returns:
- location
-
newInstance
Factory method (and shortcut) for creating location object just with id- Parameters:
id- location id- Returns:
- location
-
newInstance
Factory method (and shortcut) for creating location object just with location index- Parameters:
index- of location- Returns:
- this builder
-
getUserData
- Returns:
- User-specific domain data associated by the job
-
getId
-
getIndex
public int getIndex() -
getCoordinate
-
getName
-
equals
-
hashCode
public int hashCode() -
toString
-