Back to index

nordugrid-arc-nox  1.1.0~rc6
DataSpeed.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 DataSpeed {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected DataSpeed(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(DataSpeed obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   protected void finalize() {
00025     delete();
00026   }
00027 
00028   public synchronized void delete() {
00029     if(swigCPtr != 0 && swigCMemOwn) {
00030       swigCMemOwn = false;
00031       arcJNI.delete_DataSpeed(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public DataSpeed(SWIGTYPE_p_time_t base) {
00037     this(arcJNI.new_DataSpeed__SWIG_0(SWIGTYPE_p_time_t.getCPtr(base)), true);
00038   }
00039 
00040   public DataSpeed() {
00041     this(arcJNI.new_DataSpeed__SWIG_1(), true);
00042   }
00043 
00044   public DataSpeed(java.math.BigInteger min_speed, SWIGTYPE_p_time_t min_speed_time, java.math.BigInteger min_average_speed, SWIGTYPE_p_time_t max_inactivity_time, SWIGTYPE_p_time_t base) {
00045     this(arcJNI.new_DataSpeed__SWIG_2(min_speed, SWIGTYPE_p_time_t.getCPtr(min_speed_time), min_average_speed, SWIGTYPE_p_time_t.getCPtr(max_inactivity_time), SWIGTYPE_p_time_t.getCPtr(base)), true);
00046   }
00047 
00048   public DataSpeed(java.math.BigInteger min_speed, SWIGTYPE_p_time_t min_speed_time, java.math.BigInteger min_average_speed, SWIGTYPE_p_time_t max_inactivity_time) {
00049     this(arcJNI.new_DataSpeed__SWIG_3(min_speed, SWIGTYPE_p_time_t.getCPtr(min_speed_time), min_average_speed, SWIGTYPE_p_time_t.getCPtr(max_inactivity_time)), true);
00050   }
00051 
00052   public void verbose(boolean val) {
00053     arcJNI.DataSpeed_verbose__SWIG_0(swigCPtr, this, val);
00054   }
00055 
00056   public void verbose(String prefix) {
00057     arcJNI.DataSpeed_verbose__SWIG_1(swigCPtr, this, prefix);
00058   }
00059 
00060   public boolean verbose() {
00061     return arcJNI.DataSpeed_verbose__SWIG_2(swigCPtr, this);
00062   }
00063 
00064   public void set_min_speed(java.math.BigInteger min_speed, SWIGTYPE_p_time_t min_speed_time) {
00065     arcJNI.DataSpeed_set_min_speed(swigCPtr, this, min_speed, SWIGTYPE_p_time_t.getCPtr(min_speed_time));
00066   }
00067 
00068   public void set_min_average_speed(java.math.BigInteger min_average_speed) {
00069     arcJNI.DataSpeed_set_min_average_speed(swigCPtr, this, min_average_speed);
00070   }
00071 
00072   public void set_max_inactivity_time(SWIGTYPE_p_time_t max_inactivity_time) {
00073     arcJNI.DataSpeed_set_max_inactivity_time(swigCPtr, this, SWIGTYPE_p_time_t.getCPtr(max_inactivity_time));
00074   }
00075 
00076   public SWIGTYPE_p_time_t get_max_inactivity_time() {
00077     return new SWIGTYPE_p_time_t(arcJNI.DataSpeed_get_max_inactivity_time(swigCPtr, this), true);
00078   }
00079 
00080   public void set_base(SWIGTYPE_p_time_t base_) {
00081     arcJNI.DataSpeed_set_base__SWIG_0(swigCPtr, this, SWIGTYPE_p_time_t.getCPtr(base_));
00082   }
00083 
00084   public void set_base() {
00085     arcJNI.DataSpeed_set_base__SWIG_1(swigCPtr, this);
00086   }
00087 
00088   public void set_max_data(java.math.BigInteger max) {
00089     arcJNI.DataSpeed_set_max_data__SWIG_0(swigCPtr, this, max);
00090   }
00091 
00092   public void set_max_data() {
00093     arcJNI.DataSpeed_set_max_data__SWIG_1(swigCPtr, this);
00094   }
00095 
00096   public void set_progress_indicator(SWIGTYPE_p_f_p_FILE_p_q_const__char_unsigned_int_unsigned_long_long_unsigned_long_long_double_double__void func) {
00097     arcJNI.DataSpeed_set_progress_indicator__SWIG_0(swigCPtr, this, SWIGTYPE_p_f_p_FILE_p_q_const__char_unsigned_int_unsigned_long_long_unsigned_long_long_double_double__void.getCPtr(func));
00098   }
00099 
00100   public void set_progress_indicator() {
00101     arcJNI.DataSpeed_set_progress_indicator__SWIG_1(swigCPtr, this);
00102   }
00103 
00104   public void reset() {
00105     arcJNI.DataSpeed_reset(swigCPtr, this);
00106   }
00107 
00108   public boolean transfer(java.math.BigInteger n) {
00109     return arcJNI.DataSpeed_transfer__SWIG_0(swigCPtr, this, n);
00110   }
00111 
00112   public boolean transfer() {
00113     return arcJNI.DataSpeed_transfer__SWIG_1(swigCPtr, this);
00114   }
00115 
00116   public void hold(boolean disable) {
00117     arcJNI.DataSpeed_hold(swigCPtr, this, disable);
00118   }
00119 
00120   public boolean min_speed_failure() {
00121     return arcJNI.DataSpeed_min_speed_failure(swigCPtr, this);
00122   }
00123 
00124   public boolean min_average_speed_failure() {
00125     return arcJNI.DataSpeed_min_average_speed_failure(swigCPtr, this);
00126   }
00127 
00128   public boolean max_inactivity_time_failure() {
00129     return arcJNI.DataSpeed_max_inactivity_time_failure(swigCPtr, this);
00130   }
00131 
00132   public java.math.BigInteger transfered_size() {
00133     return arcJNI.DataSpeed_transfered_size(swigCPtr, this);
00134   }
00135 
00136 }