Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
MPModelExportOptions.java
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.2.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.linearsolver;
10
11import java.lang.reflect.*;
12
16public final class MPModelExportOptions {
17 private transient long swigCPtr;
18 protected transient boolean swigCMemOwn;
19
20 protected MPModelExportOptions(long cPtr, boolean cMemoryOwn) {
21 swigCMemOwn = cMemoryOwn;
22 swigCPtr = cPtr;
23 }
24
25 protected static long getCPtr(MPModelExportOptions obj) {
26 return (obj == null) ? 0 : obj.swigCPtr;
27 }
28
29 protected static long swigRelease(MPModelExportOptions obj) {
30 long ptr = 0;
31 if (obj != null) {
32 if (!obj.swigCMemOwn)
33 throw new RuntimeException("Cannot release ownership as memory is not owned");
34 ptr = obj.swigCPtr;
35 obj.swigCMemOwn = false;
36 obj.delete();
37 }
38 return ptr;
39 }
40
41 @SuppressWarnings({"deprecation", "removal"})
42 protected void finalize() {
43 delete();
44 }
45
46 public synchronized void delete() {
47 if (swigCPtr != 0) {
48 if (swigCMemOwn) {
49 swigCMemOwn = false;
50 mainJNI.delete_MPModelExportOptions(swigCPtr);
51 }
52 swigCPtr = 0;
53 }
54 }
55
59 public void setObfuscate(boolean value) {
60 mainJNI.MPModelExportOptions_Obfuscate_set(swigCPtr, this, value);
61 }
62
66 public boolean getObfuscate() {
67 return mainJNI.MPModelExportOptions_Obfuscate_get(swigCPtr, this);
68 }
69
73 public void setLogInvalidNames(boolean value) {
74 mainJNI.MPModelExportOptions_LogInvalidNames_set(swigCPtr, this, value);
75 }
76
80 public boolean getLogInvalidNames() {
81 return mainJNI.MPModelExportOptions_LogInvalidNames_get(swigCPtr, this);
82 }
83
88 public void setShowUnusedVariables(boolean value) {
89 mainJNI.MPModelExportOptions_ShowUnusedVariables_set(swigCPtr, this, value);
90 }
91
96 public boolean getShowUnusedVariables() {
97 return mainJNI.MPModelExportOptions_ShowUnusedVariables_get(swigCPtr, this);
98 }
99
104 public void setMaxLineLength(int value) {
105 mainJNI.MPModelExportOptions_MaxLineLength_set(swigCPtr, this, value);
106 }
107
112 public int getMaxLineLength() {
113 return mainJNI.MPModelExportOptions_MaxLineLength_get(swigCPtr, this);
114 }
115
117 this(mainJNI.new_MPModelExportOptions(), true);
118 }
119
120}