Generated on Fri Oct 6 16:26:43 2006 for Gecode/J by doxygen 1.4.7

ExecStatus.java

Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.29
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package org.gecode;
00010 
00023 public enum ExecStatus {
00024   ES_FAILED(-1),
00025   ES_NOFIX(0),
00026   ES_OK(0),
00027   ES_FIX(1),
00028   ES_SUBSUMED(2);
00029 
00030   public final int swigValue() {
00031     return swigValue;
00032   }
00033 
00034   public static ExecStatus swigToEnum(int swigValue) {
00035     ExecStatus[] swigValues = ExecStatus.class.getEnumConstants();
00036     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00037       return swigValues[swigValue];
00038     for (ExecStatus swigEnum : swigValues)
00039       if (swigEnum.swigValue == swigValue)
00040         return swigEnum;
00041     throw new IllegalArgumentException("No enum " + ExecStatus.class + " with value " + swigValue);
00042   }
00043 
00044   private ExecStatus() {
00045     this.swigValue = SwigNext.next++;
00046   }
00047 
00048   private ExecStatus(int swigValue) {
00049     this.swigValue = swigValue;
00050     SwigNext.next = swigValue+1;
00051   }
00052 
00053   private ExecStatus(ExecStatus swigEnum) {
00054     this.swigValue = swigEnum.swigValue;
00055     SwigNext.next = this.swigValue+1;
00056   }
00057 
00058   private final int swigValue;
00059 
00060   private static class SwigNext {
00061     private static int next = 0;
00062   }
00063 }
00064