SearchLimit.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 
11 public class SearchLimit extends SearchMonitor {
12  private transient long swigCPtr;
13 
14  protected SearchLimit(long cPtr, boolean cMemoryOwn) {
15  super(mainJNI.SearchLimit_SWIGUpcast(cPtr), cMemoryOwn);
16  swigCPtr = cPtr;
17  }
18 
19  protected static long getCPtr(SearchLimit 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_SearchLimit(swigCPtr);
33  }
34  swigCPtr = 0;
35  }
36  super.delete();
37  }
38 
39  public boolean crossed() {
40  return mainJNI.SearchLimit_crossed(swigCPtr, this);
41  }
42 
43  public boolean check() {
44  return mainJNI.SearchLimit_check(swigCPtr, this);
45  }
46 
47  public void init() {
48  mainJNI.SearchLimit_init(swigCPtr, this);
49  }
50 
51  public void copy(SearchLimit limit) {
52  mainJNI.SearchLimit_copy(swigCPtr, this, SearchLimit.getCPtr(limit), limit);
53  }
54 
56  long cPtr = mainJNI.SearchLimit_makeClone(swigCPtr, this);
57  return (cPtr == 0) ? null : new SearchLimit(cPtr, false);
58  }
59 
60  public void enterSearch() {
61  mainJNI.SearchLimit_enterSearch(swigCPtr, this);
62  }
63 
65  mainJNI.SearchLimit_beginNextDecision(swigCPtr, this, DecisionBuilder.getCPtr(b), b);
66  }
67 
68  public void periodicCheck() {
69  mainJNI.SearchLimit_periodicCheck(swigCPtr, this);
70  }
71 
72  public void refuteDecision(Decision d) {
73  mainJNI.SearchLimit_refuteDecision(swigCPtr, this, Decision.getCPtr(d), d);
74  }
75 
76  public String toString() {
77  return mainJNI.SearchLimit_toString(swigCPtr, this);
78  }
79 
80 }
SearchLimit(long cPtr, boolean cMemoryOwn)