Java Reference

Java Reference

RoutingFilteredDecisionBuilder.java
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.0
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8 
9 package com.google.ortools.constraintsolver;
10 
15  private transient long swigCPtr;
16 
17  protected RoutingFilteredDecisionBuilder(long cPtr, boolean cMemoryOwn) {
18  super(mainJNI.RoutingFilteredDecisionBuilder_SWIGUpcast(cPtr), cMemoryOwn);
19  swigCPtr = cPtr;
20  }
21 
22  protected static long getCPtr(RoutingFilteredDecisionBuilder obj) {
23  return (obj == null) ? 0 : obj.swigCPtr;
24  }
25 
26  @SuppressWarnings("deprecation")
27  protected void finalize() {
28  delete();
29  }
30 
31  public synchronized void delete() {
32  if (swigCPtr != 0) {
33  if (swigCMemOwn) {
34  swigCMemOwn = false;
35  mainJNI.delete_RoutingFilteredDecisionBuilder(swigCPtr);
36  }
37  swigCPtr = 0;
38  }
39  super.delete();
40  }
41 
42  public RoutingModel model() {
43  long cPtr = mainJNI.RoutingFilteredDecisionBuilder_model(swigCPtr, this);
44  return (cPtr == 0) ? null : new RoutingModel(cPtr, false);
45  }
46 
50  public int getStartChainEnd(int vehicle) {
51  return mainJNI.RoutingFilteredDecisionBuilder_getStartChainEnd(swigCPtr, this, vehicle);
52  }
53 
57  public int getEndChainStart(int vehicle) {
58  return mainJNI.RoutingFilteredDecisionBuilder_getEndChainStart(swigCPtr, this, vehicle);
59  }
60 
64  public void makeDisjunctionNodesUnperformed(long node) {
65  mainJNI.RoutingFilteredDecisionBuilder_makeDisjunctionNodesUnperformed(swigCPtr, this, node);
66  }
67 
72  mainJNI.RoutingFilteredDecisionBuilder_makeUnassignedNodesUnperformed(swigCPtr, this);
73  }
74 
75 }
int getStartChainEnd(int vehicle)
Returns the end of the start chain of vehicle,.
Decision builders building a solution using local search filters to evaluate its feasibility.
void makeDisjunctionNodesUnperformed(long node)
Make nodes in the same disjunction as 'node' unperformed.
int getEndChainStart(int vehicle)
Returns the start of the end chain of vehicle,.