| 1 |
/** |
| 2 |
* JNA-InChI - Library for calling InChI from Java |
| 3 |
* Copyright © 2018 Daniel Lowe |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public License |
| 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
package io.github.dan2097.jnainchi.inchi; |
| 19 |
import java.nio.ByteBuffer; |
| 20 |
|
| 21 |
import com.sun.jna.Library; |
| 22 |
import com.sun.jna.Native; |
| 23 |
import com.sun.jna.NativeLibrary; |
| 24 |
import com.sun.jna.Pointer; |
| 25 |
/** |
| 26 |
* JNA Wrapper for library <b>inchi</b><br> |
| 27 |
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br> |
| 28 |
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br> |
| 29 |
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> , <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>. |
| 30 |
*/ |
| 31 |
public class InchiLibrary implements Library { |
| 32 |
public static final String JNA_LIBRARY_NAME = "jnainchi"; |
| 33 |
public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(InchiLibrary.JNA_LIBRARY_NAME); |
| 34 |
static { |
| 35 |
Native.register(InchiLibrary.class, InchiLibrary.JNA_NATIVE_LIB); |
| 36 |
} |
| 37 |
/** enum values */ |
| 38 |
public static interface tagINCHIRadical { |
| 39 |
public static final int INCHI_RADICAL_NONE = 0; |
| 40 |
public static final int INCHI_RADICAL_SINGLET = 1; |
| 41 |
public static final int INCHI_RADICAL_DOUBLET = 2; |
| 42 |
public static final int INCHI_RADICAL_TRIPLET = 3; |
| 43 |
}; |
| 44 |
/** enum values */ |
| 45 |
public static interface tagINCHIBondType { |
| 46 |
public static final int INCHI_BOND_TYPE_NONE = 0; |
| 47 |
public static final int INCHI_BOND_TYPE_SINGLE = 1; |
| 48 |
public static final int INCHI_BOND_TYPE_DOUBLE = 2; |
| 49 |
public static final int INCHI_BOND_TYPE_TRIPLE = 3; |
| 50 |
/** |
| 51 |
* avoid by all means<br> |
| 52 |
*/ |
| 53 |
public static final int INCHI_BOND_TYPE_ALTERN = 4; |
| 54 |
}; |
| 55 |
/** enum values */ |
| 56 |
public static interface tagINCHIBondStereo2D { |
| 57 |
public static final int INCHI_BOND_STEREO_NONE = 0; |
| 58 |
public static final int INCHI_BOND_STEREO_SINGLE_1UP = 1; |
| 59 |
public static final int INCHI_BOND_STEREO_SINGLE_1EITHER = 4; |
| 60 |
public static final int INCHI_BOND_STEREO_SINGLE_1DOWN = 6; |
| 61 |
public static final int INCHI_BOND_STEREO_SINGLE_2UP = -1; |
| 62 |
public static final int INCHI_BOND_STEREO_SINGLE_2EITHER = -4; |
| 63 |
public static final int INCHI_BOND_STEREO_SINGLE_2DOWN = -6; |
| 64 |
/** |
| 65 |
* unknown stereobond geometry<br> |
| 66 |
*/ |
| 67 |
public static final int INCHI_BOND_STEREO_DOUBLE_EITHER = 3; |
| 68 |
}; |
| 69 |
/** enum values */ |
| 70 |
public static interface tagINCHIStereoType0D { |
| 71 |
public static final int INCHI_StereoType_None = 0; |
| 72 |
public static final int INCHI_StereoType_DoubleBond = 1; |
| 73 |
public static final int INCHI_StereoType_Tetrahedral = 2; |
| 74 |
public static final int INCHI_StereoType_Allene = 3; |
| 75 |
}; |
| 76 |
/** enum values */ |
| 77 |
public static interface tagINCHIStereoParity0D { |
| 78 |
public static final int INCHI_PARITY_NONE = 0; |
| 79 |
/** |
| 80 |
* 'o'<br> |
| 81 |
*/ |
| 82 |
public static final int INCHI_PARITY_ODD = 1; |
| 83 |
/** |
| 84 |
* 'e'<br> |
| 85 |
*/ |
| 86 |
public static final int INCHI_PARITY_EVEN = 2; |
| 87 |
/** |
| 88 |
* 'u'<br> |
| 89 |
*/ |
| 90 |
public static final int INCHI_PARITY_UNKNOWN = 3; |
| 91 |
/** |
| 92 |
* '?' -- should not be used; however, see Note above<br> |
| 93 |
*/ |
| 94 |
public static final int INCHI_PARITY_UNDEFINED = 4; |
| 95 |
}; |
| 96 |
/** enum values */ |
| 97 |
public static interface tagRetValGetINCHI { |
| 98 |
public static final int inchi_Ret_BREAK = -100; |
| 99 |
/** |
| 100 |
* not used in InChI library<br> |
| 101 |
*/ |
| 102 |
public static final int inchi_Ret_SKIP = -2; |
| 103 |
/** |
| 104 |
* no structural data has been provided<br> |
| 105 |
*/ |
| 106 |
public static final int inchi_Ret_EOF = -1; |
| 107 |
/** |
| 108 |
* Success; no errors or warnings<br> |
| 109 |
*/ |
| 110 |
public static final int inchi_Ret_OKAY = 0; |
| 111 |
/** |
| 112 |
* Success; warning(s) issued<br> |
| 113 |
*/ |
| 114 |
public static final int inchi_Ret_WARNING = 1; |
| 115 |
/** |
| 116 |
* Error: no InChI has been created<br> |
| 117 |
*/ |
| 118 |
public static final int inchi_Ret_ERROR = 2; |
| 119 |
/** |
| 120 |
* Severe error: no InChI has been created (typically, memory allocation failure)<br> |
| 121 |
*/ |
| 122 |
public static final int inchi_Ret_FATAL = 3; |
| 123 |
/** |
| 124 |
* Unknown program error<br> |
| 125 |
*/ |
| 126 |
public static final int inchi_Ret_UNKNOWN = 4; |
| 127 |
/** |
| 128 |
* Previuos call to InChI has not returned yet<br> |
| 129 |
*/ |
| 130 |
public static final int inchi_Ret_BUSY = 5; |
| 131 |
}; |
| 132 |
/** enum values */ |
| 133 |
public static interface tagRetValMOL2INCHI { |
| 134 |
/** |
| 135 |
* Success; no errors or warnings<br> |
| 136 |
*/ |
| 137 |
public static final int mol2inchi_Ret_OKAY = 0; |
| 138 |
/** |
| 139 |
* Success; warning(s) issued<br> |
| 140 |
*/ |
| 141 |
public static final int mol2inchi_Ret_WARNING = 1; |
| 142 |
/** |
| 143 |
* generic Error: no InChI has been created<br> |
| 144 |
*/ |
| 145 |
public static final int mol2inchi_Ret_EOF = -1; |
| 146 |
/** |
| 147 |
* generic Error: no InChI has been created<br> |
| 148 |
*/ |
| 149 |
public static final int mol2inchi_Ret_ERROR = 2; |
| 150 |
/** |
| 151 |
* get structure Error: no InChI has been created<br> |
| 152 |
*/ |
| 153 |
public static final int mol2inchi_Ret_ERROR_get = 4; |
| 154 |
/** |
| 155 |
* compute InChI Error: no InChI has been created<br> |
| 156 |
*/ |
| 157 |
public static final int mol2inchi_Ret_ERROR_comp = 5; |
| 158 |
}; |
| 159 |
/** enum values */ |
| 160 |
public static interface tagRetValCheckINCHI { |
| 161 |
public static final int INCHI_VALID_STANDARD = 0; |
| 162 |
public static final int INCHI_VALID_NON_STANDARD = 1; |
| 163 |
public static final int INCHI_VALID_BETA = 2; |
| 164 |
public static final int INCHI_INVALID_PREFIX = 3; |
| 165 |
public static final int INCHI_INVALID_VERSION = 4; |
| 166 |
public static final int INCHI_INVALID_LAYOUT = 5; |
| 167 |
public static final int INCHI_FAIL_I2I = 6; |
| 168 |
}; |
| 169 |
/** enum values */ |
| 170 |
public static interface tagRetValGetINCHIKey { |
| 171 |
public static final int INCHIKEY_VALID_STANDARD = 0; |
| 172 |
public static final int INCHIKEY_VALID_NON_STANDARD = -1; |
| 173 |
public static final int INCHIKEY_INVALID_LENGTH = 1; |
| 174 |
public static final int INCHIKEY_INVALID_LAYOUT = 2; |
| 175 |
public static final int INCHIKEY_INVALID_VERSION = 3; |
| 176 |
}; |
| 177 |
public static final int FIND_RING_SYSTEMS = (int)1; |
| 178 |
public static final int FIND_RINS_SYSTEMS_DISTANCES = (int)0; |
| 179 |
public static final int FIX_DOCANON_RETCODE_RESET_BUG = (int)1; |
| 180 |
public static final int MAXVAL = (int)20; |
| 181 |
public static final int ATOM_EL_LEN = (int)6; |
| 182 |
public static final int NUM_H_ISOTOPES = (int)3; |
| 183 |
public static final int ISOTOPIC_SHIFT_FLAG = (int)10000; |
| 184 |
public static final int ISOTOPIC_SHIFT_MAX = (int)100; |
| 185 |
public static final int NO_ATOM = (int)(-1); |
| 186 |
public static final String INCHI_STRING_PREFIX = (String)"InChI="; |
| 187 |
public static final int LEN_INCHI_STRING_PREFIX = (int)6; |
| 188 |
public static final int STR_ERR_LEN = (int)256; |
| 189 |
public static final int INCHIKEY_OK = (int)0; |
| 190 |
public static final int INCHIKEY_UNKNOWN_ERROR = (int)1; |
| 191 |
public static final int INCHIKEY_EMPTY_INPUT = (int)2; |
| 192 |
public static final int INCHIKEY_INVALID_INCHI_PREFIX = (int)3; |
| 193 |
public static final int INCHIKEY_NOT_ENOUGH_MEMORY = (int)4; |
| 194 |
public static final int INCHIKEY_INVALID_INCHI = (int)20; |
| 195 |
public static final int INCHIKEY_INVALID_STD_INCHI = (int)21; |
| 196 |
public static final int MAX_NUM_STEREO_ATOM_NEIGH = (int)4; |
| 197 |
public static final int MAX_NUM_STEREO_BONDS = (int)3; |
| 198 |
public static final int INCHI_NUM = (int)2; |
| 199 |
/** |
| 200 |
* Original signature : <code>void FreeInChIExtInput(inchi_Input_Polymer*, inchi_Input_V3000*)</code><br> |
| 201 |
*/ |
| 202 |
//public static native void FreeInChIExtInput(inchi_Input_Polymer polymer, inchi_Input_V3000 v3000); |
| 203 |
/** |
| 204 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 205 |
* GetINCHI / GetStdINCHI<br> |
| 206 |
* inchi_Input is created by the user; strings in inchi_Output are allocated and deallocated by InChI<br> |
| 207 |
* inchi_Output does not need to be initilized out to zeroes; see FreeNCHI()/FreeSTDINCHI() on how to deallocate it<br> |
| 208 |
* Valid options for GetINCHI:<br> |
| 209 |
* (use - instead of / for O.S. other than MS Windows)<br> |
| 210 |
* Structure perception (compatible with stdInChI)<br> |
| 211 |
* /NEWPSOFF /DoNotAddH /SNon<br> |
| 212 |
* Stereo interpretation (lead to generation of non-standard InChI)<br> |
| 213 |
* /SRel /SRac /SUCF /ChiralFlagON /ChiralFlagOFF<br> |
| 214 |
* InChI creation options (lead to generation of non-standard InChI)<br> |
| 215 |
* /SUU /SLUUD /FixedH /RecMet /KET /15T<br> |
| 216 |
* GetINCHI produces standard InChI if no InChI creation/stereo modification options<br> |
| 217 |
* are specified. Inveresely, if any of SUU/SLUUD/RecMet/FixedH/Ket/15T/SRel/SRac/SUCF<br> |
| 218 |
* options are specified, generated InChI will be non-standard one.<br> |
| 219 |
* GetStdINCHI produces standard InChI only.<br> |
| 220 |
* The valid structure perception options are:<br> |
| 221 |
* /NEWPSOFF /DoNotAddH /SNon<br> |
| 222 |
* Other options are:<br> |
| 223 |
* /AuxNone Omit auxiliary information (default: Include)<br> |
| 224 |
* /Wnumber Set time-out per structure in seconds; W0 means unlimited<br> |
| 225 |
* In InChI library the default value is unlimited<br> |
| 226 |
* /WMnumber Set time-out per structure in milliseconds; WM0 means unlimited<br> |
| 227 |
* In InChI library the default value is unlimited<br> |
| 228 |
* /OutputSDF Output SDfile instead of InChI<br> |
| 229 |
* /WarnOnEmptyStructure<br> |
| 230 |
* Warn and produce empty InChI for empty structure<br> |
| 231 |
* /SaveOpt Save custom InChI creation options (non-standard InChI)<br> |
| 232 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 233 |
* Original signature : <code>int GetINCHI(inchi_Input*, inchi_Output*)</code><br> |
| 234 |
* @param inp |
| 235 |
* @param out |
| 236 |
* @return |
| 237 |
*/ |
| 238 |
public static native int GetINCHI(tagINCHI_Input inp, tagINCHI_Output out); |
| 239 |
/** |
| 240 |
* Original signature : <code>int GetStdINCHI(inchi_Input*, inchi_Output*)</code><br> |
| 241 |
* @param inp |
| 242 |
* @param out |
| 243 |
* @return |
| 244 |
*/ |
| 245 |
public static native int GetStdINCHI(tagINCHI_Input inp, tagINCHI_Output out); |
| 246 |
/** |
| 247 |
* Extended version of GetINCHI supporting v. 1.05+ extensions: V3000; polymers<br> |
| 248 |
* Original signature : <code>int GetINCHIEx(inchi_InputEx*, inchi_Output*)</code><br> |
| 249 |
* @param inp |
| 250 |
* @param out |
| 251 |
* @return |
| 252 |
*/ |
| 253 |
public static native int GetINCHIEx(inchi_InputEx inp, tagINCHI_Output out); |
| 254 |
/** |
| 255 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 256 |
* FreeINCHI / FreeStdINCHI<br> |
| 257 |
* should be called to deallocate char* pointers<br> |
| 258 |
* obtained from each GetINCHI /GetStdINCHI call<br> |
| 259 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 260 |
* Original signature : <code>void FreeINCHI(inchi_Output*)</code><br> |
| 261 |
* @param out |
| 262 |
*/ |
| 263 |
public static native void FreeINCHI(tagINCHI_Output out); |
| 264 |
/** |
| 265 |
* Original signature : <code>void FreeStdINCHI(inchi_Output*)</code><br> |
| 266 |
* @param out |
| 267 |
*/ |
| 268 |
public static native void FreeStdINCHI(tagINCHI_Output out); |
| 269 |
/** |
| 270 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 271 |
* GetStructFromINCHI / GetStructFromStdINCHI / GetStructFromINCHIEx<br> |
| 272 |
* inchi_Inputinchi_InputINCHI is created by the user; pointers in inchi_OutputStruct are allocated and deallocated by InChI<br> |
| 273 |
* inchi_OutputStruct does not need to be initialized out to zeroes; see FreeStructFromStdINCHI() on how to deallocate it<br> |
| 274 |
* Option /Inchi2Struct is not needed for GetStructFromINCHI()/GetStructFromStdINCHI()<br> |
| 275 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 276 |
* Original signature : <code>int GetStructFromINCHI(inchi_InputINCHI*, inchi_OutputStruct*)</code><br> |
| 277 |
* @param inpInChI |
| 278 |
* @param outStruct |
| 279 |
* @return |
| 280 |
*/ |
| 281 |
public static native int GetStructFromINCHI(tagINCHI_InputINCHI inpInChI, tagINCHI_OutputStruct outStruct); |
| 282 |
/** |
| 283 |
* Original signature : <code>int GetStructFromStdINCHI(inchi_InputINCHI*, inchi_OutputStruct*)</code><br> |
| 284 |
* @param inpInChI |
| 285 |
* @param outStruct |
| 286 |
* @return |
| 287 |
*/ |
| 288 |
public static native int GetStructFromStdINCHI(tagINCHI_InputINCHI inpInChI, tagINCHI_OutputStruct outStruct); |
| 289 |
/** |
| 290 |
* Original signature : <code>int GetStructFromINCHIEx(inchi_InputINCHI*, inchi_OutputStructEx*)</code><br> |
| 291 |
* @param inpInChI |
| 292 |
* @param outStruct |
| 293 |
* @return |
| 294 |
*/ |
| 295 |
public static native int GetStructFromINCHIEx(tagINCHI_InputINCHI inpInChI, tagINCHI_OutputStructEx outStruct); |
| 296 |
/** |
| 297 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 298 |
* FreeStructFromINCHI / FreeStructFromStdINCHI / FreeStructFromINCHIEx<br> |
| 299 |
* should be called to deallocate pointers obtained from each<br> |
| 300 |
* GetStructFromStdINCHI / GetStructFromINCHI / GetStructFromINCHIEx<br> |
| 301 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 302 |
* Original signature : <code>void FreeStructFromINCHI(inchi_OutputStruct*)</code><br> |
| 303 |
* @param out |
| 304 |
*/ |
| 305 |
public static native void FreeStructFromINCHI(tagINCHI_OutputStruct out); |
| 306 |
/** |
| 307 |
* Original signature : <code>void FreeStructFromStdINCHI(inchi_OutputStruct*)</code><br> |
| 308 |
* @param out |
| 309 |
*/ |
| 310 |
public static native void FreeStructFromStdINCHI(tagINCHI_OutputStruct out); |
| 311 |
/** |
| 312 |
* Original signature : <code>void FreeStructFromINCHIEx(inchi_OutputStructEx*)</code><br> |
| 313 |
* @param out |
| 314 |
*/ |
| 315 |
public static native void FreeStructFromINCHIEx(tagINCHI_OutputStructEx out); |
| 316 |
/** |
| 317 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 318 |
* GetINCHIfromINCHI<br> |
| 319 |
* GetINCHIfromINCHI does same as -InChI2InChI option: converts InChI into InChI for validation purposes<br> |
| 320 |
* It may also be used to filter out specific layers. For instance, /Snon would remove stereochemical layer<br> |
| 321 |
* Omitting /FixedH and/or /RecMet would remove Fixed-H or Reconnected layers<br> |
| 322 |
* To keep all InChI layers use options string "/FixedH /RecMet"; option /InChI2InChI is not needed<br> |
| 323 |
* inchi_InputINCHI is created by the user; strings in inchi_Output are allocated and deallocated by InChI<br> |
| 324 |
* inchi_Output does not need to be initilized out to zeroes; see FreeINCHI() on how to deallocate it<br> |
| 325 |
* Note: there is no explicit tool to conversion from/to standard InChI<br> |
| 326 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 327 |
* Original signature : <code>int GetINCHIfromINCHI(inchi_InputINCHI*, inchi_Output*)</code><br> |
| 328 |
* @param inpInChI |
| 329 |
* @param out |
| 330 |
* @return |
| 331 |
*/ |
| 332 |
public static native int GetINCHIfromINCHI(tagINCHI_InputINCHI inpInChI, tagINCHI_Output out); |
| 333 |
/** |
| 334 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 335 |
* Get_inchi_Input_FromAuxInfo / Get_std_inchi_Input_FromAuxInfo<br> |
| 336 |
* Input:<br> |
| 337 |
* szInchiAuxInfo: contains ASCIIZ string of InChI output for a single<br> |
| 338 |
* structure or only the AuxInfo line<br> |
| 339 |
* bDoNotAddH: if 0 then InChI will be allowed to add implicit H<br> |
| 340 |
* bDiffUnkUndfStereo<br> |
| 341 |
* if not 0, use different labels for unknown and undefined stereo<br> |
| 342 |
* pInchiInp: should have a valid pointer pInchiInp->pInp to an empty<br> |
| 343 |
* (all members = 0) inchi_Input structure<br> |
| 344 |
* Output:<br> |
| 345 |
* pInchiInp: The following members of pInp may be filled during the call:<br> |
| 346 |
* atom, num_atoms, stereo0D, num_stereo0D<br> |
| 347 |
* Return value: see RetValGetINCHI<br> |
| 348 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 349 |
* Original signature : <code>int Get_inchi_Input_FromAuxInfo(char*, int, int, InchiInpData*)</code><br> |
| 350 |
* @param szInchiAuxInfo |
| 351 |
* @param bDoNotAddH |
| 352 |
* @param bDiffUnkUndfStereo |
| 353 |
* @param pInchiInp |
| 354 |
* @return |
| 355 |
*/ |
| 356 |
public static native int Get_inchi_Input_FromAuxInfo(String szInchiAuxInfo, boolean bDoNotAddH, boolean bDiffUnkUndfStereo, tagInchiInpData pInchiInp); |
| 357 |
/** |
| 358 |
* Original signature : <code>int Get_std_inchi_Input_FromAuxInfo(char*, int, InchiInpData*)</code><br> |
| 359 |
* @param szInchiAuxInfo |
| 360 |
* @param bDoNotAddH |
| 361 |
* @param pInchiInp |
| 362 |
* @return |
| 363 |
*/ |
| 364 |
public static native int Get_std_inchi_Input_FromAuxInfo(String szInchiAuxInfo, boolean bDoNotAddH, tagInchiInpData pInchiInp); |
| 365 |
/** |
| 366 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 367 |
* Free_inchi_Input / Free_std_inchi_Input<br> |
| 368 |
* To deallocate and write zeroes into the changed members of pInchiInp->pInp call<br> |
| 369 |
* Free_inchi_Input( inchi_Input *pInp )<br> |
| 370 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 371 |
* Original signature : <code>void Free_inchi_Input(inchi_Input*)</code><br> |
| 372 |
* @param pInp |
| 373 |
*/ |
| 374 |
public static native void Free_inchi_Input(tagINCHI_Input pInp); |
| 375 |
/** |
| 376 |
* Original signature : <code>void Free_std_inchi_Input(inchi_Input*)</code><br> |
| 377 |
* @param pInp |
| 378 |
*/ |
| 379 |
public static native void Free_std_inchi_Input(tagINCHI_Input pInp); |
| 380 |
/** |
| 381 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 382 |
* CheckINCHI<br> |
| 383 |
* Check if the string represents valid InChI/standard <br> |
| 384 |
* Input:<br> |
| 385 |
* szINCHI source InChI<br> |
| 386 |
* strict if 0, just briefly check for proper layout (prefix, version, etc.)<br> |
| 387 |
* The result may not be strict.<br> |
| 388 |
* If not 0, try to perform InChI2InChI conversion and<br> |
| 389 |
* returns success if a resulting InChI string exactly match source.<br> |
| 390 |
* The result may be 'false alarm' due to imperfectness of conversion.<br> |
| 391 |
* Returns:<br> |
| 392 |
* success/errors codes<br> |
| 393 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 394 |
* Original signature : <code>int CheckINCHI(const char*, const int)</code><br> |
| 395 |
* @param szINCHI |
| 396 |
* @param strict |
| 397 |
* @return |
| 398 |
*/ |
| 399 |
public static native int CheckINCHI(String szINCHI, boolean strict); |
| 400 |
/** |
| 401 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 402 |
* GetINCHIKeyFromINCHI<br> |
| 403 |
* Calculate InChIKey by InChI string.<br> |
| 404 |
* Input:<br> |
| 405 |
* szINCHISource<br> |
| 406 |
* source InChI string<br> |
| 407 |
* xtra1<br> |
| 408 |
* =1 calculate hash extension (up to 256 bits; 1st block)<br> |
| 409 |
* xtra2<br> |
| 410 |
* =1 calculate hash extension (up to 256 bits; 2nd block)<br> |
| 411 |
* Output:<br> |
| 412 |
* szINCHIKey<br> |
| 413 |
* InChIKey string<br> |
| 414 |
* The user-supplied buffer szINCHIKey should be at least 28 bytes long.<br> |
| 415 |
* szXtra1<br> |
| 416 |
* hash extension (up to 256 bits; 1st block) string<br> |
| 417 |
* Caller should allocate space for 64 characters + trailing NULL<br> |
| 418 |
* szXtra2<br> |
| 419 |
* hash extension (up to 256 bits; 2nd block) string<br> |
| 420 |
* Caller should allocate space for 64 characters + trailing NULL<br> |
| 421 |
* Returns:<br> |
| 422 |
* success/errors codes<br> |
| 423 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 424 |
* Original signature : <code>int GetINCHIKeyFromINCHI(const char*, const int, const int, char*, char*, char*)</code><br> |
| 425 |
* @param szINCHISource |
| 426 |
* @param xtra1 |
| 427 |
* @param xtra2 |
| 428 |
* @param szINCHIKey |
| 429 |
* @param szXtra1 |
| 430 |
* @param szXtra2 |
| 431 |
* @return |
| 432 |
*/ |
| 433 |
public static native int GetINCHIKeyFromINCHI(String szINCHISource, int xtra1, int xtra2, byte[] szINCHIKey, byte[] szXtra1, byte[] szXtra2); |
| 434 |
/** |
| 435 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 436 |
* GetStdINCHIKeyFromStdINCHI<br> |
| 437 |
* "Standard" counterpart<br> |
| 438 |
* For compatibility with v. 1.02std, no extra hash calculation is allowed.<br> |
| 439 |
* To calculate extra hash(es), use GetINCHIKeyFromINCHI with stdInChI as input.<br> |
| 440 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 441 |
* Original signature : <code>int GetStdINCHIKeyFromStdINCHI(const char*, char*)</code><br> |
| 442 |
* @param szINCHISource |
| 443 |
* @param szINCHIKey |
| 444 |
* @return |
| 445 |
*/ |
| 446 |
public static native int GetStdINCHIKeyFromStdINCHI(String szINCHISource, ByteBuffer szINCHIKey); |
| 447 |
/** |
| 448 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 449 |
* CheckINCHIKey<br> |
| 450 |
* Check if the string represents valid InChIKey.<br> |
| 451 |
* Input:<br> |
| 452 |
* szINCHIKey<br> |
| 453 |
* source InChIKey string<br> |
| 454 |
* Returns:<br> |
| 455 |
* success/errors codes<br> |
| 456 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 457 |
* Original signature : <code>int CheckINCHIKey(const char*)</code><br> |
| 458 |
* @param szINCHIKey |
| 459 |
* @return |
| 460 |
*/ |
| 461 |
public static native int CheckINCHIKey(String szINCHIKey); |
| 462 |
/** |
| 463 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 464 |
* INCHIGEN_Create / STDINCHIGEN_Create<br> |
| 465 |
* InChI Generator: create generator<br> |
| 466 |
* Returns handle of generator object or NULL on failure<br> |
| 467 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 468 |
* Original signature : <code>INCHIGEN_HANDLE INCHIGEN_Create()</code><br> |
| 469 |
* @return |
| 470 |
*/ |
| 471 |
public static native Pointer INCHIGEN_Create(); |
| 472 |
/** |
| 473 |
* Original signature : <code>INCHIGEN_HANDLE STDINCHIGEN_Create()</code><br> |
| 474 |
* @return |
| 475 |
*/ |
| 476 |
public static native Pointer STDINCHIGEN_Create(); |
| 477 |
/** |
| 478 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 479 |
* INCHIGEN_Setup / STDINCHIGEN_Setup<br> |
| 480 |
* InChI Generator: setup<br> |
| 481 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 482 |
* Original signature : <code>int INCHIGEN_Setup(INCHIGEN_HANDLE, INCHIGEN_DATA*, inchi_Input*)</code><br> |
| 483 |
* @param HGen |
| 484 |
* @param pGenData |
| 485 |
* @param pInp |
| 486 |
* @return |
| 487 |
*/ |
| 488 |
public static native int INCHIGEN_Setup(Pointer HGen, tagINCHIGEN_DATA pGenData, tagINCHI_Input pInp); |
| 489 |
/** |
| 490 |
* Original signature : <code>int STDINCHIGEN_Setup(INCHIGEN_HANDLE, INCHIGEN_DATA*, inchi_Input*)</code><br> |
| 491 |
* @param HGen |
| 492 |
* @param pGenData |
| 493 |
* @param pInp |
| 494 |
* @return |
| 495 |
*/ |
| 496 |
public static native int STDINCHIGEN_Setup(Pointer HGen, tagINCHIGEN_DATA pGenData, tagINCHI_Input pInp); |
| 497 |
/** |
| 498 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 499 |
* INCHIGEN_DoNormalization / STDINCHIGEN_DoNormalization<br> |
| 500 |
* InChI Generator: structure normalization stage<br> |
| 501 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 502 |
* Original signature : <code>int INCHIGEN_DoNormalization(INCHIGEN_HANDLE, INCHIGEN_DATA*)</code><br> |
| 503 |
* @param HGen |
| 504 |
* @param pGenData |
| 505 |
* @return |
| 506 |
*/ |
| 507 |
public static native int INCHIGEN_DoNormalization(Pointer HGen, tagINCHIGEN_DATA pGenData); |
| 508 |
/** |
| 509 |
* Original signature : <code>int STDINCHIGEN_DoNormalization(INCHIGEN_HANDLE, INCHIGEN_DATA*)</code><br> |
| 510 |
* @param HGen |
| 511 |
* @param pGenData |
| 512 |
* @return |
| 513 |
*/ |
| 514 |
public static native int STDINCHIGEN_DoNormalization(Pointer HGen, tagINCHIGEN_DATA pGenData); |
| 515 |
/** |
| 516 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 517 |
* INCHIGEN_DoCanonicalization / STDINCHIGEN_DoCanonicalization<br> |
| 518 |
* InChI Generator: structure canonicalization stage<br> |
| 519 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 520 |
* Original signature : <code>int INCHIGEN_DoCanonicalization(INCHIGEN_HANDLE, INCHIGEN_DATA*)</code><br> |
| 521 |
* @param HGen |
| 522 |
* @param pGenData |
| 523 |
* @return |
| 524 |
*/ |
| 525 |
public static native int INCHIGEN_DoCanonicalization(Pointer HGen, tagINCHIGEN_DATA pGenData); |
| 526 |
/** |
| 527 |
* Original signature : <code>int STDINCHIGEN_DoCanonicalization(INCHIGEN_HANDLE, INCHIGEN_DATA*)</code><br> |
| 528 |
* @param HGen |
| 529 |
* @param pGenData |
| 530 |
* @return |
| 531 |
*/ |
| 532 |
public static native int STDINCHIGEN_DoCanonicalization(Pointer HGen, tagINCHIGEN_DATA pGenData); |
| 533 |
/** |
| 534 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 535 |
* INCHIGEN_DoSerialization / STDINCHIGEN_DoSerialization<br> |
| 536 |
* InChI Generator: InChI serialization stage<br> |
| 537 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 538 |
* Original signature : <code>int INCHIGEN_DoSerialization(INCHIGEN_HANDLE, INCHIGEN_DATA*, inchi_Output*)</code><br> |
| 539 |
* @param HGen |
| 540 |
* @param pGenData |
| 541 |
* @param pResults |
| 542 |
* @return |
| 543 |
*/ |
| 544 |
public static native int INCHIGEN_DoSerialization(Pointer HGen, tagINCHIGEN_DATA pGenData, tagINCHI_Output pResults); |
| 545 |
/** |
| 546 |
* Original signature : <code>int STDINCHIGEN_DoSerialization(INCHIGEN_HANDLE, INCHIGEN_DATA*, inchi_Output*)</code><br> |
| 547 |
* @param HGen |
| 548 |
* @param pGenData |
| 549 |
* @param pResults |
| 550 |
* @return |
| 551 |
*/ |
| 552 |
public static native int STDINCHIGEN_DoSerialization(Pointer HGen, tagINCHIGEN_DATA pGenData, tagINCHI_Output pResults); |
| 553 |
/** |
| 554 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 555 |
* INCHIGEN_Reset / STDINCHIGEN_Reset<br> |
| 556 |
* InChI Generator: reset stage (use before get next structure)<br> |
| 557 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 558 |
* Original signature : <code>void INCHIGEN_Reset(INCHIGEN_HANDLE, INCHIGEN_DATA*, inchi_Output*)</code><br> |
| 559 |
* @param HGen |
| 560 |
* @param pGenData |
| 561 |
* @param pResults |
| 562 |
*/ |
| 563 |
public static native void INCHIGEN_Reset(Pointer HGen, tagINCHIGEN_DATA pGenData, tagINCHI_Output pResults); |
| 564 |
/** |
| 565 |
* Original signature : <code>void STDINCHIGEN_Reset(INCHIGEN_HANDLE, INCHIGEN_DATA*, inchi_Output*)</code><br> |
| 566 |
* @param HGen |
| 567 |
* @param pGenData |
| 568 |
* @param pResults |
| 569 |
*/ |
| 570 |
public static native void STDINCHIGEN_Reset(Pointer HGen, tagINCHIGEN_DATA pGenData, tagINCHI_Output pResults); |
| 571 |
/** |
| 572 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 573 |
* INCHIGEN_Destroy / STDINCHIGEN_Destroy<br> |
| 574 |
* InChI Generator: destroy generator<br> |
| 575 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 576 |
* Original signature : <code>void INCHIGEN_Destroy(INCHIGEN_HANDLE)</code><br> |
| 577 |
* @param HGen |
| 578 |
*/ |
| 579 |
public static native void INCHIGEN_Destroy(Pointer HGen); |
| 580 |
/** |
| 581 |
* Original signature : <code>void STDINCHIGEN_Destroy(INCHIGEN_HANDLE)</code><br> |
| 582 |
* @param HGen |
| 583 |
*/ |
| 584 |
public static native void STDINCHIGEN_Destroy(Pointer HGen); |
| 585 |
/** |
| 586 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 587 |
* MakeINCHIFromMolfileText<br> |
| 588 |
* Direct generation of InChI from Molfile supplied as text<br> |
| 589 |
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br> |
| 590 |
* Original signature : <code>int MakeINCHIFromMolfileText(const char*, char*, inchi_Output*)</code><br> |
| 591 |
* @param moltext |
| 592 |
* @param options |
| 593 |
* @param result |
| 594 |
* @return |
| 595 |
*/ |
| 596 |
public static native int MakeINCHIFromMolfileText(String moltext, String options, tagINCHI_Output result); |
| 597 |
|
| 598 |
/** enum values */ |
| 599 |
public static interface IXA_STATUS { |
| 600 |
public static final int IXA_STATUS_SUCCESS = 0; |
| 601 |
public static final int IXA_STATUS_WARNING = 1; |
| 602 |
public static final int IXA_STATUS_ERROR = 2; |
| 603 |
}; |
| 604 |
/** enum values */ |
| 605 |
public static interface IXA_ATOM_RADICAL { |
| 606 |
public static final int IXA_ATOM_RADICAL_NONE = 0; |
| 607 |
public static final int IXA_ATOM_RADICAL_SINGLET = 1; |
| 608 |
public static final int IXA_ATOM_RADICAL_DOUBLET = 2; |
| 609 |
public static final int IXA_ATOM_RADICAL_TRIPLET = 3; |
| 610 |
}; |
| 611 |
/** enum values */ |
| 612 |
public static interface IXA_BOND_TYPE { |
| 613 |
public static final int IXA_BOND_TYPE_SINGLE = 1; |
| 614 |
public static final int IXA_BOND_TYPE_DOUBLE = 2; |
| 615 |
public static final int IXA_BOND_TYPE_TRIPLE = 3; |
| 616 |
public static final int IXA_BOND_TYPE_AROMATIC = 4; |
| 617 |
}; |
| 618 |
/** enum values */ |
| 619 |
public static interface IXA_BOND_WEDGE { |
| 620 |
public static final int IXA_BOND_WEDGE_NONE = 0; |
| 621 |
public static final int IXA_BOND_WEDGE_UP = 1; |
| 622 |
public static final int IXA_BOND_WEDGE_DOWN = 2; |
| 623 |
public static final int IXA_BOND_WEDGE_EITHER = 3; |
| 624 |
}; |
| 625 |
/** enum values */ |
| 626 |
public static interface IXA_DBLBOND_CONFIG { |
| 627 |
public static final int IXA_DBLBOND_CONFIG_PERCEIVE = 0; |
| 628 |
public static final int IXA_DBLBOND_CONFIG_EITHER = 1; |
| 629 |
}; |
| 630 |
/** enum values */ |
| 631 |
public static interface IXA_STEREO_TOPOLOGY { |
| 632 |
public static final int IXA_STEREO_TOPOLOGY_INVALID = 0; |
| 633 |
public static final int IXA_STEREO_TOPOLOGY_TETRAHEDRON = 2; |
| 634 |
public static final int IXA_STEREO_TOPOLOGY_RECTANGLE = 3; |
| 635 |
public static final int IXA_STEREO_TOPOLOGY_ANTIRECTANGLE = 4; |
| 636 |
}; |
| 637 |
/** enum values */ |
| 638 |
public static interface IXA_STEREO_PARITY { |
| 639 |
public static final int IXA_STEREO_PARITY_NONE = 0; |
| 640 |
public static final int IXA_STEREO_PARITY_ODD = 1; |
| 641 |
public static final int IXA_STEREO_PARITY_EVEN = 2; |
| 642 |
public static final int IXA_STEREO_PARITY_UNKNOWN = 3; |
| 643 |
}; |
| 644 |
/** enum values */ |
| 645 |
public static interface IXA_INCHIBUILDER_OPTION { |
| 646 |
public static final int IXA_INCHIBUILDER_OPTION_NewPsOff = 0; |
| 647 |
public static final int IXA_INCHIBUILDER_OPTION_DoNotAddH = 1; |
| 648 |
public static final int IXA_INCHIBUILDER_OPTION_SUU = 2; |
| 649 |
public static final int IXA_INCHIBUILDER_OPTION_SLUUD = 3; |
| 650 |
public static final int IXA_INCHIBUILDER_OPTION_FixedH = 4; |
| 651 |
public static final int IXA_INCHIBUILDER_OPTION_RecMet = 5; |
| 652 |
public static final int IXA_INCHIBUILDER_OPTION_KET = 6; |
| 653 |
public static final int IXA_INCHIBUILDER_OPTION_15T = 7; |
| 654 |
public static final int IXA_INCHIBUILDER_OPTION_SaveOpt = 8; |
| 655 |
public static final int IXA_INCHIBUILDER_OPTION_AuxNone = 9; |
| 656 |
public static final int IXA_INCHIBUILDER_OPTION_WarnOnEmptyStructure = 10; |
| 657 |
public static final int IXA_INCHIBUILDER_OPTION_LargeMolecules = 11; |
| 658 |
public static final int IXA_INCHIBUILDER_OPTION_Polymers = 12; |
| 659 |
public static final int IXA_INCHIBUILDER_OPTION_Polymers105 = 13; |
| 660 |
public static final int IXA_INCHIBUILDER_OPTION_Polymers105Plus = 14; |
| 661 |
public static final int IXA_INCHIBUILDER_OPTION_FilterSS = 15; |
| 662 |
public static final int IXA_INCHIBUILDER_OPTION_InvFilterSS = 16; |
| 663 |
public static final int IXA_INCHIBUILDER_OPTION_NPZZ = 17; |
| 664 |
public static final int IXA_INCHIBUILDER_OPTION_SATZZ = 18; |
| 665 |
public static final int IXA_INCHIBUILDER_OPTION_NoFrameShift = 19; |
| 666 |
public static final int IXA_INCHIBUILDER_OPTION_FoldCRU = 20; |
| 667 |
public static final int IXA_INCHIBUILDER_OPTION_NoEdits = 21; |
| 668 |
public static final int IXA_INCHIBUILDER_OPTION_LooseTSACheck = 22; |
| 669 |
public static final int IXA_INCHIBUILDER_OPTION_OutErrInChI = 23; |
| 670 |
public static final int IXA_INCHIBUILDER_OPTION_NoWarnings = 24; |
| 671 |
}; |
| 672 |
/** enum values */ |
| 673 |
public static interface IXA_INCHIBUILDER_STEREOOPTION { |
| 674 |
public static final int IXA_INCHIBUILDER_STEREOOPTION_SAbs = 0; |
| 675 |
public static final int IXA_INCHIBUILDER_STEREOOPTION_SNon = 1; |
| 676 |
public static final int IXA_INCHIBUILDER_STEREOOPTION_SRel = 2; |
| 677 |
public static final int IXA_INCHIBUILDER_STEREOOPTION_SRac = 3; |
| 678 |
public static final int IXA_INCHIBUILDER_STEREOOPTION_SUCF = 4; |
| 679 |
}; |
| 680 |
public static final int IXA_ATOM_NATURAL_MASS = (int)0; |
| 681 |
public static final int IXA_EXT_MOLDATA_INVALID = (int)(-1); |
| 682 |
public static final int IXA_EXT_POLYMER_INVALID = (int)(-1); |
| 683 |
public static final int IXA_EXT_V3000_INVALID = (int)(-1); |
| 684 |
public static final int IXA_USES_SMART_ALLOCS = (int)1; |
| 685 |
|
| 686 |
/* |
| 687 |
* Functions handling IXA Status Objects<br> |
| 688 |
*/ |
| 689 |
/** |
| 690 |
* Original signature : <code>INCHI_DECL IXA_STATUS_Create()</code><br> |
| 691 |
* @return |
| 692 |
*/ |
| 693 |
static native Pointer IXA_STATUS_Create(); |
| 694 |
/** |
| 695 |
* Original signature : <code>INCHI_DECL IXA_STATUS_Clear(Pointer)</code><br> |
| 696 |
* @param hStatus |
| 697 |
*/ |
| 698 |
static native void IXA_STATUS_Clear(Pointer hStatus); |
| 699 |
/** |
| 700 |
* Original signature : <code>INCHI_DECL IXA_STATUS_Destroy(Pointer)</code><br> |
| 701 |
* @param hStatus |
| 702 |
*/ |
| 703 |
static native void IXA_STATUS_Destroy(Pointer hStatus); |
| 704 |
/** |
| 705 |
* Original signature : <code>INCHI_DECL IXA_STATUS_HasError(Pointer)</code><br> |
| 706 |
* @param hStatus |
| 707 |
* @return |
| 708 |
*/ |
| 709 |
static native boolean IXA_STATUS_HasError(Pointer hStatus); |
| 710 |
/** |
| 711 |
* Original signature : <code>INCHI_DECL IXA_STATUS_HasWarning(Pointer)</code><br> |
| 712 |
* @param hStatus |
| 713 |
* @return |
| 714 |
*/ |
| 715 |
static native boolean IXA_STATUS_HasWarning(Pointer hStatus); |
| 716 |
/** |
| 717 |
* Original signature : <code>INCHI_DECL IXA_STATUS_GetCount(Pointer)</code><br> |
| 718 |
* @param hStatus |
| 719 |
* @return |
| 720 |
*/ |
| 721 |
static native int IXA_STATUS_GetCount(Pointer hStatus); |
| 722 |
/** |
| 723 |
* Original signature : <code>INCHI_DECL IXA_STATUS_GetSeverity(Pointer, int)</code><br> |
| 724 |
* @param hStatus |
| 725 |
* @param vIndex |
| 726 |
* @return |
| 727 |
*/ |
| 728 |
static native int IXA_STATUS_GetSeverity(Pointer hStatus, int vIndex); |
| 729 |
/** |
| 730 |
* Original signature : <code>INCHI_DECL IXA_STATUS_GetMessage(Pointer, int)</code><br> |
| 731 |
* @param hStatus |
| 732 |
* @param vIndex |
| 733 |
* @return |
| 734 |
*/ |
| 735 |
static native String IXA_STATUS_GetMessage(Pointer hStatus, int vIndex); |
| 736 |
/* |
| 737 |
* Functions to Create, Clear and Destroy Molecule Objects<br> |
| 738 |
*/ |
| 739 |
/** |
| 740 |
* Original signature : <code>INCHI_DECL IXA_MOL_Create(Pointer)</code><br> |
| 741 |
* @param hStatus |
| 742 |
* @return |
| 743 |
*/ |
| 744 |
static native Pointer IXA_MOL_Create(Pointer hStatus); |
| 745 |
/** |
| 746 |
* Original signature : <code>INCHI_DECL IXA_MOL_Clear(Pointer, Pointer)</code><br> |
| 747 |
* @param hStatus |
| 748 |
* @param hMolecule |
| 749 |
*/ |
| 750 |
static native void IXA_MOL_Clear(Pointer hStatus, Pointer hMolecule); |
| 751 |
/** |
| 752 |
* Original signature : <code>INCHI_DECL IXA_MOL_Destroy(Pointer, Pointer)</code><br> |
| 753 |
* @param hStatus |
| 754 |
* @param hMolecule |
| 755 |
*/ |
| 756 |
static native void IXA_MOL_Destroy(Pointer hStatus, Pointer hMolecule); |
| 757 |
/* |
| 758 |
* Functions Operating on Complete Molecules<br> |
| 759 |
*/ |
| 760 |
/** |
| 761 |
* Original signature : <code>INCHI_DECL IXA_MOL_ReadMolfile(Pointer, Pointer, const char*)</code><br> |
| 762 |
* @param hStatus |
| 763 |
* @param hMolecule |
| 764 |
* @param pBytes |
| 765 |
*/ |
| 766 |
static native void IXA_MOL_ReadMolfile(Pointer hStatus, Pointer hMolecule, byte[] pBytes); |
| 767 |
/** |
| 768 |
* Original signature : <code>INCHI_DECL IXA_MOL_ReadInChI(Pointer, Pointer, const char*)</code><br> |
| 769 |
* @param hStatus |
| 770 |
* @param hMolecule |
| 771 |
* @param pInChI |
| 772 |
*/ |
| 773 |
static native void IXA_MOL_ReadInChI(Pointer hStatus, Pointer hMolecule, byte[] pInChI); |
| 774 |
/** |
| 775 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetChiral(Pointer, Pointer, IXA_BOOL)</code><br> |
| 776 |
* @param hStatus |
| 777 |
* @param hMolecule |
| 778 |
* @param vChiral |
| 779 |
*/ |
| 780 |
static native void IXA_MOL_SetChiral(Pointer hStatus, Pointer hMolecule, boolean vChiral); |
| 781 |
/** |
| 782 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetChiral(Pointer, Pointer)</code><br> |
| 783 |
* @param hStatus |
| 784 |
* @param hMolecule |
| 785 |
* @return |
| 786 |
*/ |
| 787 |
static native boolean IXA_MOL_GetChiral(Pointer hStatus, Pointer hMolecule); |
| 788 |
/* |
| 789 |
* Functions to Add and Define Atoms<br> |
| 790 |
*/ |
| 791 |
/** |
| 792 |
* Original signature : <code>INCHI_DECL IXA_MOL_CreateAtom(Pointer, Pointer)</code><br> |
| 793 |
* @param hStatus |
| 794 |
* @param hMolecule |
| 795 |
* @return |
| 796 |
*/ |
| 797 |
static native Pointer IXA_MOL_CreateAtom(Pointer hStatus, Pointer hMolecule); |
| 798 |
/** |
| 799 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetAtomElement(Pointer, Pointer, Pointer, const char*)</code><br> |
| 800 |
* @param hStatus |
| 801 |
* @param hMolecule |
| 802 |
* @param vAtom |
| 803 |
* @param pElement |
| 804 |
*/ |
| 805 |
static native void IXA_MOL_SetAtomElement(Pointer hStatus, Pointer hMolecule, Pointer vAtom, byte[] pElement); |
| 806 |
/** |
| 807 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetAtomAtomicNumber(Pointer, Pointer, Pointer, int)</code><br> |
| 808 |
* @param hStatus |
| 809 |
* @param hMolecule |
| 810 |
* @param vAtom |
| 811 |
* @param vAtomicNumber |
| 812 |
*/ |
| 813 |
static native void IXA_MOL_SetAtomAtomicNumber(Pointer hStatus, Pointer hMolecule, Pointer vAtom, int vAtomicNumber); |
| 814 |
/** |
| 815 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetAtomMass(Pointer, Pointer, Pointer, int)</code><br> |
| 816 |
* @param hStatus |
| 817 |
* @param hMolecule |
| 818 |
* @param vAtom |
| 819 |
* @param vMassNumber |
| 820 |
*/ |
| 821 |
static native void IXA_MOL_SetAtomMass(Pointer hStatus, Pointer hMolecule, Pointer vAtom, int vMassNumber); |
| 822 |
/** |
| 823 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetAtomCharge(Pointer, Pointer, Pointer, int)</code><br> |
| 824 |
* @param hStatus |
| 825 |
* @param hMolecule |
| 826 |
* @param vAtom |
| 827 |
* @param vCharge |
| 828 |
*/ |
| 829 |
static native void IXA_MOL_SetAtomCharge(Pointer hStatus, Pointer hMolecule, Pointer vAtom, int vCharge); |
| 830 |
/** |
| 831 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetAtomRadical(Pointer, Pointer, Pointer, IXA_ATOM_RADICAL)</code><br> |
| 832 |
* @param hStatus |
| 833 |
* @param hMolecule |
| 834 |
* @param vAtom |
| 835 |
* @param vRadical |
| 836 |
*/ |
| 837 |
static native void IXA_MOL_SetAtomRadical(Pointer hStatus, Pointer hMolecule, Pointer vAtom, int vRadical); |
| 838 |
/** |
| 839 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetAtomHydrogens(Pointer, Pointer, Pointer, int, int)</code><br> |
| 840 |
* @param hStatus |
| 841 |
* @param hMolecule |
| 842 |
* @param vAtom |
| 843 |
* @param vHydrogenMassNumber |
| 844 |
* @param vHydrogenCount |
| 845 |
*/ |
| 846 |
static native void IXA_MOL_SetAtomHydrogens(Pointer hStatus, Pointer hMolecule, Pointer vAtom, int vHydrogenMassNumber, int vHydrogenCount); |
| 847 |
/** |
| 848 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetAtomX(Pointer, Pointer, Pointer, double)</code><br> |
| 849 |
* @param hStatus |
| 850 |
* @param hMolecule |
| 851 |
* @param vAtom |
| 852 |
* @param vX |
| 853 |
*/ |
| 854 |
static native void IXA_MOL_SetAtomX(Pointer hStatus, Pointer hMolecule, Pointer vAtom, double vX); |
| 855 |
/** |
| 856 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetAtomY(Pointer, Pointer, Pointer, double)</code><br> |
| 857 |
* @param hStatus |
| 858 |
* @param hMolecule |
| 859 |
* @param vAtom |
| 860 |
* @param vY |
| 861 |
*/ |
| 862 |
static native void IXA_MOL_SetAtomY(Pointer hStatus, Pointer hMolecule, Pointer vAtom, double vY); |
| 863 |
/** |
| 864 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetAtomZ(Pointer, Pointer, Pointer, double)</code><br> |
| 865 |
* @param hStatus |
| 866 |
* @param hMolecule |
| 867 |
* @param vAtom |
| 868 |
* @param vZ |
| 869 |
*/ |
| 870 |
static native void IXA_MOL_SetAtomZ(Pointer hStatus, Pointer hMolecule, Pointer vAtom, double vZ); |
| 871 |
/* |
| 872 |
* Functions to Add and Define Bonds<br> |
| 873 |
*/ |
| 874 |
/** |
| 875 |
* Original signature : <code>INCHI_DECL IXA_MOL_CreateBond(Pointer, Pointer, Pointer, Pointer)</code><br> |
| 876 |
* @param hStatus |
| 877 |
* @param hMolecule |
| 878 |
* @param vAtom1 |
| 879 |
* @param vAtom2 |
| 880 |
* @return |
| 881 |
*/ |
| 882 |
static native Pointer IXA_MOL_CreateBond(Pointer hStatus, Pointer hMolecule, Pointer vAtom1, Pointer vAtom2); |
| 883 |
/** |
| 884 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetBondType(Pointer, Pointer, Pointer, IXA_BOND_TYPE)</code><br> |
| 885 |
* @param hStatus |
| 886 |
* @param hMolecule |
| 887 |
* @param vBond |
| 888 |
* @param vType |
| 889 |
*/ |
| 890 |
static native void IXA_MOL_SetBondType(Pointer hStatus, Pointer hMolecule, Pointer vBond, int vType); |
| 891 |
/** |
| 892 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetBondWedge(Pointer, Pointer, Pointer, Pointer, IXA_BOND_WEDGE)</code><br> |
| 893 |
* @param hStatus |
| 894 |
* @param hMolecule |
| 895 |
* @param vBond |
| 896 |
* @param vRefAtom |
| 897 |
* @param vDirection |
| 898 |
*/ |
| 899 |
static native void IXA_MOL_SetBondWedge(Pointer hStatus, Pointer hMolecule, Pointer vBond, Pointer vRefAtom, int vDirection); |
| 900 |
/** |
| 901 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetDblBondConfig(Pointer, Pointer, Pointer, IXA_DBLBOND_CONFIG)</code><br> |
| 902 |
* @param hStatus |
| 903 |
* @param hMolecule |
| 904 |
* @param vBond |
| 905 |
* @param vConfig |
| 906 |
*/ |
| 907 |
static native void IXA_MOL_SetDblBondConfig(Pointer hStatus, Pointer hMolecule, Pointer vBond, int vConfig); |
| 908 |
|
| 909 |
/* |
| 910 |
* Functions to Add and Define Stereodescriptors<br> |
| 911 |
*/ |
| 912 |
/** |
| 913 |
* Original signature : <code>INCHI_DECL IXA_MOL_CreateStereoTetrahedron(Pointer, Pointer, Pointer, Pointer, Pointer, Pointer, Pointer)</code><br> |
| 914 |
* @param hStatus |
| 915 |
* @param hMolecule |
| 916 |
* @param vCentralAtom |
| 917 |
* @param vVertex1 |
| 918 |
* @param vVertex2 |
| 919 |
* @param vVertex3 |
| 920 |
* @param vVertex4 |
| 921 |
* @return |
| 922 |
*/ |
| 923 |
static native Pointer IXA_MOL_CreateStereoTetrahedron(Pointer hStatus, Pointer hMolecule, Pointer vCentralAtom, Pointer vVertex1, Pointer vVertex2, Pointer vVertex3, Pointer vVertex4); |
| 924 |
/** |
| 925 |
* Original signature : <code>INCHI_DECL IXA_MOL_CreateStereoRectangle(Pointer, Pointer, Pointer, Pointer, Pointer, Pointer, Pointer)</code><br> |
| 926 |
* @param hStatus |
| 927 |
* @param hMolecule |
| 928 |
* @param vCentralBond |
| 929 |
* @param vVertex1 |
| 930 |
* @param vVertex2 |
| 931 |
* @param vVertex3 |
| 932 |
* @param vVertex4 |
| 933 |
* @return |
| 934 |
*/ |
| 935 |
static native Pointer IXA_MOL_CreateStereoRectangle(Pointer hStatus, Pointer hMolecule, Pointer vCentralBond, Pointer vVertex1, Pointer vVertex2, Pointer vVertex3, Pointer vVertex4); |
| 936 |
/** |
| 937 |
* Original signature : <code>INCHI_DECL IXA_MOL_CreateStereoAntiRectangle(Pointer, Pointer, Pointer, Pointer, Pointer, Pointer, Pointer)</code><br> |
| 938 |
* @param hStatus |
| 939 |
* @param hMolecule |
| 940 |
* @param vCentralAtom |
| 941 |
* @param vVertex1 |
| 942 |
* @param vVertex2 |
| 943 |
* @param vVertex3 |
| 944 |
* @param vVertex4 |
| 945 |
* @return |
| 946 |
*/ |
| 947 |
static native Pointer IXA_MOL_CreateStereoAntiRectangle(Pointer hStatus, Pointer hMolecule, Pointer vCentralAtom, Pointer vVertex1, Pointer vVertex2, Pointer vVertex3, Pointer vVertex4); |
| 948 |
/** |
| 949 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetStereoParity(Pointer, Pointer, Pointer, IXA_STEREO_PARITY)</code><br> |
| 950 |
* @param hStatus |
| 951 |
* @param hMolecule |
| 952 |
* @param vStereo |
| 953 |
* @param vParity |
| 954 |
*/ |
| 955 |
static native void IXA_MOL_SetStereoParity(Pointer hStatus, Pointer hMolecule, Pointer vStereo, int vParity); |
| 956 |
/** |
| 957 |
* Original signature : <code>INCHI_DECL IXA_MOL_ReserveSpace(IXA_STATUS_HANDLE, IXA_MOL_HANDLE, int, int, int)</code><br> |
| 958 |
* @param hStatus |
| 959 |
* @param hMolecule |
| 960 |
* @param num_atoms |
| 961 |
* @param num_bonds |
| 962 |
* @param num_stereos |
| 963 |
* @return |
| 964 |
*/ |
| 965 |
static native int IXA_MOL_ReserveSpace(Pointer hStatus, Pointer hMolecule, int num_atoms, int num_bonds, int num_stereos); |
| 966 |
|
| 967 |
/* |
| 968 |
* Functions to to Treat Extended molecular data |
| 969 |
*/ |
| 970 |
//FIXME IXA_MOL_CreatePolymerUnit and IXA_MOL_SetPolymerUnit are missing from Linux build |
| 971 |
/** |
| 972 |
* Original signature : <code>INCHI_DECL IXA_MOL_CreatePolymerUnit(IXA_STATUS_HANDLE, IXA_MOL_HANDLE)</code><br> |
| 973 |
* @param hStatus |
| 974 |
* @param hMolecule |
| 975 |
* @return |
| 976 |
*/ |
| 977 |
//static native Pointer IXA_MOL_CreatePolymerUnit(Pointer hStatus, Pointer hMolecule); |
| 978 |
/** |
| 979 |
* Original signature : <code>INCHI_DECL IXA_MOL_SetPolymerUnit(IXA_STATUS_HANDLE, IXA_MOL_HANDLE, IXA_POLYMERUNITID, int, int, int, int, int, int, int, double[4], double[4], char[80], int*, int*)</code><br> |
| 980 |
* @param hStatus |
| 981 |
* @param hMolecule |
| 982 |
* @param vPunit |
| 983 |
* @param vid |
| 984 |
* @param vtype |
| 985 |
* @param vsubtype |
| 986 |
* @param vconn |
| 987 |
* @param vlabel |
| 988 |
* @param vna |
| 989 |
* @param vnb |
| 990 |
* @param vxbr1 |
| 991 |
* @param vxbr2 |
| 992 |
* @param vsmt |
| 993 |
* @param valist |
| 994 |
* @param vblist |
| 995 |
*/ |
| 996 |
//static native void IXA_MOL_SetPolymerUnit(Pointer hStatus, Pointer hMolecule, Pointer vPunit, int vid, int vtype, int vsubtype, int vconn, int vlabel, int vna, int vnb, DoubleBuffer vxbr1, DoubleBuffer vxbr2, ByteBuffer vsmt, IntBuffer valist, IntBuffer vblist); |
| 997 |
|
| 998 |
/* |
| 999 |
* Functions to Navigate Within a Molecule<br> |
| 1000 |
*/ |
| 1001 |
/** |
| 1002 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetNumAtoms(Pointer, Pointer)</code><br> |
| 1003 |
* @param hStatus |
| 1004 |
* @param hMolecule |
| 1005 |
* @return |
| 1006 |
*/ |
| 1007 |
static native int IXA_MOL_GetNumAtoms(Pointer hStatus, Pointer hMolecule); |
| 1008 |
/** |
| 1009 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetNumBonds(Pointer, Pointer)</code><br> |
| 1010 |
* @param hStatus |
| 1011 |
* @param hMolecule |
| 1012 |
* @return |
| 1013 |
*/ |
| 1014 |
static native int IXA_MOL_GetNumBonds(Pointer hStatus, Pointer hMolecule); |
| 1015 |
/** |
| 1016 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomId(Pointer, Pointer, int)</code><br> |
| 1017 |
* @param hStatus |
| 1018 |
* @param hMolecule |
| 1019 |
* @param vAtomIndex |
| 1020 |
* @return |
| 1021 |
*/ |
| 1022 |
static native Pointer IXA_MOL_GetAtomId(Pointer hStatus, Pointer hMolecule, int vAtomIndex); |
| 1023 |
/** |
| 1024 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetBondId(Pointer, Pointer, int)</code><br> |
| 1025 |
* @param hStatus |
| 1026 |
* @param hMolecule |
| 1027 |
* @param vBondIndex |
| 1028 |
* @return |
| 1029 |
*/ |
| 1030 |
static native Pointer IXA_MOL_GetBondId(Pointer hStatus, Pointer hMolecule, int vBondIndex); |
| 1031 |
/** |
| 1032 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomIndex(Pointer, Pointer, Pointer)</code><br> |
| 1033 |
* @param hStatus |
| 1034 |
* @param hMolecule |
| 1035 |
* @param vAtom |
| 1036 |
* @return |
| 1037 |
*/ |
| 1038 |
static native int IXA_MOL_GetAtomIndex(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1039 |
/** |
| 1040 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetBondIndex(Pointer, Pointer, Pointer)</code><br> |
| 1041 |
* @param hStatus |
| 1042 |
* @param hMolecule |
| 1043 |
* @param vBond |
| 1044 |
* @return |
| 1045 |
*/ |
| 1046 |
static native int IXA_MOL_GetBondIndex(Pointer hStatus, Pointer hMolecule, Pointer vBond); |
| 1047 |
/** |
| 1048 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomNumBonds(Pointer, Pointer, Pointer)</code><br> |
| 1049 |
* @param hStatus |
| 1050 |
* @param hMolecule |
| 1051 |
* @param vAtom |
| 1052 |
* @return |
| 1053 |
*/ |
| 1054 |
static native int IXA_MOL_GetAtomNumBonds(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1055 |
//FIXME IXA_MOL_GetPolymerUnitId and IXA_MOL_GetPolymerUnitIndex are missing from Linux build |
| 1056 |
/** |
| 1057 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetPolymerUnitId(IXA_STATUS_HANDLE, IXA_MOL_HANDLE, int)</code><br> |
| 1058 |
* @param hStatus |
| 1059 |
* @param hMolecule |
| 1060 |
* @param vPolymerUnitIndex |
| 1061 |
* @return |
| 1062 |
*/ |
| 1063 |
//static native Pointer IXA_MOL_GetPolymerUnitId(Pointer hStatus, Pointer hMolecule, int vPolymerUnitIndex); |
| 1064 |
/** |
| 1065 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetPolymerUnitIndex(IXA_STATUS_HANDLE, IXA_MOL_HANDLE, IXA_POLYMERUNITID)</code><br> |
| 1066 |
* @param hStatus |
| 1067 |
* @param hMolecule |
| 1068 |
* @param vPolymerUnit |
| 1069 |
* @return |
| 1070 |
*/ |
| 1071 |
//static native int IXA_MOL_GetPolymerUnitIndex(Pointer hStatus, Pointer hMolecule, Pointer vPolymerUnit); |
| 1072 |
/** |
| 1073 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomBond(Pointer, Pointer, Pointer, int)</code><br> |
| 1074 |
* @param hStatus |
| 1075 |
* @param hMolecule |
| 1076 |
* @param vAtom |
| 1077 |
* @param vBondIndex |
| 1078 |
* @return |
| 1079 |
*/ |
| 1080 |
static native Pointer IXA_MOL_GetAtomBond(Pointer hStatus, Pointer hMolecule, Pointer vAtom, int vBondIndex); |
| 1081 |
/** |
| 1082 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetCommonBond(Pointer, Pointer, Pointer, Pointer)</code><br> |
| 1083 |
* @param hStatus |
| 1084 |
* @param hMolecule |
| 1085 |
* @param vAtom1 |
| 1086 |
* @param vAtom2 |
| 1087 |
* @return |
| 1088 |
*/ |
| 1089 |
static native Pointer IXA_MOL_GetCommonBond(Pointer hStatus, Pointer hMolecule, Pointer vAtom1, Pointer vAtom2); |
| 1090 |
/** |
| 1091 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetBondAtom1(Pointer, Pointer, Pointer)</code><br> |
| 1092 |
* @param hStatus |
| 1093 |
* @param hMolecule |
| 1094 |
* @param vBond |
| 1095 |
* @return |
| 1096 |
*/ |
| 1097 |
static native Pointer IXA_MOL_GetBondAtom1(Pointer hStatus, Pointer hMolecule, Pointer vBond); |
| 1098 |
/** |
| 1099 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetBondAtom2(Pointer, Pointer, Pointer)</code><br> |
| 1100 |
* @param hStatus |
| 1101 |
* @param hMolecule |
| 1102 |
* @param vBond |
| 1103 |
* @return |
| 1104 |
*/ |
| 1105 |
static native Pointer IXA_MOL_GetBondAtom2(Pointer hStatus, Pointer hMolecule, Pointer vBond); |
| 1106 |
/** |
| 1107 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetBondOtherAtom(IXA_STATUS_HANDLE, IXA_MOL_HANDLE, IXA_BONDID, IXA_ATOMID)</code><br> |
| 1108 |
* @param hStatus |
| 1109 |
* @param hMolecule |
| 1110 |
* @param vBond |
| 1111 |
* @param vAtom |
| 1112 |
* @return |
| 1113 |
*/ |
| 1114 |
static native Pointer IXA_MOL_GetBondOtherAtom(Pointer hStatus, Pointer hMolecule, Pointer vBond, Pointer vAtom); |
| 1115 |
|
| 1116 |
/* |
| 1117 |
* Functions to Return Information About Atoms<br> |
| 1118 |
*/ |
| 1119 |
/** |
| 1120 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomElement(Pointer, Pointer, Pointer)</code><br> |
| 1121 |
* @param hStatus |
| 1122 |
* @param hMolecule |
| 1123 |
* @param vAtom |
| 1124 |
* @return |
| 1125 |
*/ |
| 1126 |
static native String IXA_MOL_GetAtomElement(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1127 |
/** |
| 1128 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomAtomicNumber(Pointer, Pointer, Pointer)</code><br> |
| 1129 |
* @param hStatus |
| 1130 |
* @param hMolecule |
| 1131 |
* @param vAtom |
| 1132 |
* @return |
| 1133 |
*/ |
| 1134 |
static native int IXA_MOL_GetAtomAtomicNumber(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1135 |
/** |
| 1136 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomMass(Pointer, Pointer, Pointer)</code><br> |
| 1137 |
* @param hStatus |
| 1138 |
* @param hMolecule |
| 1139 |
* @param vAtom |
| 1140 |
* @return |
| 1141 |
*/ |
| 1142 |
static native int IXA_MOL_GetAtomMass(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1143 |
/** |
| 1144 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomCharge(Pointer, Pointer, Pointer)</code><br> |
| 1145 |
* @param hStatus |
| 1146 |
* @param hMolecule |
| 1147 |
* @param vAtom |
| 1148 |
* @return |
| 1149 |
*/ |
| 1150 |
static native int IXA_MOL_GetAtomCharge(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1151 |
/** |
| 1152 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomRadical(Pointer, Pointer, Pointer)</code><br> |
| 1153 |
* @param hStatus |
| 1154 |
* @param hMolecule |
| 1155 |
* @param vAtom |
| 1156 |
* @return |
| 1157 |
*/ |
| 1158 |
static native int IXA_MOL_GetAtomRadical(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1159 |
/** |
| 1160 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomHydrogens(Pointer, Pointer, Pointer, int)</code><br> |
| 1161 |
* @param hStatus |
| 1162 |
* @param hMolecule |
| 1163 |
* @param vAtom |
| 1164 |
* @param vHydrogenMassNumber |
| 1165 |
* @return |
| 1166 |
*/ |
| 1167 |
static native int IXA_MOL_GetAtomHydrogens(Pointer hStatus, Pointer hMolecule, Pointer vAtom, int vHydrogenMassNumber); |
| 1168 |
/** |
| 1169 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomX(Pointer, Pointer, Pointer)</code><br> |
| 1170 |
* @param hStatus |
| 1171 |
* @param hMolecule |
| 1172 |
* @param vAtom |
| 1173 |
* @return |
| 1174 |
*/ |
| 1175 |
static native double IXA_MOL_GetAtomX(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1176 |
/** |
| 1177 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomY(Pointer, Pointer, Pointer)</code><br> |
| 1178 |
* @param hStatus |
| 1179 |
* @param hMolecule |
| 1180 |
* @param vAtom |
| 1181 |
* @return |
| 1182 |
*/ |
| 1183 |
static native double IXA_MOL_GetAtomY(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1184 |
/** |
| 1185 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetAtomZ(Pointer, Pointer, Pointer)</code><br> |
| 1186 |
* @param hStatus |
| 1187 |
* @param hMolecule |
| 1188 |
* @param vAtom |
| 1189 |
* @return |
| 1190 |
*/ |
| 1191 |
static native double IXA_MOL_GetAtomZ(Pointer hStatus, Pointer hMolecule, Pointer vAtom); |
| 1192 |
|
| 1193 |
/* |
| 1194 |
* Functions to Return Information About Bonds<br> |
| 1195 |
*/ |
| 1196 |
/** |
| 1197 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetBondType(Pointer, Pointer, Pointer)</code><br> |
| 1198 |
* @param hStatus |
| 1199 |
* @param hMolecule |
| 1200 |
* @param vBond |
| 1201 |
* @return |
| 1202 |
*/ |
| 1203 |
static native int IXA_MOL_GetBondType(Pointer hStatus, Pointer hMolecule, Pointer vBond); |
| 1204 |
/** |
| 1205 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetBondWedge(Pointer, Pointer, Pointer, Pointer)</code><br> |
| 1206 |
* @param hStatus |
| 1207 |
* @param hMolecule |
| 1208 |
* @param vBond |
| 1209 |
* @param vRefAtom |
| 1210 |
* @return |
| 1211 |
*/ |
| 1212 |
static native int IXA_MOL_GetBondWedge(Pointer hStatus, Pointer hMolecule, Pointer vBond, Pointer vRefAtom); |
| 1213 |
/** |
| 1214 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetDblBondConfig(Pointer, Pointer, Pointer)</code><br> |
| 1215 |
* @param hStatus |
| 1216 |
* @param hMolecule |
| 1217 |
* @param vBond |
| 1218 |
* @return |
| 1219 |
*/ |
| 1220 |
static native int IXA_MOL_GetDblBondConfig(Pointer hStatus, Pointer hMolecule, Pointer vBond); |
| 1221 |
|
| 1222 |
/* |
| 1223 |
* Functions to return Information About Stereodescriptors<br> |
| 1224 |
*/ |
| 1225 |
/** |
| 1226 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetNumStereos(Pointer, Pointer)</code><br> |
| 1227 |
* @param hStatus |
| 1228 |
* @param hMolecule |
| 1229 |
* @return |
| 1230 |
*/ |
| 1231 |
static native int IXA_MOL_GetNumStereos(Pointer hStatus, Pointer hMolecule); |
| 1232 |
/** |
| 1233 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetStereoId(Pointer, Pointer, int)</code><br> |
| 1234 |
* @param hStatus |
| 1235 |
* @param hMolecule |
| 1236 |
* @param vStereoIndex |
| 1237 |
* @return |
| 1238 |
*/ |
| 1239 |
static native Pointer IXA_MOL_GetStereoId(Pointer hStatus, Pointer hMolecule, int vStereoIndex); |
| 1240 |
/** |
| 1241 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetStereoIndex(Pointer, Pointer, Pointer)</code><br> |
| 1242 |
* @param hStatus |
| 1243 |
* @param hMolecule |
| 1244 |
* @param vStereo |
| 1245 |
* @return |
| 1246 |
*/ |
| 1247 |
static native int IXA_MOL_GetStereoIndex(Pointer hStatus, Pointer hMolecule, Pointer vStereo); |
| 1248 |
/** |
| 1249 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetStereoTopology(Pointer, Pointer, Pointer)</code><br> |
| 1250 |
* @param hStatus |
| 1251 |
* @param hMolecule |
| 1252 |
* @param vStereo |
| 1253 |
* @return |
| 1254 |
*/ |
| 1255 |
static native int IXA_MOL_GetStereoTopology(Pointer hStatus, Pointer hMolecule, Pointer vStereo); |
| 1256 |
/** |
| 1257 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetStereoCentralAtom(Pointer, Pointer, Pointer)</code><br> |
| 1258 |
* @param hStatus |
| 1259 |
* @param hMolecule |
| 1260 |
* @param vStereo |
| 1261 |
* @return |
| 1262 |
*/ |
| 1263 |
static native Pointer IXA_MOL_GetStereoCentralAtom(Pointer hStatus, Pointer hMolecule, Pointer vStereo); |
| 1264 |
/** |
| 1265 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetStereoCentralBond(Pointer, Pointer, Pointer)</code><br> |
| 1266 |
* @param hStatus |
| 1267 |
* @param hMolecule |
| 1268 |
* @param vStereo |
| 1269 |
* @return |
| 1270 |
*/ |
| 1271 |
static native Pointer IXA_MOL_GetStereoCentralBond(Pointer hStatus, Pointer hMolecule, Pointer vStereo); |
| 1272 |
/** |
| 1273 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetStereoNumVertices(Pointer, Pointer, Pointer)</code><br> |
| 1274 |
* @param hStatus |
| 1275 |
* @param hMolecule |
| 1276 |
* @param vStereo |
| 1277 |
* @return |
| 1278 |
*/ |
| 1279 |
static native int IXA_MOL_GetStereoNumVertices(Pointer hStatus, Pointer hMolecule, Pointer vStereo); |
| 1280 |
/** |
| 1281 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetStereoVertex(Pointer, Pointer, Pointer, int)</code><br> |
| 1282 |
* @param hStatus |
| 1283 |
* @param hMolecule |
| 1284 |
* @param vStereo |
| 1285 |
* @param vVertexIndex |
| 1286 |
* @return |
| 1287 |
*/ |
| 1288 |
static native Pointer IXA_MOL_GetStereoVertex(Pointer hStatus, Pointer hMolecule, Pointer vStereo, int vVertexIndex); |
| 1289 |
/** |
| 1290 |
* Original signature : <code>INCHI_DECL IXA_MOL_GetStereoParity(Pointer, Pointer, Pointer)</code><br> |
| 1291 |
* @param hStatus |
| 1292 |
* @param hMolecule |
| 1293 |
* @param vStereo |
| 1294 |
* @return |
| 1295 |
*/ |
| 1296 |
static native int IXA_MOL_GetStereoParity(Pointer hStatus, Pointer hMolecule, Pointer vStereo); |
| 1297 |
|
| 1298 |
/* |
| 1299 |
* Functions for Generating InChIs<br> |
| 1300 |
*/ |
| 1301 |
/** |
| 1302 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_Create(Pointer)</code><br> |
| 1303 |
* @param hStatus |
| 1304 |
* @return |
| 1305 |
*/ |
| 1306 |
static native Pointer IXA_INCHIBUILDER_Create(Pointer hStatus); |
| 1307 |
/** |
| 1308 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_SetMolecule(Pointer, Pointer, Pointer)</code><br> |
| 1309 |
* @param hStatus |
| 1310 |
* @param hInChIBuilder |
| 1311 |
* @param hMolecule |
| 1312 |
*/ |
| 1313 |
static native void IXA_INCHIBUILDER_SetMolecule(Pointer hStatus, Pointer hInChIBuilder, Pointer hMolecule); |
| 1314 |
/** |
| 1315 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_GetInChI(Pointer, Pointer)</code><br> |
| 1316 |
* @param hStatus |
| 1317 |
* @param hInChIBuilder |
| 1318 |
* @return |
| 1319 |
*/ |
| 1320 |
static native String IXA_INCHIBUILDER_GetInChI(Pointer hStatus, Pointer hInChIBuilder); |
| 1321 |
/** |
| 1322 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_GetInChIEx(Pointer, Pointer)</code><br> |
| 1323 |
* @param hStatus |
| 1324 |
* @param hBuilder |
| 1325 |
* @return |
| 1326 |
*/ |
| 1327 |
static native String IXA_INCHIBUILDER_GetInChIEx(Pointer hStatus, Pointer hBuilder); |
| 1328 |
/** |
| 1329 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_GetAuxInfo(Pointer, Pointer)</code><br> |
| 1330 |
* @param hStatus |
| 1331 |
* @param hInChIBuilder |
| 1332 |
* @return |
| 1333 |
*/ |
| 1334 |
static native String IXA_INCHIBUILDER_GetAuxInfo(Pointer hStatus, Pointer hInChIBuilder); |
| 1335 |
/** |
| 1336 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_GetLog(Pointer, Pointer)</code><br> |
| 1337 |
* @param hStatus |
| 1338 |
* @param hInChIBuilder |
| 1339 |
* @return |
| 1340 |
*/ |
| 1341 |
static native String IXA_INCHIBUILDER_GetLog(Pointer hStatus, Pointer hInChIBuilder); |
| 1342 |
/** |
| 1343 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_Destroy(Pointer, Pointer)</code><br> |
| 1344 |
* @param hStatus |
| 1345 |
* @param hInChIBuilder |
| 1346 |
*/ |
| 1347 |
static native void IXA_INCHIBUILDER_Destroy(Pointer hStatus, Pointer hInChIBuilder); |
| 1348 |
|
| 1349 |
/* |
| 1350 |
* Functions for Specifying InChI Generation Options<br> |
| 1351 |
*/ |
| 1352 |
/** |
| 1353 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_SetOption(Pointer, Pointer, IXA_INCHIBUILDER_OPTION, IXA_BOOL)</code><br> |
| 1354 |
* @param hStatus |
| 1355 |
* @param hInChIBuilder |
| 1356 |
* @param vOption |
| 1357 |
* @param vValue |
| 1358 |
*/ |
| 1359 |
static native void IXA_INCHIBUILDER_SetOption(Pointer hStatus, Pointer hInChIBuilder, int vOption, boolean vValue); |
| 1360 |
/** |
| 1361 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_SetOption_Stereo(Pointer, Pointer, IXA_INCHIBUILDER_STEREOOPTION)</code><br> |
| 1362 |
* @param hStatus |
| 1363 |
* @param hInChIBuilder |
| 1364 |
* @param vValue |
| 1365 |
*/ |
| 1366 |
static native void IXA_INCHIBUILDER_SetOption_Stereo(Pointer hStatus, Pointer hInChIBuilder, int vValue); |
| 1367 |
/** |
| 1368 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_SetOption_Timeout(Pointer, Pointer, int)</code><br> |
| 1369 |
* @param hStatus |
| 1370 |
* @param hInChIBuilder |
| 1371 |
* @param vValue |
| 1372 |
*/ |
| 1373 |
static native void IXA_INCHIBUILDER_SetOption_Timeout(Pointer hStatus, Pointer hInChIBuilder, int vValue); |
| 1374 |
/** |
| 1375 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_SetOption_Timeout_MilliSeconds(IXA_STATUS_HANDLE, IXA_INCHIBUILDER_HANDLE, long)</code><br> |
| 1376 |
* @param hStatus |
| 1377 |
* @param hInChIBuilder |
| 1378 |
* @param vValue |
| 1379 |
*/ |
| 1380 |
static native void IXA_INCHIBUILDER_SetOption_Timeout_MilliSeconds(Pointer hStatus, Pointer hInChIBuilder, long vValue); |
| 1381 |
/** |
| 1382 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_CheckOption(IXA_STATUS_HANDLE, IXA_INCHIBUILDER_HANDLE, IXA_INCHIBUILDER_OPTION)</code><br> |
| 1383 |
* @param hStatus |
| 1384 |
* @param hInChIBuilder |
| 1385 |
* @param vOption |
| 1386 |
* @return |
| 1387 |
*/ |
| 1388 |
static native boolean IXA_INCHIBUILDER_CheckOption(Pointer hStatus, Pointer hInChIBuilder, int vOption); |
| 1389 |
/** |
| 1390 |
* Original signature : <code>INCHI_DECL IXA_INCHIBUILDER_CheckOption_Stereo(IXA_STATUS_HANDLE, IXA_INCHIBUILDER_HANDLE, IXA_INCHIBUILDER_STEREOOPTION)</code><br> |
| 1391 |
* @param hStatus |
| 1392 |
* @param hInChIBuilder |
| 1393 |
* @param vValue |
| 1394 |
* @return |
| 1395 |
*/ |
| 1396 |
static native boolean IXA_INCHIBUILDER_CheckOption_Stereo(Pointer hStatus, Pointer hInChIBuilder, int vValue); |
| 1397 |
//FIXME IXA_INCHIBUILDER_GetOption_Timeout_MilliSeconds is missing from Linux build |
| 1398 |
/** |
| 1399 |
* Original signature : <code>long INCHI_DECL IXA_INCHIBUILDER_GetOption_Timeout_MilliSeconds(IXA_STATUS_HANDLE, IXA_INCHIBUILDER_HANDLE)</code><br> |
| 1400 |
* @param hStatus |
| 1401 |
* @param hInChIBuilder |
| 1402 |
* @return |
| 1403 |
*/ |
| 1404 |
//static native long IXA_INCHIBUILDER_GetOption_Timeout_MilliSeconds(Pointer hStatus, Pointer hInChIBuilder); |
| 1405 |
|
| 1406 |
/* |
| 1407 |
* Functions for Generating InChI Keys<br> |
| 1408 |
*/ |
| 1409 |
/** |
| 1410 |
* Original signature : <code>INCHI_DECL IXA_INCHIKEYBUILDER_Create(Pointer)</code><br> |
| 1411 |
* @param hStatus |
| 1412 |
* @return |
| 1413 |
*/ |
| 1414 |
static native Pointer IXA_INCHIKEYBUILDER_Create(Pointer hStatus); |
| 1415 |
/** |
| 1416 |
* Original signature : <code>INCHI_DECL IXA_INCHIKEYBUILDER_SetInChI(Pointer, Pointer, const char*)</code><br> |
| 1417 |
* @param hStatus |
| 1418 |
* @param hInChIKeyBuilder |
| 1419 |
* @param pInChI |
| 1420 |
*/ |
| 1421 |
static native void IXA_INCHIKEYBUILDER_SetInChI(Pointer hStatus, Pointer hInChIKeyBuilder, byte[] pInChI); |
| 1422 |
/** |
| 1423 |
* Original signature : <code>INCHI_DECL IXA_INCHIKEYBUILDER_GetInChIKey(Pointer, Pointer)</code><br> |
| 1424 |
* @param hStatus |
| 1425 |
* @param hInChIKeyBuilder |
| 1426 |
* @return |
| 1427 |
*/ |
| 1428 |
static native String IXA_INCHIKEYBUILDER_GetInChIKey(Pointer hStatus, Pointer hInChIKeyBuilder); |
| 1429 |
/** |
| 1430 |
* Original signature : <code>INCHI_DECL IXA_INCHIKEYBUILDER_Destroy(Pointer, Pointer)</code><br> |
| 1431 |
* @param hStatus |
| 1432 |
* @param hInChIKeyBuilder |
| 1433 |
*/ |
| 1434 |
static native void IXA_INCHIKEYBUILDER_Destroy(Pointer hStatus, Pointer hInChIKeyBuilder); |
| 1435 |
|
| 1436 |
} |