Back to index

nordugrid-arc-nox  1.1.0~rc6
SoftwareRequirement.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 SoftwareRequirement {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected SoftwareRequirement(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(SoftwareRequirement 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 SoftwareRequirement(boolean requiresAll) {
00033     this(arcJNI.new_SoftwareRequirement__SWIG_0(requiresAll), true);
00034   }
00035 
00036   public SoftwareRequirement() {
00037     this(arcJNI.new_SoftwareRequirement__SWIG_1(), true);
00038   }
00039 
00040   public SoftwareRequirement(Software sw, Software.ComparisonOperatorEnum co, boolean requiresAll) {
00041     this(arcJNI.new_SoftwareRequirement__SWIG_2(Software.getCPtr(sw), sw, co.swigValue(), requiresAll), true);
00042   }
00043 
00044   public SoftwareRequirement(Software sw, Software.ComparisonOperatorEnum co) {
00045     this(arcJNI.new_SoftwareRequirement__SWIG_3(Software.getCPtr(sw), sw, co.swigValue()), true);
00046   }
00047 
00048   public SoftwareRequirement(SoftwareRequirement sr) {
00049     this(arcJNI.new_SoftwareRequirement__SWIG_4(SoftwareRequirement.getCPtr(sr), sr), true);
00050   }
00051 
00052   public void add(Software sw, Software.ComparisonOperatorEnum co) {
00053     arcJNI.SoftwareRequirement_add(swigCPtr, this, Software.getCPtr(sw), sw, co.swigValue());
00054   }
00055 
00056   public boolean isRequiringAll() {
00057     return arcJNI.SoftwareRequirement_isRequiringAll(swigCPtr, this);
00058   }
00059 
00060   public void setRequirement(boolean all) {
00061     arcJNI.SoftwareRequirement_setRequirement(swigCPtr, this, all);
00062   }
00063 
00064   public boolean isSatisfied(Software sw) {
00065     return arcJNI.SoftwareRequirement_isSatisfied__SWIG_0(swigCPtr, this, Software.getCPtr(sw), sw);
00066   }
00067 
00068   public boolean isSatisfied(SoftwareList swList) {
00069     return arcJNI.SoftwareRequirement_isSatisfied__SWIG_1(swigCPtr, this, SoftwareList.getCPtr(swList), swList);
00070   }
00071 
00072   public boolean isSatisfied(ApplicationEnvironmentList swList) {
00073     return arcJNI.SoftwareRequirement_isSatisfied__SWIG_2(swigCPtr, this, ApplicationEnvironmentList.getCPtr(swList), swList);
00074   }
00075 
00076   public boolean selectSoftware(Software sw) {
00077     return arcJNI.SoftwareRequirement_selectSoftware__SWIG_0(swigCPtr, this, Software.getCPtr(sw), sw);
00078   }
00079 
00080   public boolean selectSoftware(SoftwareList swList) {
00081     return arcJNI.SoftwareRequirement_selectSoftware__SWIG_1(swigCPtr, this, SoftwareList.getCPtr(swList), swList);
00082   }
00083 
00084   public boolean selectSoftware(ApplicationEnvironmentList swList) {
00085     return arcJNI.SoftwareRequirement_selectSoftware__SWIG_2(swigCPtr, this, ApplicationEnvironmentList.getCPtr(swList), swList);
00086   }
00087 
00088   public boolean isResolved() {
00089     return arcJNI.SoftwareRequirement_isResolved(swigCPtr, this);
00090   }
00091 
00092   public boolean empty() {
00093     return arcJNI.SoftwareRequirement_empty(swigCPtr, this);
00094   }
00095 
00096   public void clear() {
00097     arcJNI.SoftwareRequirement_clear(swigCPtr, this);
00098   }
00099 
00100   public SoftwareList getSoftwareList() {
00101     return new SoftwareList(arcJNI.SoftwareRequirement_getSoftwareList(swigCPtr, this), false);
00102   }
00103 
00104   public SWIGTYPE_p_std__listT_bool_fSoftware__pconst_FfArc__Software_const_RF_t getComparisonOperatorList() {
00105     return new SWIGTYPE_p_std__listT_bool_fSoftware__pconst_FfArc__Software_const_RF_t(arcJNI.SoftwareRequirement_getComparisonOperatorList(swigCPtr, this), false);
00106   }
00107 
00108 }