SetPropCond.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package org.gecode;
00010
00043 public enum SetPropCond implements PropCond {
00044 PC_SET_VAL(0),
00045 PC_SET_CARD(1),
00046 PC_SET_CGLB(2),
00047 PC_SET_CLUB(3),
00048 PC_SET_ANY(4);
00049
00050 public final int swigValue() {
00051 return swigValue;
00052 }
00053
00054 public static SetPropCond swigToEnum(int swigValue) {
00055 SetPropCond[] swigValues = SetPropCond.class.getEnumConstants();
00056 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00057 return swigValues[swigValue];
00058 for (SetPropCond swigEnum : swigValues)
00059 if (swigEnum.swigValue == swigValue)
00060 return swigEnum;
00061 throw new IllegalArgumentException("No enum " + SetPropCond.class + " with value " + swigValue);
00062 }
00063
00064 private SetPropCond() {
00065 this.swigValue = SwigNext.next++;
00066 }
00067
00068 private SetPropCond(int swigValue) {
00069 this.swigValue = swigValue;
00070 SwigNext.next = swigValue+1;
00071 }
00072
00073 private SetPropCond(SetPropCond swigEnum) {
00074 this.swigValue = swigEnum.swigValue;
00075 SwigNext.next = this.swigValue+1;
00076 }
00077
00078 private final int swigValue;
00079
00080 private static class SwigNext {
00081 private static int next = 0;
00082 }
00083
00084 public int toInteger() {
00085 return swigValue();
00086 }
00087 }
00088