Class Location.Builder
java.lang.Object
com.graphhopper.jsprit.core.problem.Location.Builder
- Enclosing class:
Location
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()static Location.BuildersetCoordinate(Coordinate coordinate) Sets coordinate of locationSets location idsetIndex(int index) Sets location indexAdds name, e.g.setUserData(Object userData) Sets user specific domain data associated with the object.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
newInstance
-
setUserData
Sets user specific domain data associated with the object.The user data is a black box for the framework, it only stores it, but never interacts with it in any way.
- Parameters:
userData- any object holding the domain specific user data associated with the object.- Returns:
- builder
-
setIndex
Sets location index- Parameters:
index- location index- Returns:
- the builder
-
setCoordinate
Sets coordinate of location- Parameters:
coordinate- of location- Returns:
- this Builder
-
setId
Sets location id- Parameters:
id- id of location- Returns:
- this Builder
-
setName
Adds name, e.g. street name, to location- Parameters:
name- name of location- Returns:
- this Builder
-
build
-