~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to scripts/java/OBBond.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-07-22 23:54:58 UTC
  • mfrom: (3.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080722235458-3o606czluviz4akx
Tags: 2.2.0-2
* Upload to unstable.
* debian/control: Updated descriptions.
* debian/patches/gauss_cube_format.patch: New patch, makes the 
  gaussian cube format available again.
* debian/rules (DEB_DH_MAKESHLIBS_ARGS_libopenbabel3): Removed.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Likewise.
* debian/libopenbabel3.install: Adjust formats directory to single 
  version hierarchy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.36
 
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
 
 
10
public class OBBond extends OBBase {
 
11
  private long swigCPtr;
 
12
 
 
13
  protected OBBond(long cPtr, boolean cMemoryOwn) {
 
14
    super(openbabelJNI.SWIGOBBondUpcast(cPtr), cMemoryOwn);
 
15
    swigCPtr = cPtr;
 
16
  }
 
17
 
 
18
  protected static long getCPtr(OBBond obj) {
 
19
    return (obj == null) ? 0 : obj.swigCPtr;
 
20
  }
 
21
 
 
22
  protected void finalize() {
 
23
    delete();
 
24
  }
 
25
 
 
26
  public synchronized void delete() {
 
27
    if(swigCPtr != 0 && swigCMemOwn) {
 
28
      swigCMemOwn = false;
 
29
      openbabelJNI.delete_OBBond(swigCPtr);
 
30
    }
 
31
    swigCPtr = 0;
 
32
    super.delete();
 
33
  }
 
34
 
 
35
  public void setVisit(boolean value) {
 
36
    openbabelJNI.OBBond_Visit_set(swigCPtr, this, value);
 
37
  }
 
38
 
 
39
  public boolean getVisit() {
 
40
    return openbabelJNI.OBBond_Visit_get(swigCPtr, this);
 
41
  }
 
42
 
 
43
  public OBBond() {
 
44
    this(openbabelJNI.new_OBBond(), true);
 
45
  }
 
46
 
 
47
  public void SetIdx(int idx) {
 
48
    openbabelJNI.OBBond_SetIdx(swigCPtr, this, idx);
 
49
  }
 
50
 
 
51
  public void SetBO(int order) {
 
52
    openbabelJNI.OBBond_SetBO(swigCPtr, this, order);
 
53
  }
 
54
 
 
55
  public void SetBondOrder(int order) {
 
56
    openbabelJNI.OBBond_SetBondOrder(swigCPtr, this, order);
 
57
  }
 
58
 
 
59
  public void SetBegin(OBAtom begin) {
 
60
    openbabelJNI.OBBond_SetBegin(swigCPtr, this, OBAtom.getCPtr(begin), begin);
 
61
  }
 
62
 
 
63
  public void SetEnd(OBAtom end) {
 
64
    openbabelJNI.OBBond_SetEnd(swigCPtr, this, OBAtom.getCPtr(end), end);
 
65
  }
 
66
 
 
67
  public void SetParent(OBMol ptr) {
 
68
    openbabelJNI.OBBond_SetParent(swigCPtr, this, OBMol.getCPtr(ptr), ptr);
 
69
  }
 
70
 
 
71
  public void SetLength(OBAtom fixed, double length) {
 
72
    openbabelJNI.OBBond_SetLength__SWIG_0(swigCPtr, this, OBAtom.getCPtr(fixed), fixed, length);
 
73
  }
 
74
 
 
75
  public void SetLength(double length) {
 
76
    openbabelJNI.OBBond_SetLength__SWIG_1(swigCPtr, this, length);
 
77
  }
 
78
 
 
79
  public void Set(int index, OBAtom begin, OBAtom end, int order, int flags) {
 
80
    openbabelJNI.OBBond_Set(swigCPtr, this, index, OBAtom.getCPtr(begin), begin, OBAtom.getCPtr(end), end, order, flags);
 
81
  }
 
82
 
 
83
  public void SetKSingle() {
 
84
    openbabelJNI.OBBond_SetKSingle(swigCPtr, this);
 
85
  }
 
86
 
 
87
  public void SetKDouble() {
 
88
    openbabelJNI.OBBond_SetKDouble(swigCPtr, this);
 
89
  }
 
90
 
 
91
  public void SetKTriple() {
 
92
    openbabelJNI.OBBond_SetKTriple(swigCPtr, this);
 
93
  }
 
94
 
 
95
  public void SetAromatic() {
 
96
    openbabelJNI.OBBond_SetAromatic(swigCPtr, this);
 
97
  }
 
98
 
 
99
  public void SetHash() {
 
100
    openbabelJNI.OBBond_SetHash(swigCPtr, this);
 
101
  }
 
102
 
 
103
  public void SetWedge() {
 
104
    openbabelJNI.OBBond_SetWedge(swigCPtr, this);
 
105
  }
 
106
 
 
107
  public void SetUp() {
 
108
    openbabelJNI.OBBond_SetUp(swigCPtr, this);
 
109
  }
 
110
 
 
111
  public void SetDown() {
 
112
    openbabelJNI.OBBond_SetDown(swigCPtr, this);
 
113
  }
 
114
 
 
115
  public void SetInRing() {
 
116
    openbabelJNI.OBBond_SetInRing(swigCPtr, this);
 
117
  }
 
118
 
 
119
  public void SetClosure() {
 
120
    openbabelJNI.OBBond_SetClosure(swigCPtr, this);
 
121
  }
 
122
 
 
123
  public void UnsetHash() {
 
124
    openbabelJNI.OBBond_UnsetHash(swigCPtr, this);
 
125
  }
 
126
 
 
127
  public void UnsetWedge() {
 
128
    openbabelJNI.OBBond_UnsetWedge(swigCPtr, this);
 
129
  }
 
130
 
 
131
  public void UnsetUp() {
 
132
    openbabelJNI.OBBond_UnsetUp(swigCPtr, this);
 
133
  }
 
134
 
 
135
  public void UnsetDown() {
 
136
    openbabelJNI.OBBond_UnsetDown(swigCPtr, this);
 
137
  }
 
138
 
 
139
  public void UnsetAromatic() {
 
140
    openbabelJNI.OBBond_UnsetAromatic(swigCPtr, this);
 
141
  }
 
142
 
 
143
  public void UnsetKekule() {
 
144
    openbabelJNI.OBBond_UnsetKekule(swigCPtr, this);
 
145
  }
 
146
 
 
147
  public long GetIdx() {
 
148
    return openbabelJNI.OBBond_GetIdx(swigCPtr, this);
 
149
  }
 
150
 
 
151
  public long GetBO() {
 
152
    return openbabelJNI.OBBond_GetBO(swigCPtr, this);
 
153
  }
 
154
 
 
155
  public long GetBondOrder() {
 
156
    return openbabelJNI.OBBond_GetBondOrder(swigCPtr, this);
 
157
  }
 
158
 
 
159
  public long GetFlags() {
 
160
    return openbabelJNI.OBBond_GetFlags(swigCPtr, this);
 
161
  }
 
162
 
 
163
  public long GetBeginAtomIdx() {
 
164
    return openbabelJNI.OBBond_GetBeginAtomIdx(swigCPtr, this);
 
165
  }
 
166
 
 
167
  public long GetEndAtomIdx() {
 
168
    return openbabelJNI.OBBond_GetEndAtomIdx(swigCPtr, this);
 
169
  }
 
170
 
 
171
  public OBAtom GetBeginAtom() {
 
172
    long cPtr = openbabelJNI.OBBond_GetBeginAtom__SWIG_0(swigCPtr, this);
 
173
    return (cPtr == 0) ? null : new OBAtom(cPtr, false);
 
174
  }
 
175
 
 
176
  public OBAtom GetEndAtom() {
 
177
    long cPtr = openbabelJNI.OBBond_GetEndAtom__SWIG_0(swigCPtr, this);
 
178
    return (cPtr == 0) ? null : new OBAtom(cPtr, false);
 
179
  }
 
180
 
 
181
  public OBAtom GetNbrAtom(OBAtom ptr) {
 
182
    long cPtr = openbabelJNI.OBBond_GetNbrAtom(swigCPtr, this, OBAtom.getCPtr(ptr), ptr);
 
183
    return (cPtr == 0) ? null : new OBAtom(cPtr, false);
 
184
  }
 
185
 
 
186
  public OBMol GetParent() {
 
187
    long cPtr = openbabelJNI.OBBond_GetParent(swigCPtr, this);
 
188
    return (cPtr == 0) ? null : new OBMol(cPtr, false);
 
189
  }
 
190
 
 
191
  public double GetEquibLength() {
 
192
    return openbabelJNI.OBBond_GetEquibLength(swigCPtr, this);
 
193
  }
 
194
 
 
195
  public double GetLength() {
 
196
    return openbabelJNI.OBBond_GetLength(swigCPtr, this);
 
197
  }
 
198
 
 
199
  public long GetNbrAtomIdx(OBAtom ptr) {
 
200
    return openbabelJNI.OBBond_GetNbrAtomIdx(swigCPtr, this, OBAtom.getCPtr(ptr), ptr);
 
201
  }
 
202
 
 
203
  public boolean IsAromatic() {
 
204
    return openbabelJNI.OBBond_IsAromatic(swigCPtr, this);
 
205
  }
 
206
 
 
207
  public boolean IsInRing() {
 
208
    return openbabelJNI.OBBond_IsInRing(swigCPtr, this);
 
209
  }
 
210
 
 
211
  public boolean IsRotor() {
 
212
    return openbabelJNI.OBBond_IsRotor(swigCPtr, this);
 
213
  }
 
214
 
 
215
  public boolean IsAmide() {
 
216
    return openbabelJNI.OBBond_IsAmide(swigCPtr, this);
 
217
  }
 
218
 
 
219
  public boolean IsPrimaryAmide() {
 
220
    return openbabelJNI.OBBond_IsPrimaryAmide(swigCPtr, this);
 
221
  }
 
222
 
 
223
  public boolean IsSecondaryAmide() {
 
224
    return openbabelJNI.OBBond_IsSecondaryAmide(swigCPtr, this);
 
225
  }
 
226
 
 
227
  public boolean IsEster() {
 
228
    return openbabelJNI.OBBond_IsEster(swigCPtr, this);
 
229
  }
 
230
 
 
231
  public boolean IsCarbonyl() {
 
232
    return openbabelJNI.OBBond_IsCarbonyl(swigCPtr, this);
 
233
  }
 
234
 
 
235
  public boolean IsSingle() {
 
236
    return openbabelJNI.OBBond_IsSingle(swigCPtr, this);
 
237
  }
 
238
 
 
239
  public boolean IsDouble() {
 
240
    return openbabelJNI.OBBond_IsDouble(swigCPtr, this);
 
241
  }
 
242
 
 
243
  public boolean IsTriple() {
 
244
    return openbabelJNI.OBBond_IsTriple(swigCPtr, this);
 
245
  }
 
246
 
 
247
  public boolean IsKSingle() {
 
248
    return openbabelJNI.OBBond_IsKSingle(swigCPtr, this);
 
249
  }
 
250
 
 
251
  public boolean IsKDouble() {
 
252
    return openbabelJNI.OBBond_IsKDouble(swigCPtr, this);
 
253
  }
 
254
 
 
255
  public boolean IsKTriple() {
 
256
    return openbabelJNI.OBBond_IsKTriple(swigCPtr, this);
 
257
  }
 
258
 
 
259
  public boolean IsClosure() {
 
260
    return openbabelJNI.OBBond_IsClosure(swigCPtr, this);
 
261
  }
 
262
 
 
263
  public boolean IsUp() {
 
264
    return openbabelJNI.OBBond_IsUp(swigCPtr, this);
 
265
  }
 
266
 
 
267
  public boolean IsDown() {
 
268
    return openbabelJNI.OBBond_IsDown(swigCPtr, this);
 
269
  }
 
270
 
 
271
  public boolean IsWedge() {
 
272
    return openbabelJNI.OBBond_IsWedge(swigCPtr, this);
 
273
  }
 
274
 
 
275
  public boolean IsHash() {
 
276
    return openbabelJNI.OBBond_IsHash(swigCPtr, this);
 
277
  }
 
278
 
 
279
  public boolean IsDoubleBondGeometry() {
 
280
    return openbabelJNI.OBBond_IsDoubleBondGeometry(swigCPtr, this);
 
281
  }
 
282
 
 
283
}