Class RoutingModel.NodeNeighborsByCostClass
java.lang.Object
com.google.ortools.constraintsolver.RoutingModel.NodeNeighborsByCostClass
- Enclosing class:
- RoutingModel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidComputeNeighbors(RoutingModel routing_model, int num_neighbors, boolean add_vehicle_starts_to_neighbors) Computes num_neighbors neighbors of all nodes for every cost class in
routing_model.voiddelete()protected voidfinalize()static longint[]GetNeighborsOfNodeForCostClass(int cost_class, int node_index) Returns the neighbors of the given node for the given cost_class.static long
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
NodeNeighborsByCostClass
public NodeNeighborsByCostClass(long cPtr, boolean cMemoryOwn) -
NodeNeighborsByCostClass
public NodeNeighborsByCostClass()
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize() -
delete
public void delete() -
ComputeNeighbors
public void ComputeNeighbors(RoutingModel routing_model, int num_neighbors, boolean add_vehicle_starts_to_neighbors) Computes num_neighbors neighbors of all nodes for every cost class in
routing_model. -
GetNeighborsOfNodeForCostClass
public int[] GetNeighborsOfNodeForCostClass(int cost_class, int node_index) Returns the neighbors of the given node for the given cost_class.
-