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_bfcp {
20    private transient long swigCPtr;
21    protected transient boolean swigCMemOwn;
22  
23    protected glp_bfcp(long cPtr, boolean cMemoryOwn) {
24      swigCMemOwn = cMemoryOwn;
25      swigCPtr = cPtr;
26    }
27  
28    protected static long getCPtr(glp_bfcp 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_bfcp(swigCPtr);
41        }
42        swigCPtr = 0;
43      }
44    }
45  
46    public void setMsg_lev(int value) {
47      GLPKJNI.glp_bfcp_msg_lev_set(swigCPtr, this, value);
48    }
49  
50    public int getMsg_lev() {
51      return GLPKJNI.glp_bfcp_msg_lev_get(swigCPtr, this);
52    }
53  
54    public void setType(int value) {
55      GLPKJNI.glp_bfcp_type_set(swigCPtr, this, value);
56    }
57  
58    public int getType() {
59      return GLPKJNI.glp_bfcp_type_get(swigCPtr, this);
60    }
61  
62    public void setLu_size(int value) {
63      GLPKJNI.glp_bfcp_lu_size_set(swigCPtr, this, value);
64    }
65  
66    public int getLu_size() {
67      return GLPKJNI.glp_bfcp_lu_size_get(swigCPtr, this);
68    }
69  
70    public void setPiv_tol(double value) {
71      GLPKJNI.glp_bfcp_piv_tol_set(swigCPtr, this, value);
72    }
73  
74    public double getPiv_tol() {
75      return GLPKJNI.glp_bfcp_piv_tol_get(swigCPtr, this);
76    }
77  
78    public void setPiv_lim(int value) {
79      GLPKJNI.glp_bfcp_piv_lim_set(swigCPtr, this, value);
80    }
81  
82    public int getPiv_lim() {
83      return GLPKJNI.glp_bfcp_piv_lim_get(swigCPtr, this);
84    }
85  
86    public void setSuhl(int value) {
87      GLPKJNI.glp_bfcp_suhl_set(swigCPtr, this, value);
88    }
89  
90    public int getSuhl() {
91      return GLPKJNI.glp_bfcp_suhl_get(swigCPtr, this);
92    }
93  
94    public void setEps_tol(double value) {
95      GLPKJNI.glp_bfcp_eps_tol_set(swigCPtr, this, value);
96    }
97  
98    public double getEps_tol() {
99      return GLPKJNI.glp_bfcp_eps_tol_get(swigCPtr, this);
100   }
101 
102   public void setMax_gro(double value) {
103     GLPKJNI.glp_bfcp_max_gro_set(swigCPtr, this, value);
104   }
105 
106   public double getMax_gro() {
107     return GLPKJNI.glp_bfcp_max_gro_get(swigCPtr, this);
108   }
109 
110   public void setNfs_max(int value) {
111     GLPKJNI.glp_bfcp_nfs_max_set(swigCPtr, this, value);
112   }
113 
114   public int getNfs_max() {
115     return GLPKJNI.glp_bfcp_nfs_max_get(swigCPtr, this);
116   }
117 
118   public void setUpd_tol(double value) {
119     GLPKJNI.glp_bfcp_upd_tol_set(swigCPtr, this, value);
120   }
121 
122   public double getUpd_tol() {
123     return GLPKJNI.glp_bfcp_upd_tol_get(swigCPtr, this);
124   }
125 
126   public void setNrs_max(int value) {
127     GLPKJNI.glp_bfcp_nrs_max_set(swigCPtr, this, value);
128   }
129 
130   public int getNrs_max() {
131     return GLPKJNI.glp_bfcp_nrs_max_get(swigCPtr, this);
132   }
133 
134   public void setRs_size(int value) {
135     GLPKJNI.glp_bfcp_rs_size_set(swigCPtr, this, value);
136   }
137 
138   public int getRs_size() {
139     return GLPKJNI.glp_bfcp_rs_size_get(swigCPtr, this);
140   }
141 
142   public void setFoo_bar(SWIGTYPE_p_double value) {
143     GLPKJNI.glp_bfcp_foo_bar_set(swigCPtr, this, SWIGTYPE_p_double.getCPtr(value));
144   }
145 
146   public SWIGTYPE_p_double getFoo_bar() {
147     long cPtr = GLPKJNI.glp_bfcp_foo_bar_get(swigCPtr, this);
148     return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
149   }
150 
151   public glp_bfcp() {
152     this(GLPKJNI.new_glp_bfcp(), true);
153   }
154 
155 }