|
Urbi SDK Remote for Java
2.7.3
|
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 /** UEvent class definition 00011 00012 Each UEvent instance corresponds to one URBI event. The class 00013 provides access to the event properties, and emitting/receiving 00014 events with payload. */ 00015 00016 public class UEvent { 00017 private long swigCPtr; 00018 protected boolean swigCMemOwn; 00019 00020 public UEvent(long cPtr, boolean cMemoryOwn) { 00021 swigCMemOwn = cMemoryOwn; 00022 swigCPtr = cPtr; 00023 } 00024 00025 public static long getCPtr(UEvent obj) { 00026 return (obj == null) ? 0 : obj.swigCPtr; 00027 } 00028 00029 protected void finalize() { 00030 delete(); 00031 } 00032 00033 public synchronized void delete() { 00034 if (swigCPtr != 0) { 00035 if (swigCMemOwn) { 00036 swigCMemOwn = false; 00037 urbiJNI.delete_UEvent(swigCPtr); 00038 } 00039 swigCPtr = 0; 00040 } 00041 } 00042 00043 public void emit(UValue v1, UValue v2, UValue v3, UValue v4, UValue v5, UValue v6, UValue v7) { 00044 emit(new UAutoValue(v1), new UAutoValue(v2), new UAutoValue(v3), 00045 new UAutoValue(v4), new UAutoValue(v5), new UAutoValue(v6), 00046 new UAutoValue(v7)); 00047 } 00048 public void emit(UValue v1, UValue v2, UValue v3, UValue v4, UValue v5, UValue v6) { 00049 emit(new UAutoValue(v1), new UAutoValue(v2), new UAutoValue(v3), 00050 new UAutoValue(v4), new UAutoValue(v5), new UAutoValue(v6)); 00051 } 00052 public void emit(UValue v1, UValue v2, UValue v3, UValue v4, UValue v5) { 00053 emit(new UAutoValue(v1), new UAutoValue(v2), new UAutoValue(v3), 00054 new UAutoValue(v4), new UAutoValue(v5)); 00055 } 00056 public void emit(UValue v1, UValue v2, UValue v3, UValue v4) { 00057 emit(new UAutoValue(v1), new UAutoValue(v2), new UAutoValue(v3), 00058 new UAutoValue(v4)); 00059 } 00060 public void emit(UValue v1, UValue v2, UValue v3) { 00061 emit(new UAutoValue(v1), new UAutoValue(v2), new UAutoValue(v3)); 00062 } 00063 public void emit(UValue v1, UValue v2) { 00064 emit(new UAutoValue(v1), new UAutoValue(v2)); 00065 } 00066 public void emit(UValue v1) { 00067 emit(new UAutoValue(v1)); 00068 } 00069 00070 /// Creates an unbound UEvent. Call init() to bind it. 00071 public UEvent() { 00072 this(urbiJNI.new_UEvent__SWIG_0(), true); 00073 } 00074 00075 /// Creates an unbound UEvent. Call init() to bind it. 00076 public UEvent(String varname, UContextImpl impl) { 00077 this(urbiJNI.new_UEvent__SWIG_1(varname, UContextImpl.getCPtr(impl), impl), true); 00078 } 00079 00080 /// Creates an unbound UEvent. Call init() to bind it. 00081 public UEvent(String varname) { 00082 this(urbiJNI.new_UEvent__SWIG_2(varname), true); 00083 } 00084 00085 /// Creates an unbound UEvent. Call init() to bind it. 00086 public UEvent(String objname, String varname, UContextImpl impl) { 00087 this(urbiJNI.new_UEvent__SWIG_3(objname, varname, UContextImpl.getCPtr(impl), impl), true); 00088 } 00089 00090 /// Creates an unbound UEvent. Call init() to bind it. 00091 public UEvent(String objname, String varname) { 00092 this(urbiJNI.new_UEvent__SWIG_4(objname, varname), true); 00093 } 00094 00095 /// Creates an unbound UEvent. Call init() to bind it. 00096 public UEvent(UObjectCPP obj, String varname, UContextImpl impl) { 00097 this(urbiJNI.new_UEvent__SWIG_5(UObjectCPP.getCPtr(obj), obj, varname, UContextImpl.getCPtr(impl), impl), true); 00098 } 00099 00100 /// Creates an unbound UEvent. Call init() to bind it. 00101 public UEvent(UObjectCPP obj, String varname) { 00102 this(urbiJNI.new_UEvent__SWIG_6(UObjectCPP.getCPtr(obj), obj, varname), true); 00103 } 00104 00105 /// Creates an unbound UEvent. Call init() to bind it. 00106 public UEvent(UEvent e) { 00107 this(urbiJNI.new_UEvent__SWIG_7(UEvent.getCPtr(e), e), true); 00108 } 00109 00110 public void init(String object, String slot, UContextImpl arg2) { 00111 urbiJNI.UEvent_init__SWIG_0(swigCPtr, this, object, slot, UContextImpl.getCPtr(arg2), arg2); 00112 } 00113 00114 public void init(String object, String slot) { 00115 urbiJNI.UEvent_init__SWIG_1(swigCPtr, this, object, slot); 00116 } 00117 00118 public void emit(UAutoValue v1, UAutoValue v2, UAutoValue v3, UAutoValue v4, UAutoValue v5, UAutoValue v6, UAutoValue v7) { 00119 urbiJNI.UEvent_emit__SWIG_0(swigCPtr, this, UAutoValue.getCPtr(v1), v1, UAutoValue.getCPtr(v2), v2, UAutoValue.getCPtr(v3), v3, UAutoValue.getCPtr(v4), v4, UAutoValue.getCPtr(v5), v5, UAutoValue.getCPtr(v6), v6, UAutoValue.getCPtr(v7), v7); 00120 } 00121 00122 public void emit(UAutoValue v1, UAutoValue v2, UAutoValue v3, UAutoValue v4, UAutoValue v5, UAutoValue v6) { 00123 urbiJNI.UEvent_emit__SWIG_1(swigCPtr, this, UAutoValue.getCPtr(v1), v1, UAutoValue.getCPtr(v2), v2, UAutoValue.getCPtr(v3), v3, UAutoValue.getCPtr(v4), v4, UAutoValue.getCPtr(v5), v5, UAutoValue.getCPtr(v6), v6); 00124 } 00125 00126 public void emit(UAutoValue v1, UAutoValue v2, UAutoValue v3, UAutoValue v4, UAutoValue v5) { 00127 urbiJNI.UEvent_emit__SWIG_2(swigCPtr, this, UAutoValue.getCPtr(v1), v1, UAutoValue.getCPtr(v2), v2, UAutoValue.getCPtr(v3), v3, UAutoValue.getCPtr(v4), v4, UAutoValue.getCPtr(v5), v5); 00128 } 00129 00130 public void emit(UAutoValue v1, UAutoValue v2, UAutoValue v3, UAutoValue v4) { 00131 urbiJNI.UEvent_emit__SWIG_3(swigCPtr, this, UAutoValue.getCPtr(v1), v1, UAutoValue.getCPtr(v2), v2, UAutoValue.getCPtr(v3), v3, UAutoValue.getCPtr(v4), v4); 00132 } 00133 00134 public void emit(UAutoValue v1, UAutoValue v2, UAutoValue v3) { 00135 urbiJNI.UEvent_emit__SWIG_4(swigCPtr, this, UAutoValue.getCPtr(v1), v1, UAutoValue.getCPtr(v2), v2, UAutoValue.getCPtr(v3), v3); 00136 } 00137 00138 public void emit(UAutoValue v1, UAutoValue v2) { 00139 urbiJNI.UEvent_emit__SWIG_5(swigCPtr, this, UAutoValue.getCPtr(v1), v1, UAutoValue.getCPtr(v2), v2); 00140 } 00141 00142 public void emit(UAutoValue v1) { 00143 urbiJNI.UEvent_emit__SWIG_6(swigCPtr, this, UAutoValue.getCPtr(v1), v1); 00144 } 00145 00146 public void emit() { 00147 urbiJNI.UEvent_emit__SWIG_7(swigCPtr, this); 00148 } 00149 00150 public String get_name() { 00151 return urbiJNI.UEvent_get_name__SWIG_0(swigCPtr, this); 00152 } 00153 00154 public void set_name(String v) { 00155 urbiJNI.UEvent_set_name(swigCPtr, this, v); 00156 } 00157 00158 }