Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
RoutingSearchStats.java
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.4.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
9package com.google.ortools.constraintsolver;
10
11public class RoutingSearchStats {
12 private transient long swigCPtr;
13 protected transient boolean swigCMemOwn;
14
15 public RoutingSearchStats(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
17 swigCPtr = cPtr;
18 }
19
20 public static long getCPtr(RoutingSearchStats obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
22 }
23
24 public static long swigRelease(RoutingSearchStats obj) {
25 long ptr = 0;
26 if (obj != null) {
27 if (!obj.swigCMemOwn)
28 throw new RuntimeException("Cannot release ownership as memory is not owned");
29 ptr = obj.swigCPtr;
30 obj.swigCMemOwn = false;
31 obj.delete();
32 }
33 return ptr;
34 }
35
36 @SuppressWarnings({"deprecation", "removal"})
37 protected void finalize() {
38 delete();
39 }
40
41 public synchronized void delete() {
42 if (swigCPtr != 0) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
45 mainJNI.delete_RoutingSearchStats(swigCPtr);
46 }
47 swigCPtr = 0;
48 }
49 }
50
51 public void setNum_cp_sat_calls_in_lp_scheduling(long value) {
52 mainJNI.RoutingSearchStats_num_cp_sat_calls_in_lp_scheduling_set(swigCPtr, this, value);
53 }
54
56 return mainJNI.RoutingSearchStats_num_cp_sat_calls_in_lp_scheduling_get(swigCPtr, this);
57 }
58
59 public void setNum_glop_calls_in_lp_scheduling(long value) {
60 mainJNI.RoutingSearchStats_num_glop_calls_in_lp_scheduling_set(swigCPtr, this, value);
61 }
62
64 return mainJNI.RoutingSearchStats_num_glop_calls_in_lp_scheduling_get(swigCPtr, this);
65 }
66
67 public void setNum_min_cost_flow_calls(long value) {
68 mainJNI.RoutingSearchStats_num_min_cost_flow_calls_set(swigCPtr, this, value);
69 }
70
72 return mainJNI.RoutingSearchStats_num_min_cost_flow_calls_get(swigCPtr, this);
73 }
74
75 public void setNum_cp_sat_calls_in_routing(long value) {
76 mainJNI.RoutingSearchStats_num_cp_sat_calls_in_routing_set(swigCPtr, this, value);
77 }
78
80 return mainJNI.RoutingSearchStats_num_cp_sat_calls_in_routing_get(swigCPtr, this);
81 }
82
84 mainJNI.RoutingSearchStats_num_generalized_cp_sat_calls_in_routing_set(swigCPtr, this, value);
85 }
86
88 return mainJNI.RoutingSearchStats_num_generalized_cp_sat_calls_in_routing_get(swigCPtr, this);
89 }
90
92 this(mainJNI.new_RoutingSearchStats(), true);
93 }
94
95}