Urbi SDK Remote for Java  2.7.5
UVarImpl.java
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 2.0.4
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 urbi;
00010 
00011 public class UVarImpl {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   public UVarImpl(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   public static long getCPtr(UVarImpl 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) {
00030       if (swigCMemOwn) {
00031         swigCMemOwn = false;
00032         urbiJNI.delete_UVarImpl(swigCPtr);
00033       }
00034       swigCPtr = 0;
00035     }
00036   }
00037 
00038   public void initialize(UVar owner) {
00039     urbiJNI.UVarImpl_initialize(swigCPtr, this, UVar.getCPtr(owner), owner);
00040   }
00041 
00042   public void clean() {
00043     urbiJNI.UVarImpl_clean(swigCPtr, this);
00044   }
00045 
00046   public void setOwned() {
00047     urbiJNI.UVarImpl_setOwned(swigCPtr, this);
00048   }
00049 
00050   public void sync() {
00051     urbiJNI.UVarImpl_sync(swigCPtr, this);
00052   }
00053 
00054   public void request() {
00055     urbiJNI.UVarImpl_request(swigCPtr, this);
00056   }
00057 
00058   public void keepSynchronized() {
00059     urbiJNI.UVarImpl_keepSynchronized(swigCPtr, this);
00060   }
00061 
00062         // Set the UVar value from v. Must deep-copy unless bypass mode is enabled
00063  public  void set(UValue v) {
00064     urbiJNI.UVarImpl_set(swigCPtr, this, UValue.getCPtr(v), v);
00065   }
00066 
00067   public UValue get() {
00068     return new UValue(urbiJNI.UVarImpl_get(swigCPtr, this), false);
00069   }
00070 
00071   public UDataType type() {
00072     return UDataType.swigToEnum(urbiJNI.UVarImpl_type(swigCPtr, this));
00073   }
00074 
00075   public UValue getProp(UProperty prop) {
00076     return new UValue(urbiJNI.UVarImpl_getProp(swigCPtr, this, prop.swigValue()), true);
00077   }
00078 
00079   public void setProp(UProperty prop, UValue v) {
00080     urbiJNI.UVarImpl_setProp(swigCPtr, this, prop.swigValue(), UValue.getCPtr(v), v);
00081   }
00082 
00083   public boolean setBypass(boolean enable) {
00084     return urbiJNI.UVarImpl_setBypass(swigCPtr, this, enable);
00085   }
00086 
00087   public void unnotify() {
00088     urbiJNI.UVarImpl_unnotify(swigCPtr, this);
00089   }
00090 
00091   public void useRTP(boolean enable) {
00092     urbiJNI.UVarImpl_useRTP(swigCPtr, this, enable);
00093   }
00094 
00095   public void setInputPort(boolean enable) {
00096     urbiJNI.UVarImpl_setInputPort(swigCPtr, this, enable);
00097   }
00098 
00099 }