Back to index

nordugrid-arc-nox  1.1.0~rc6
ResourcesType.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 ResourcesType {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected ResourcesType(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(ResourcesType obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   public synchronized void delete() {
00025     if(swigCPtr != 0 && swigCMemOwn) {
00026       swigCMemOwn = false;
00027       throw new UnsupportedOperationException("C++ destructor does not have public access");
00028     }
00029     swigCPtr = 0;
00030   }
00031 
00032   public ResourcesType() {
00033     this(arcJNI.new_ResourcesType(), true);
00034   }
00035 
00036   public void setOperatingSystem(SoftwareRequirement value) {
00037     arcJNI.ResourcesType_OperatingSystem_set(swigCPtr, this, SoftwareRequirement.getCPtr(value), value);
00038   }
00039 
00040   public SoftwareRequirement getOperatingSystem() {
00041     long cPtr = arcJNI.ResourcesType_OperatingSystem_get(swigCPtr, this);
00042     return (cPtr == 0) ? null : new SoftwareRequirement(cPtr, false);
00043   }
00044 
00045   public void setPlatform(String value) {
00046     arcJNI.ResourcesType_Platform_set(swigCPtr, this, value);
00047   }
00048 
00049   public String getPlatform() {
00050     return arcJNI.ResourcesType_Platform_get(swigCPtr, this);
00051   }
00052 
00053   public void setNetworkInfo(String value) {
00054     arcJNI.ResourcesType_NetworkInfo_set(swigCPtr, this, value);
00055   }
00056 
00057   public String getNetworkInfo() {
00058     return arcJNI.ResourcesType_NetworkInfo_get(swigCPtr, this);
00059   }
00060 
00061   public void setIndividualPhysicalMemory(RangeInt64 value) {
00062     arcJNI.ResourcesType_IndividualPhysicalMemory_set(swigCPtr, this, RangeInt64.getCPtr(value), value);
00063   }
00064 
00065   public RangeInt64 getIndividualPhysicalMemory() {
00066     long cPtr = arcJNI.ResourcesType_IndividualPhysicalMemory_get(swigCPtr, this);
00067     return (cPtr == 0) ? null : new RangeInt64(cPtr, false);
00068   }
00069 
00070   public void setIndividualVirtualMemory(RangeInt64 value) {
00071     arcJNI.ResourcesType_IndividualVirtualMemory_set(swigCPtr, this, RangeInt64.getCPtr(value), value);
00072   }
00073 
00074   public RangeInt64 getIndividualVirtualMemory() {
00075     long cPtr = arcJNI.ResourcesType_IndividualVirtualMemory_get(swigCPtr, this);
00076     return (cPtr == 0) ? null : new RangeInt64(cPtr, false);
00077   }
00078 
00079   public void setDiskSpaceRequirement(DiskSpaceRequirementType value) {
00080     arcJNI.ResourcesType_DiskSpaceRequirement_set(swigCPtr, this, DiskSpaceRequirementType.getCPtr(value), value);
00081   }
00082 
00083   public DiskSpaceRequirementType getDiskSpaceRequirement() {
00084     long cPtr = arcJNI.ResourcesType_DiskSpaceRequirement_get(swigCPtr, this);
00085     return (cPtr == 0) ? null : new DiskSpaceRequirementType(cPtr, false);
00086   }
00087 
00088   public void setSessionLifeTime(Period value) {
00089     arcJNI.ResourcesType_SessionLifeTime_set(swigCPtr, this, Period.getCPtr(value), value);
00090   }
00091 
00092   public Period getSessionLifeTime() {
00093     long cPtr = arcJNI.ResourcesType_SessionLifeTime_get(swigCPtr, this);
00094     return (cPtr == 0) ? null : new Period(cPtr, false);
00095   }
00096 
00097   public void setSessionDirectoryAccess(SessionDirectoryAccessMode value) {
00098     arcJNI.ResourcesType_SessionDirectoryAccess_set(swigCPtr, this, value.swigValue());
00099   }
00100 
00101   public SessionDirectoryAccessMode getSessionDirectoryAccess() {
00102     return SessionDirectoryAccessMode.swigToEnum(arcJNI.ResourcesType_SessionDirectoryAccess_get(swigCPtr, this));
00103   }
00104 
00105   public void setIndividualCPUTime(ScalableTimeInt value) {
00106     arcJNI.ResourcesType_IndividualCPUTime_set(swigCPtr, this, ScalableTimeInt.getCPtr(value), value);
00107   }
00108 
00109   public ScalableTimeInt getIndividualCPUTime() {
00110     long cPtr = arcJNI.ResourcesType_IndividualCPUTime_get(swigCPtr, this);
00111     return (cPtr == 0) ? null : new ScalableTimeInt(cPtr, false);
00112   }
00113 
00114   public void setTotalCPUTime(ScalableTimeInt value) {
00115     arcJNI.ResourcesType_TotalCPUTime_set(swigCPtr, this, ScalableTimeInt.getCPtr(value), value);
00116   }
00117 
00118   public ScalableTimeInt getTotalCPUTime() {
00119     long cPtr = arcJNI.ResourcesType_TotalCPUTime_get(swigCPtr, this);
00120     return (cPtr == 0) ? null : new ScalableTimeInt(cPtr, false);
00121   }
00122 
00123   public void setIndividualWallTime(ScalableTimeInt value) {
00124     arcJNI.ResourcesType_IndividualWallTime_set(swigCPtr, this, ScalableTimeInt.getCPtr(value), value);
00125   }
00126 
00127   public ScalableTimeInt getIndividualWallTime() {
00128     long cPtr = arcJNI.ResourcesType_IndividualWallTime_get(swigCPtr, this);
00129     return (cPtr == 0) ? null : new ScalableTimeInt(cPtr, false);
00130   }
00131 
00132   public void setTotalWallTime(ScalableTimeInt value) {
00133     arcJNI.ResourcesType_TotalWallTime_set(swigCPtr, this, ScalableTimeInt.getCPtr(value), value);
00134   }
00135 
00136   public ScalableTimeInt getTotalWallTime() {
00137     long cPtr = arcJNI.ResourcesType_TotalWallTime_get(swigCPtr, this);
00138     return (cPtr == 0) ? null : new ScalableTimeInt(cPtr, false);
00139   }
00140 
00141   public void setNodeAccess(NodeAccessType value) {
00142     arcJNI.ResourcesType_NodeAccess_set(swigCPtr, this, value.swigValue());
00143   }
00144 
00145   public NodeAccessType getNodeAccess() {
00146     return NodeAccessType.swigToEnum(arcJNI.ResourcesType_NodeAccess_get(swigCPtr, this));
00147   }
00148 
00149   public void setCEType(SoftwareRequirement value) {
00150     arcJNI.ResourcesType_CEType_set(swigCPtr, this, SoftwareRequirement.getCPtr(value), value);
00151   }
00152 
00153   public SoftwareRequirement getCEType() {
00154     long cPtr = arcJNI.ResourcesType_CEType_get(swigCPtr, this);
00155     return (cPtr == 0) ? null : new SoftwareRequirement(cPtr, false);
00156   }
00157 
00158   public void setSlotRequirement(ResourceSlotType value) {
00159     arcJNI.ResourcesType_SlotRequirement_set(swigCPtr, this, ResourceSlotType.getCPtr(value), value);
00160   }
00161 
00162   public ResourceSlotType getSlotRequirement() {
00163     long cPtr = arcJNI.ResourcesType_SlotRequirement_get(swigCPtr, this);
00164     return (cPtr == 0) ? null : new ResourceSlotType(cPtr, false);
00165   }
00166 
00167   public void setCandidateTarget(ResourceTargetTypeList value) {
00168     arcJNI.ResourcesType_CandidateTarget_set(swigCPtr, this, ResourceTargetTypeList.getCPtr(value), value);
00169   }
00170 
00171   public ResourceTargetTypeList getCandidateTarget() {
00172     long cPtr = arcJNI.ResourcesType_CandidateTarget_get(swigCPtr, this);
00173     return (cPtr == 0) ? null : new ResourceTargetTypeList(cPtr, false);
00174   }
00175 
00176   public void setRunTimeEnvironment(SoftwareRequirement value) {
00177     arcJNI.ResourcesType_RunTimeEnvironment_set(swigCPtr, this, SoftwareRequirement.getCPtr(value), value);
00178   }
00179 
00180   public SoftwareRequirement getRunTimeEnvironment() {
00181     long cPtr = arcJNI.ResourcesType_RunTimeEnvironment_get(swigCPtr, this);
00182     return (cPtr == 0) ? null : new SoftwareRequirement(cPtr, false);
00183   }
00184 
00185 }