Java Reference

Java Reference

GlobalVehicleBreaksConstraint.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.1
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 
12  private transient long swigCPtr;
13 
14  protected GlobalVehicleBreaksConstraint(long cPtr, boolean cMemoryOwn) {
15  super(mainJNI.GlobalVehicleBreaksConstraint_SWIGUpcast(cPtr), cMemoryOwn);
16  swigCPtr = cPtr;
17  }
18 
19  protected static long getCPtr(GlobalVehicleBreaksConstraint obj) {
20  return (obj == null) ? 0 : obj.swigCPtr;
21  }
22 
23  @SuppressWarnings("deprecation")
24  protected void finalize() {
25  delete();
26  }
27 
28  public synchronized void delete() {
29  if (swigCPtr != 0) {
30  if (swigCMemOwn) {
31  swigCMemOwn = false;
32  mainJNI.delete_GlobalVehicleBreaksConstraint(swigCPtr);
33  }
34  swigCPtr = 0;
35  }
36  super.delete();
37  }
38 
40  this(mainJNI.new_GlobalVehicleBreaksConstraint(RoutingDimension.getCPtr(dimension), dimension), true);
41  }
42 
43  public void post() {
44  mainJNI.GlobalVehicleBreaksConstraint_post(swigCPtr, this);
45  }
46 
47  public void initialPropagate() {
48  mainJNI.GlobalVehicleBreaksConstraint_initialPropagate(swigCPtr, this);
49  }
50 
51 }
GlobalVehicleBreaksConstraint(RoutingDimension dimension)
void post()
void initialPropagate()
GlobalVehicleBreaksConstraint(long cPtr, boolean cMemoryOwn)