View Javadoc
1   /* ----------------------------------------------------------------------------
2    * This file was automatically generated by SWIG (http://www.swig.org).
3    * Version 3.0.8
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 org.gnu.glpk;
10  
11  
12  /**
13   * Wrapper class for pointer generated by SWIG.
14   * <p>Please, refer to doc/glpk-java.pdf of the GLPK for Java distribution
15   * and to doc/glpk.pdf of the GLPK source distribution
16   * for details. You can download the GLPK source distribution from
17   * <a href="ftp://ftp.gnu.org/gnu/glpk">ftp://ftp.gnu.org/gnu/glpk</a>.
18   */
19  public class glp_smcp {
20    private transient long swigCPtr;
21    protected transient boolean swigCMemOwn;
22  
23    protected glp_smcp(long cPtr, boolean cMemoryOwn) {
24      swigCMemOwn = cMemoryOwn;
25      swigCPtr = cPtr;
26    }
27  
28    protected static long getCPtr(glp_smcp 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_smcp(swigCPtr);
41        }
42        swigCPtr = 0;
43      }
44    }
45  
46    public void setMsg_lev(int value) {
47      GLPKJNI.glp_smcp_msg_lev_set(swigCPtr, this, value);
48    }
49  
50    public int getMsg_lev() {
51      return GLPKJNI.glp_smcp_msg_lev_get(swigCPtr, this);
52    }
53  
54    public void setMeth(int value) {
55      GLPKJNI.glp_smcp_meth_set(swigCPtr, this, value);
56    }
57  
58    public int getMeth() {
59      return GLPKJNI.glp_smcp_meth_get(swigCPtr, this);
60    }
61  
62    public void setPricing(int value) {
63      GLPKJNI.glp_smcp_pricing_set(swigCPtr, this, value);
64    }
65  
66    public int getPricing() {
67      return GLPKJNI.glp_smcp_pricing_get(swigCPtr, this);
68    }
69  
70    public void setR_test(int value) {
71      GLPKJNI.glp_smcp_r_test_set(swigCPtr, this, value);
72    }
73  
74    public int getR_test() {
75      return GLPKJNI.glp_smcp_r_test_get(swigCPtr, this);
76    }
77  
78    public void setTol_bnd(double value) {
79      GLPKJNI.glp_smcp_tol_bnd_set(swigCPtr, this, value);
80    }
81  
82    public double getTol_bnd() {
83      return GLPKJNI.glp_smcp_tol_bnd_get(swigCPtr, this);
84    }
85  
86    public void setTol_dj(double value) {
87      GLPKJNI.glp_smcp_tol_dj_set(swigCPtr, this, value);
88    }
89  
90    public double getTol_dj() {
91      return GLPKJNI.glp_smcp_tol_dj_get(swigCPtr, this);
92    }
93  
94    public void setTol_piv(double value) {
95      GLPKJNI.glp_smcp_tol_piv_set(swigCPtr, this, value);
96    }
97  
98    public double getTol_piv() {
99      return GLPKJNI.glp_smcp_tol_piv_get(swigCPtr, this);
100   }
101 
102   public void setObj_ll(double value) {
103     GLPKJNI.glp_smcp_obj_ll_set(swigCPtr, this, value);
104   }
105 
106   public double getObj_ll() {
107     return GLPKJNI.glp_smcp_obj_ll_get(swigCPtr, this);
108   }
109 
110   public void setObj_ul(double value) {
111     GLPKJNI.glp_smcp_obj_ul_set(swigCPtr, this, value);
112   }
113 
114   public double getObj_ul() {
115     return GLPKJNI.glp_smcp_obj_ul_get(swigCPtr, this);
116   }
117 
118   public void setIt_lim(int value) {
119     GLPKJNI.glp_smcp_it_lim_set(swigCPtr, this, value);
120   }
121 
122   public int getIt_lim() {
123     return GLPKJNI.glp_smcp_it_lim_get(swigCPtr, this);
124   }
125 
126   public void setTm_lim(int value) {
127     GLPKJNI.glp_smcp_tm_lim_set(swigCPtr, this, value);
128   }
129 
130   public int getTm_lim() {
131     return GLPKJNI.glp_smcp_tm_lim_get(swigCPtr, this);
132   }
133 
134   public void setOut_frq(int value) {
135     GLPKJNI.glp_smcp_out_frq_set(swigCPtr, this, value);
136   }
137 
138   public int getOut_frq() {
139     return GLPKJNI.glp_smcp_out_frq_get(swigCPtr, this);
140   }
141 
142   public void setOut_dly(int value) {
143     GLPKJNI.glp_smcp_out_dly_set(swigCPtr, this, value);
144   }
145 
146   public int getOut_dly() {
147     return GLPKJNI.glp_smcp_out_dly_get(swigCPtr, this);
148   }
149 
150   public void setPresolve(int value) {
151     GLPKJNI.glp_smcp_presolve_set(swigCPtr, this, value);
152   }
153 
154   public int getPresolve() {
155     return GLPKJNI.glp_smcp_presolve_get(swigCPtr, this);
156   }
157 
158   public void setExcl(int value) {
159     GLPKJNI.glp_smcp_excl_set(swigCPtr, this, value);
160   }
161 
162   public int getExcl() {
163     return GLPKJNI.glp_smcp_excl_get(swigCPtr, this);
164   }
165 
166   public void setShift(int value) {
167     GLPKJNI.glp_smcp_shift_set(swigCPtr, this, value);
168   }
169 
170   public int getShift() {
171     return GLPKJNI.glp_smcp_shift_get(swigCPtr, this);
172   }
173 
174   public void setAorn(int value) {
175     GLPKJNI.glp_smcp_aorn_set(swigCPtr, this, value);
176   }
177 
178   public int getAorn() {
179     return GLPKJNI.glp_smcp_aorn_get(swigCPtr, this);
180   }
181 
182   public void setFoo_bar(SWIGTYPE_p_double value) {
183     GLPKJNI.glp_smcp_foo_bar_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
184   }
185 
186   public SWIGTYPE_p_double getFoo_bar() {
187     long cPtr = GLPKJNI.glp_smcp_foo_bar_get(swigCPtr, this);
188     return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
189   }
190 
191   public glp_smcp() {
192     this(GLPKJNI.new_glp_smcp(), true);
193   }
194 
195 }