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_vertex {
20 private transient long swigCPtr;
21 protected transient boolean swigCMemOwn;
22
23 protected glp_vertex(long cPtr, boolean cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = cPtr;
26 }
27
28 protected static long getCPtr(glp_vertex 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_vertex(swigCPtr);
41 }
42 swigCPtr = 0;
43 }
44 }
45
46 public void setI(int value) {
47 GLPKJNI.glp_vertex_i_set(swigCPtr, value);
48 }
49
50 public int getI() {
51 return GLPKJNI.glp_vertex_i_get(swigCPtr);
52 }
53
54 public void setName(String value) {
55 GLPKJNI.glp_vertex_name_set(swigCPtr, value);
56 }
57
58 public String getName() {
59 return GLPKJNI.glp_vertex_name_get(swigCPtr);
60 }
61
62 public void setEntry(SWIGTYPE_p_void value) {
63 GLPKJNI.glp_vertex_entry_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
64 }
65
66 public SWIGTYPE_p_void getEntry() {
67 long cPtr = GLPKJNI.glp_vertex_entry_get(swigCPtr);
68 return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
69 }
70
71 public void setData(SWIGTYPE_p_void value) {
72 GLPKJNI.glp_vertex_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
73 }
74
75 public SWIGTYPE_p_void getData() {
76 long cPtr = GLPKJNI.glp_vertex_data_get(swigCPtr);
77 return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
78 }
79
80 public void setTemp(SWIGTYPE_p_void value) {
81 GLPKJNI.glp_vertex_temp_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
82 }
83
84 public SWIGTYPE_p_void getTemp() {
85 long cPtr = GLPKJNI.glp_vertex_temp_get(swigCPtr);
86 return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
87 }
88
89 public void setIn(glp_arc value) {
90 GLPKJNI.glp_vertex_in_set(swigCPtr, glp_arc.getCPtr(value), value);
91 }
92
93 public glp_arc getIn() {
94 long cPtr = GLPKJNI.glp_vertex_in_get(swigCPtr);
95 return (cPtr == 0) ? null : new glp_arc(cPtr, false);
96 }
97
98 public void setOut(glp_arc value) {
99 GLPKJNI.glp_vertex_out_set(swigCPtr, glp_arc.getCPtr(value), value);
100 }
101
102 public glp_arc getOut() {
103 long cPtr = GLPKJNI.glp_vertex_out_get(swigCPtr);
104 return (cPtr == 0) ? null : new glp_arc(cPtr, false);
105 }
106
107 public glp_vertex() {
108 this(GLPKJNI.new_glp_vertex(), true);
109 }
110
111 }