1
2
3
4
5
6
7
8
9 package org.gnu.glpk;
10
11
12
13
14
15
16
17
18
19 public class glp_mpscp {
20 private transient long swigCPtr;
21 protected transient boolean swigCMemOwn;
22
23 protected glp_mpscp(long cPtr, boolean cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = cPtr;
26 }
27
28 protected static long getCPtr(glp_mpscp obj) {
29 return (obj == null) ? 0 : obj.swigCPtr;
30 }
31
32 protected void finalize() {
33 delete();
34 }
35
36 public synchronized void delete() {
37 if (swigCPtr != 0) {
38 if (swigCMemOwn) {
39 swigCMemOwn = false;
40 GLPKJNI.delete_glp_mpscp(swigCPtr);
41 }
42 swigCPtr = 0;
43 }
44 }
45
46 public void setBlank(int value) {
47 GLPKJNI.glp_mpscp_blank_set(swigCPtr, this, value);
48 }
49
50 public int getBlank() {
51 return GLPKJNI.glp_mpscp_blank_get(swigCPtr, this);
52 }
53
54 public void setObj_name(String value) {
55 GLPKJNI.glp_mpscp_obj_name_set(swigCPtr, this, value);
56 }
57
58 public String getObj_name() {
59 return GLPKJNI.glp_mpscp_obj_name_get(swigCPtr, this);
60 }
61
62 public void setTol_mps(double value) {
63 GLPKJNI.glp_mpscp_tol_mps_set(swigCPtr, this, value);
64 }
65
66 public double getTol_mps() {
67 return GLPKJNI.glp_mpscp_tol_mps_get(swigCPtr, this);
68 }
69
70 public void setFoo_bar(SWIGTYPE_p_double value) {
71 GLPKJNI.glp_mpscp_foo_bar_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
72 }
73
74 public SWIGTYPE_p_double getFoo_bar() {
75 long cPtr = GLPKJNI.glp_mpscp_foo_bar_get(swigCPtr, this);
76 return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
77 }
78
79 public glp_mpscp() {
80 this(GLPKJNI.new_glp_mpscp(), true);
81 }
82
83 }