CONOPT
Loading...
Searching...
No Matches
ObjectiveElement.java
Go to the documentation of this file.
1
4
5/* ----------------------------------------------------------------------------
6 * This file was automatically generated by SWIG (https://www.swig.org).
7 * Version 4.3.1
8 *
9 * Do not make changes to this file unless you know what you are doing - modify
10 * the SWIG interface file instead.
11 * ----------------------------------------------------------------------------- */
12
13package jconopt;
14
26public final class ObjectiveElement {
30 public final static ObjectiveElement Variable = new ObjectiveElement("Variable", jconoptJNI.ObjectiveElement_Variable_get());
34 public final static ObjectiveElement Constraint = new ObjectiveElement("Constraint");
35
36 public final int swigValue() {
37 return swigValue;
38 }
39
40 public String toString() {
41 return swigName;
42 }
43
44 public static ObjectiveElement swigToEnum(int swigValue) {
45 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
46 return swigValues[swigValue];
47 for (int i = 0; i < swigValues.length; i++)
48 if (swigValues[i].swigValue == swigValue)
49 return swigValues[i];
50 throw new IllegalArgumentException("No enum " + ObjectiveElement.class + " with value " + swigValue);
51 }
52
53 private ObjectiveElement(String swigName) {
54 this.swigName = swigName;
55 this.swigValue = swigNext++;
56 }
57
58 private ObjectiveElement(String swigName, int swigValue) {
59 this.swigName = swigName;
60 this.swigValue = swigValue;
61 swigNext = swigValue+1;
62 }
63
64 private ObjectiveElement(String swigName, ObjectiveElement swigEnum) {
65 this.swigName = swigName;
66 this.swigValue = swigEnum.swigValue;
67 swigNext = this.swigValue+1;
68 }
69
70 private static ObjectiveElement[] swigValues = { Variable, Constraint };
71 private static int swigNext = 0;
72 private final int swigValue;
73 private final String swigName;
74}
75
static final ObjectiveElement Constraint
static ObjectiveElement swigToEnum(int swigValue)
static final ObjectiveElement Variable
static final native int ObjectiveElement_Variable_get()