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_java_arc_data {
20    private transient long swigCPtr;
21    protected transient boolean swigCMemOwn;
22  
23    protected glp_java_arc_data(long cPtr, boolean cMemoryOwn) {
24      swigCMemOwn = cMemoryOwn;
25      swigCPtr = cPtr;
26    }
27  
28    protected static long getCPtr(glp_java_arc_data 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_java_arc_data(swigCPtr);
41        }
42        swigCPtr = 0;
43      }
44    }
45  
46    public void setCap(double value) {
47      GLPKJNI.glp_java_arc_data_cap_set(swigCPtr, this, value);
48    }
49  
50    public double getCap() {
51      return GLPKJNI.glp_java_arc_data_cap_get(swigCPtr, this);
52    }
53  
54    public void setCost(double value) {
55      GLPKJNI.glp_java_arc_data_cost_set(swigCPtr, this, value);
56    }
57  
58    public double getCost() {
59      return GLPKJNI.glp_java_arc_data_cost_get(swigCPtr, this);
60    }
61  
62    public void setLow(double value) {
63      GLPKJNI.glp_java_arc_data_low_set(swigCPtr, this, value);
64    }
65  
66    public double getLow() {
67      return GLPKJNI.glp_java_arc_data_low_get(swigCPtr, this);
68    }
69  
70    public void setRc(double value) {
71      GLPKJNI.glp_java_arc_data_rc_set(swigCPtr, this, value);
72    }
73  
74    public double getRc() {
75      return GLPKJNI.glp_java_arc_data_rc_get(swigCPtr, this);
76    }
77  
78    public void setX(double value) {
79      GLPKJNI.glp_java_arc_data_x_set(swigCPtr, this, value);
80    }
81  
82    public double getX() {
83      return GLPKJNI.glp_java_arc_data_x_get(swigCPtr, this);
84    }
85  
86    public glp_java_arc_data() {
87      this(GLPKJNI.new_glp_java_arc_data(), true);
88    }
89  
90  }