1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
10
public class OBBond extends OBBase {
11
private long swigCPtr;
13
protected OBBond(long cPtr, boolean cMemoryOwn) {
14
super(openbabelJNI.SWIGOBBondUpcast(cPtr), cMemoryOwn);
18
protected static long getCPtr(OBBond obj) {
19
return (obj == null) ? 0 : obj.swigCPtr;
22
protected void finalize() {
26
public synchronized void delete() {
27
if(swigCPtr != 0 && swigCMemOwn) {
29
openbabelJNI.delete_OBBond(swigCPtr);
35
public void setVisit(boolean value) {
36
openbabelJNI.OBBond_Visit_set(swigCPtr, this, value);
39
public boolean getVisit() {
40
return openbabelJNI.OBBond_Visit_get(swigCPtr, this);
44
this(openbabelJNI.new_OBBond(), true);
47
public void SetIdx(int idx) {
48
openbabelJNI.OBBond_SetIdx(swigCPtr, this, idx);
51
public void SetBO(int order) {
52
openbabelJNI.OBBond_SetBO(swigCPtr, this, order);
55
public void SetBondOrder(int order) {
56
openbabelJNI.OBBond_SetBondOrder(swigCPtr, this, order);
59
public void SetBegin(OBAtom begin) {
60
openbabelJNI.OBBond_SetBegin(swigCPtr, this, OBAtom.getCPtr(begin), begin);
63
public void SetEnd(OBAtom end) {
64
openbabelJNI.OBBond_SetEnd(swigCPtr, this, OBAtom.getCPtr(end), end);
67
public void SetParent(OBMol ptr) {
68
openbabelJNI.OBBond_SetParent(swigCPtr, this, OBMol.getCPtr(ptr), ptr);
71
public void SetLength(OBAtom fixed, double length) {
72
openbabelJNI.OBBond_SetLength__SWIG_0(swigCPtr, this, OBAtom.getCPtr(fixed), fixed, length);
75
public void SetLength(double length) {
76
openbabelJNI.OBBond_SetLength__SWIG_1(swigCPtr, this, length);
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);
83
public void SetKSingle() {
84
openbabelJNI.OBBond_SetKSingle(swigCPtr, this);
87
public void SetKDouble() {
88
openbabelJNI.OBBond_SetKDouble(swigCPtr, this);
91
public void SetKTriple() {
92
openbabelJNI.OBBond_SetKTriple(swigCPtr, this);
95
public void SetAromatic() {
96
openbabelJNI.OBBond_SetAromatic(swigCPtr, this);
99
public void SetHash() {
100
openbabelJNI.OBBond_SetHash(swigCPtr, this);
103
public void SetWedge() {
104
openbabelJNI.OBBond_SetWedge(swigCPtr, this);
107
public void SetUp() {
108
openbabelJNI.OBBond_SetUp(swigCPtr, this);
111
public void SetDown() {
112
openbabelJNI.OBBond_SetDown(swigCPtr, this);
115
public void SetInRing() {
116
openbabelJNI.OBBond_SetInRing(swigCPtr, this);
119
public void SetClosure() {
120
openbabelJNI.OBBond_SetClosure(swigCPtr, this);
123
public void UnsetHash() {
124
openbabelJNI.OBBond_UnsetHash(swigCPtr, this);
127
public void UnsetWedge() {
128
openbabelJNI.OBBond_UnsetWedge(swigCPtr, this);
131
public void UnsetUp() {
132
openbabelJNI.OBBond_UnsetUp(swigCPtr, this);
135
public void UnsetDown() {
136
openbabelJNI.OBBond_UnsetDown(swigCPtr, this);
139
public void UnsetAromatic() {
140
openbabelJNI.OBBond_UnsetAromatic(swigCPtr, this);
143
public void UnsetKekule() {
144
openbabelJNI.OBBond_UnsetKekule(swigCPtr, this);
147
public long GetIdx() {
148
return openbabelJNI.OBBond_GetIdx(swigCPtr, this);
151
public long GetBO() {
152
return openbabelJNI.OBBond_GetBO(swigCPtr, this);
155
public long GetBondOrder() {
156
return openbabelJNI.OBBond_GetBondOrder(swigCPtr, this);
159
public long GetFlags() {
160
return openbabelJNI.OBBond_GetFlags(swigCPtr, this);
163
public long GetBeginAtomIdx() {
164
return openbabelJNI.OBBond_GetBeginAtomIdx(swigCPtr, this);
167
public long GetEndAtomIdx() {
168
return openbabelJNI.OBBond_GetEndAtomIdx(swigCPtr, this);
171
public OBAtom GetBeginAtom() {
172
long cPtr = openbabelJNI.OBBond_GetBeginAtom__SWIG_0(swigCPtr, this);
173
return (cPtr == 0) ? null : new OBAtom(cPtr, false);
176
public OBAtom GetEndAtom() {
177
long cPtr = openbabelJNI.OBBond_GetEndAtom__SWIG_0(swigCPtr, this);
178
return (cPtr == 0) ? null : new OBAtom(cPtr, false);
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);
186
public OBMol GetParent() {
187
long cPtr = openbabelJNI.OBBond_GetParent(swigCPtr, this);
188
return (cPtr == 0) ? null : new OBMol(cPtr, false);
191
public double GetEquibLength() {
192
return openbabelJNI.OBBond_GetEquibLength(swigCPtr, this);
195
public double GetLength() {
196
return openbabelJNI.OBBond_GetLength(swigCPtr, this);
199
public long GetNbrAtomIdx(OBAtom ptr) {
200
return openbabelJNI.OBBond_GetNbrAtomIdx(swigCPtr, this, OBAtom.getCPtr(ptr), ptr);
203
public boolean IsAromatic() {
204
return openbabelJNI.OBBond_IsAromatic(swigCPtr, this);
207
public boolean IsInRing() {
208
return openbabelJNI.OBBond_IsInRing(swigCPtr, this);
211
public boolean IsRotor() {
212
return openbabelJNI.OBBond_IsRotor(swigCPtr, this);
215
public boolean IsAmide() {
216
return openbabelJNI.OBBond_IsAmide(swigCPtr, this);
219
public boolean IsPrimaryAmide() {
220
return openbabelJNI.OBBond_IsPrimaryAmide(swigCPtr, this);
223
public boolean IsSecondaryAmide() {
224
return openbabelJNI.OBBond_IsSecondaryAmide(swigCPtr, this);
227
public boolean IsEster() {
228
return openbabelJNI.OBBond_IsEster(swigCPtr, this);
231
public boolean IsCarbonyl() {
232
return openbabelJNI.OBBond_IsCarbonyl(swigCPtr, this);
235
public boolean IsSingle() {
236
return openbabelJNI.OBBond_IsSingle(swigCPtr, this);
239
public boolean IsDouble() {
240
return openbabelJNI.OBBond_IsDouble(swigCPtr, this);
243
public boolean IsTriple() {
244
return openbabelJNI.OBBond_IsTriple(swigCPtr, this);
247
public boolean IsKSingle() {
248
return openbabelJNI.OBBond_IsKSingle(swigCPtr, this);
251
public boolean IsKDouble() {
252
return openbabelJNI.OBBond_IsKDouble(swigCPtr, this);
255
public boolean IsKTriple() {
256
return openbabelJNI.OBBond_IsKTriple(swigCPtr, this);
259
public boolean IsClosure() {
260
return openbabelJNI.OBBond_IsClosure(swigCPtr, this);
263
public boolean IsUp() {
264
return openbabelJNI.OBBond_IsUp(swigCPtr, this);
267
public boolean IsDown() {
268
return openbabelJNI.OBBond_IsDown(swigCPtr, this);
271
public boolean IsWedge() {
272
return openbabelJNI.OBBond_IsWedge(swigCPtr, this);
275
public boolean IsHash() {
276
return openbabelJNI.OBBond_IsHash(swigCPtr, this);
279
public boolean IsDoubleBondGeometry() {
280
return openbabelJNI.OBBond_IsDoubleBondGeometry(swigCPtr, this);