Back to index

nordugrid-arc-nox  1.1.0~rc6
ApplicationEnvironment.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 class ApplicationEnvironment extends Software {
00012   private long swigCPtr;
00013 
00014   protected ApplicationEnvironment(long cPtr, boolean cMemoryOwn) {
00015     super(arcJNI.SWIGApplicationEnvironmentUpcast(cPtr), cMemoryOwn);
00016     swigCPtr = cPtr;
00017   }
00018 
00019   protected static long getCPtr(ApplicationEnvironment obj) {
00020     return (obj == null) ? 0 : obj.swigCPtr;
00021   }
00022 
00023   public synchronized void delete() {
00024     if(swigCPtr != 0 && swigCMemOwn) {
00025       swigCMemOwn = false;
00026       throw new UnsupportedOperationException("C++ destructor does not have public access");
00027     }
00028     swigCPtr = 0;
00029     super.delete();
00030   }
00031 
00032   public ApplicationEnvironment() {
00033     this(arcJNI.new_ApplicationEnvironment__SWIG_0(), true);
00034   }
00035 
00036   public ApplicationEnvironment(String Name) {
00037     this(arcJNI.new_ApplicationEnvironment__SWIG_1(Name), true);
00038   }
00039 
00040   public ApplicationEnvironment(String Name, String Version) {
00041     this(arcJNI.new_ApplicationEnvironment__SWIG_2(Name, Version), true);
00042   }
00043 
00044   public void setState(String value) {
00045     arcJNI.ApplicationEnvironment_State_set(swigCPtr, this, value);
00046   }
00047 
00048   public String getState() {
00049     return arcJNI.ApplicationEnvironment_State_get(swigCPtr, this);
00050   }
00051 
00052   public void setFreeSlots(int value) {
00053     arcJNI.ApplicationEnvironment_FreeSlots_set(swigCPtr, this, value);
00054   }
00055 
00056   public int getFreeSlots() {
00057     return arcJNI.ApplicationEnvironment_FreeSlots_get(swigCPtr, this);
00058   }
00059 
00060   public void setFreeJobs(int value) {
00061     arcJNI.ApplicationEnvironment_FreeJobs_set(swigCPtr, this, value);
00062   }
00063 
00064   public int getFreeJobs() {
00065     return arcJNI.ApplicationEnvironment_FreeJobs_get(swigCPtr, this);
00066   }
00067 
00068   public void setFreeUserSeats(int value) {
00069     arcJNI.ApplicationEnvironment_FreeUserSeats_set(swigCPtr, this, value);
00070   }
00071 
00072   public int getFreeUserSeats() {
00073     return arcJNI.ApplicationEnvironment_FreeUserSeats_get(swigCPtr, this);
00074   }
00075 
00076 }