Java Reference

Java Reference

SolutionPool.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.2
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 SolutionPool extends BaseObject {
12  private transient long swigCPtr;
13 
14  protected SolutionPool(long cPtr, boolean cMemoryOwn) {
15  super(mainJNI.SolutionPool_SWIGUpcast(cPtr), cMemoryOwn);
16  swigCPtr = cPtr;
17  }
18 
19  protected static long getCPtr(SolutionPool 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_SolutionPool(swigCPtr);
33  }
34  swigCPtr = 0;
35  }
36  super.delete();
37  }
38 
39  public void initialize(Assignment assignment) {
40  mainJNI.SolutionPool_initialize(swigCPtr, this, Assignment.getCPtr(assignment), assignment);
41  }
42 
43  public void registerNewSolution(Assignment assignment) {
44  mainJNI.SolutionPool_registerNewSolution(swigCPtr, this, Assignment.getCPtr(assignment), assignment);
45  }
46 
47  public void getNextSolution(Assignment assignment) {
48  mainJNI.SolutionPool_getNextSolution(swigCPtr, this, Assignment.getCPtr(assignment), assignment);
49  }
50 
51  public boolean syncNeeded(Assignment local_assignment) {
52  return mainJNI.SolutionPool_syncNeeded(swigCPtr, this, Assignment.getCPtr(local_assignment), local_assignment);
53  }
54 
55 }
SolutionPool(long cPtr, boolean cMemoryOwn)
void getNextSolution(Assignment assignment)
void initialize(Assignment assignment)
boolean syncNeeded(Assignment local_assignment)
Definition: Assignment.java:11
Definition: BaseObject.java:11
void registerNewSolution(Assignment assignment)