Back to index

nordugrid-arc-nox  1.1.0~rc6
ComputingActivityType.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.36
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 nordugrid.arc;
00010 
00011 public final class ComputingActivityType {
00012   public final static ComputingActivityType SINGLE = new ComputingActivityType("SINGLE", arcJNI.SINGLE_get());
00013   public final static ComputingActivityType COLLECTIONELEMENT = new ComputingActivityType("COLLECTIONELEMENT", arcJNI.COLLECTIONELEMENT_get());
00014   public final static ComputingActivityType PARALLELELEMENT = new ComputingActivityType("PARALLELELEMENT", arcJNI.PARALLELELEMENT_get());
00015   public final static ComputingActivityType WORKFLOWNODE = new ComputingActivityType("WORKFLOWNODE", arcJNI.WORKFLOWNODE_get());
00016 
00017   public final int swigValue() {
00018     return swigValue;
00019   }
00020 
00021   public String toString() {
00022     return swigName;
00023   }
00024 
00025   public static ComputingActivityType swigToEnum(int swigValue) {
00026     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00027       return swigValues[swigValue];
00028     for (int i = 0; i < swigValues.length; i++)
00029       if (swigValues[i].swigValue == swigValue)
00030         return swigValues[i];
00031     throw new IllegalArgumentException("No enum " + ComputingActivityType.class + " with value " + swigValue);
00032   }
00033 
00034   private ComputingActivityType(String swigName) {
00035     this.swigName = swigName;
00036     this.swigValue = swigNext++;
00037   }
00038 
00039   private ComputingActivityType(String swigName, int swigValue) {
00040     this.swigName = swigName;
00041     this.swigValue = swigValue;
00042     swigNext = swigValue+1;
00043   }
00044 
00045   private ComputingActivityType(String swigName, ComputingActivityType swigEnum) {
00046     this.swigName = swigName;
00047     this.swigValue = swigEnum.swigValue;
00048     swigNext = this.swigValue+1;
00049   }
00050 
00051   private static ComputingActivityType[] swigValues = { SINGLE, COLLECTIONELEMENT, PARALLELELEMENT, WORKFLOWNODE };
00052   private static int swigNext = 0;
00053   private final int swigValue;
00054   private final String swigName;
00055 }
00056