CONOPT
Loading...
Searching...
No Matches
EvaluationMode.java
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.3.1
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
9package jconopt;
10
17public final class EvaluationMode {
21 public final static EvaluationMode TermsOnly = new EvaluationMode("TermsOnly", jconoptJNI.EvaluationMode_TermsOnly_get());
25 public final static EvaluationMode JacobianOnly = new EvaluationMode("JacobianOnly");
29 public final static EvaluationMode Both = new EvaluationMode("Both");
30
31 public final int swigValue() {
32 return swigValue;
33 }
34
35 public String toString() {
36 return swigName;
37 }
38
39 public static EvaluationMode swigToEnum(int swigValue) {
40 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
41 return swigValues[swigValue];
42 for (int i = 0; i < swigValues.length; i++)
43 if (swigValues[i].swigValue == swigValue)
44 return swigValues[i];
45 throw new IllegalArgumentException("No enum " + EvaluationMode.class + " with value " + swigValue);
46 }
47
48 private EvaluationMode(String swigName) {
49 this.swigName = swigName;
50 this.swigValue = swigNext++;
51 }
52
53 private EvaluationMode(String swigName, int swigValue) {
54 this.swigName = swigName;
55 this.swigValue = swigValue;
56 swigNext = swigValue+1;
57 }
58
59 private EvaluationMode(String swigName, EvaluationMode swigEnum) {
60 this.swigName = swigName;
61 this.swigValue = swigEnum.swigValue;
62 swigNext = this.swigValue+1;
63 }
64
65 private static EvaluationMode[] swigValues = { TermsOnly, JacobianOnly, Both };
66 private static int swigNext = 0;
67 private final int swigValue;
68 private final String swigName;
69}
70
static final EvaluationMode Both
static final EvaluationMode TermsOnly
static EvaluationMode swigToEnum(int swigValue)
static final EvaluationMode JacobianOnly
static final native int EvaluationMode_TermsOnly_get()