Java Reference

Java Reference

MPModelExportOptions.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.linearsolver;
10 
11 import java.lang.reflect.*;
12 
16 public 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  @SuppressWarnings("deprecation")
30  protected void finalize() {
31  delete();
32  }
33 
34  public synchronized void delete() {
35  if (swigCPtr != 0) {
36  if (swigCMemOwn) {
37  swigCMemOwn = false;
38  main_research_linear_solverJNI.delete_MPModelExportOptions(swigCPtr);
39  }
40  swigCPtr = 0;
41  }
42  }
43 
45  this(main_research_linear_solverJNI.new_MPModelExportOptions(), true);
46  }
47 
51  public void setObfuscate(boolean value) {
52  main_research_linear_solverJNI.MPModelExportOptions_Obfuscate_set(swigCPtr, this, value);
53  }
54 
58  public boolean getObfuscate() {
59  return main_research_linear_solverJNI.MPModelExportOptions_Obfuscate_get(swigCPtr, this);
60  }
61 
65  public void setLogInvalidNames(boolean value) {
66  main_research_linear_solverJNI.MPModelExportOptions_LogInvalidNames_set(swigCPtr, this, value);
67  }
68 
72  public boolean getLogInvalidNames() {
73  return main_research_linear_solverJNI.MPModelExportOptions_LogInvalidNames_get(swigCPtr, this);
74  }
75 
80  public void setShowUnusedVariables(boolean value) {
81  main_research_linear_solverJNI.MPModelExportOptions_ShowUnusedVariables_set(swigCPtr, this, value);
82  }
83 
88  public boolean getShowUnusedVariables() {
89  return main_research_linear_solverJNI.MPModelExportOptions_ShowUnusedVariables_get(swigCPtr, this);
90  }
91 
96  public void setMaxLineLength(int value) {
97  main_research_linear_solverJNI.MPModelExportOptions_MaxLineLength_set(swigCPtr, this, value);
98  }
99 
104  public int getMaxLineLength() {
105  return main_research_linear_solverJNI.MPModelExportOptions_MaxLineLength_get(swigCPtr, this);
106  }
107 
108 }
void setLogInvalidNames(boolean value)
Whether to log invalid variable and constraint names.
boolean getObfuscate()
Obfuscates variable and constraint names.
boolean getShowUnusedVariables()
For .lp files only.
int getMaxLineLength()
For .lp files only.
void setShowUnusedVariables(boolean value)
For .lp files only.
void setMaxLineLength(int value)
For .lp files only.
MPModelExportOptions()
boolean getLogInvalidNames()
Whether to log invalid variable and constraint names.
void setObfuscate(boolean value)
Obfuscates variable and constraint names.
Export options.
MPModelExportOptions(long cPtr, boolean cMemoryOwn)