Debian Codegraph @

jna-inchi-api/src/main/java/io/github/dan2097/jnainchi/InchiInputFromInchiOutput.java

raw
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;
19
20 public class InchiInputFromInchiOutput {
21
22 private final InchiInput inchiInput;
23 private final String message;
24 private final String log;
25 private final InchiStatus status;
26 private final long[][] warningFlags;
27
28 InchiInputFromInchiOutput(InchiInput inchiInput, String message, String log, InchiStatus status, long[][] warningFlags) {
29 this.inchiInput = inchiInput;
30 this.message = message;
31 this.log = log;
32 this.status = status;
33 this.warningFlags = warningFlags;
34 }
35
36 public InchiInput getInchiInput() {
37 return inchiInput;
38 }
39
40 public String getMessage() {
41 return message;
42 }
43
44 public String getLog() {
45 return log;
46 }
47
48 public InchiStatus getStatus() {
49 return status;
50 }
51
52 /**
53 * see INCHIDIFF in inchicmp.h.
54 *
55 * [x][y]:
56 * x=0 =&gt; Reconnected if present in InChI otherwise Disconnected/Normal
57 * x=1 =&gt; Disconnected layer if Reconnected layer is present
58 * y=1 =&gt; Main layer or Mobile-H
59 * y=0 =&gt; Fixed-H layer
60 * @return
61 */
62 public long[][] getWarningFlags() {
63 return warningFlags;
64 }
65
66 }