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

AvalSel.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 
00020 public enum AvalSel {
00021   AVAL_MIN,
00022   AVAL_MED,
00023   AVAL_MAX;
00024 
00025   public final int swigValue() {
00026     return swigValue;
00027   }
00028 
00029   public static AvalSel swigToEnum(int swigValue) {
00030     AvalSel[] swigValues = AvalSel.class.getEnumConstants();
00031     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00032       return swigValues[swigValue];
00033     for (AvalSel swigEnum : swigValues)
00034       if (swigEnum.swigValue == swigValue)
00035         return swigEnum;
00036     throw new IllegalArgumentException("No enum " + AvalSel.class + " with value " + swigValue);
00037   }
00038 
00039   private AvalSel() {
00040     this.swigValue = SwigNext.next++;
00041   }
00042 
00043   private AvalSel(int swigValue) {
00044     this.swigValue = swigValue;
00045     SwigNext.next = swigValue+1;
00046   }
00047 
00048   private AvalSel(AvalSel swigEnum) {
00049     this.swigValue = swigEnum.swigValue;
00050     SwigNext.next = this.swigValue+1;
00051   }
00052 
00053   private final int swigValue;
00054 
00055   private static class SwigNext {
00056     private static int next = 0;
00057   }
00058 }
00059