|
Urbi SDK Remote for Java
2.7.5
|
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 urbi implements urbiConstants { 00012 public static SWIGTYPE_p_std__string getClientConnectionID(UAbstractClient cli) { 00013 return new SWIGTYPE_p_std__string(urbiJNI.getClientConnectionID(UAbstractClient.getCPtr(cli), cli), true); 00014 } 00015 00016 public static UClient getDefaultClient() { 00017 long cPtr = urbiJNI.getDefaultClient(); 00018 return (cPtr == 0) ? null : new UClient(cPtr, false); 00019 } 00020 00021 // Parse an image format string. 00022 public static UImageFormat parse_image_format(String arg0) { 00023 return UImageFormat.swigToEnum(urbiJNI.parse_image_format(arg0)); 00024 } 00025 00026 /// Conversion to string. 00027 public static String format_string(UImageFormat f) { 00028 return urbiJNI.format_string__SWIG_0(f.swigValue()); 00029 } 00030 00031 /// Parse a sound format string. 00032 public static USoundFormat parse_sound_format(String arg0) { 00033 return USoundFormat.swigToEnum(urbiJNI.parse_sound_format(arg0)); 00034 } 00035 00036 /// Conversion to string. 00037 public static String format_string(USoundFormat f) { 00038 return urbiJNI.format_string__SWIG_1(f.swigValue()); 00039 } 00040 00041 public static String syncline_push(String srcdir, String file, long line) { 00042 return urbiJNI.syncline_push(srcdir, file, line); 00043 } 00044 00045 public static char getSemicolon() { 00046 return urbiJNI.semicolon_get(); 00047 } 00048 00049 public static char getPipe() { 00050 return urbiJNI.pipe_get(); 00051 } 00052 00053 public static char getParallel() { 00054 return urbiJNI.parallel_get(); 00055 } 00056 00057 public static char getComma() { 00058 return urbiJNI.comma_get(); 00059 } 00060 00061 public static void execute() { 00062 urbiJNI.execute(); 00063 } 00064 00065 public static void exit(int code) { 00066 urbiJNI.exit(code); 00067 } 00068 00069 public static UClient connect(String host) { 00070 return new UClient(urbiJNI.connect(host), false); 00071 } 00072 00073 public static void disconnect(UClient client) { 00074 urbiJNI.disconnect(UClient.getCPtr(client), client); 00075 } 00076 00077 public static UClient get_default_client() { 00078 return new UClient(urbiJNI.get_default_client(), false); 00079 } 00080 00081 public static void setDefaultClient(UClient cl) { 00082 urbiJNI.setDefaultClient(UClient.getCPtr(cl), cl); 00083 } 00084 00085 // Image format conversion. JPEG compression not implemented. 00086 public static int convert(USound source, USound destination) { 00087 return urbiJNI.convert__SWIG_0(USound.getCPtr(source), source, USound.getCPtr(destination), destination); 00088 } 00089 00090 // Image format conversion. JPEG compression not implemented. 00091 public static int convert(UImage source, UImage destination) { 00092 return urbiJNI.convert__SWIG_1(UImage.getCPtr(source), source, UImage.getCPtr(destination), destination); 00093 } 00094 00095 public static boolean is_propertytype(int i) { 00096 return urbiJNI.is_propertytype(i); 00097 } 00098 00099 public static String name(UProperty u) { 00100 return urbiJNI.name(u.swigValue()); 00101 } 00102 00103 public static UProperty uproperty(String cp) { 00104 return UProperty.swigToEnum(urbiJNI.uproperty(cp)); 00105 } 00106 00107 public static UContextImpl getCurrentContext() { 00108 long cPtr = urbiJNI.getCurrentContext(); 00109 return (cPtr == 0) ? null : new UContextImpl(cPtr, false); 00110 } 00111 00112 public static void setCurrentContext(UContextImpl arg0) { 00113 urbiJNI.setCurrentContext(UContextImpl.getCPtr(arg0), arg0); 00114 } 00115 00116 public static void echo(String format) { 00117 urbiJNI.echo(format); 00118 } 00119 00120 public static LockSpec getLOCK_FUNCTION_DROP() { 00121 long cPtr = urbiJNI.LOCK_FUNCTION_DROP_get(); 00122 return (cPtr == 0) ? null : new LockSpec(cPtr, false); 00123 } 00124 00125 public static LockSpec getLOCK_FUNCTION_KEEP_ONE() { 00126 long cPtr = urbiJNI.LOCK_FUNCTION_KEEP_ONE_get(); 00127 return (cPtr == 0) ? null : new LockSpec(cPtr, false); 00128 } 00129 00130 public static UObjectHub getUObjectHub(String n) { 00131 long cPtr = urbiJNI.getUObjectHub(n); 00132 return (cPtr == 0) ? null : new UObjectHub(cPtr, false); 00133 } 00134 00135 public static UObjectCPP getUObject(String n) { 00136 long cPtr = urbiJNI.getUObject(n); 00137 return (cPtr == 0) ? null : new UObjectCPP(cPtr, false); 00138 } 00139 00140 public static void uobject_unarmorAndSend(String str) { 00141 urbiJNI.uobject_unarmorAndSend(str); 00142 } 00143 00144 public static void send(String str) { 00145 urbiJNI.send__SWIG_0(str); 00146 } 00147 00148 public static UObjectMode getRunningMode() { 00149 return UObjectMode.swigToEnum(urbiJNI.getRunningMode()); 00150 } 00151 00152 public static boolean isPluginMode() { 00153 return urbiJNI.isPluginMode(); 00154 } 00155 00156 public static boolean isRemoteMode() { 00157 return urbiJNI.isRemoteMode(); 00158 } 00159 00160 /// Set maximum number of threads to use for threaded calls (0=unlimited). 00161 public static void setThreadLimit(long nThreads) { 00162 urbiJNI.setThreadLimit(nThreads); 00163 } 00164 00165 /// Return current hostname mangled to fit into an urbiscript variable name. 00166 public static String getFilteredHostname() { 00167 return urbiJNI.getFilteredHostname(); 00168 } 00169 00170 public static int urbi_launch(int argc, String[] argv, UrbiRoot root) { 00171 return urbiJNI.urbi_launch(argc, argv, UrbiRoot.getCPtr(root), root); 00172 } 00173 00174 public static int urbi_main(int argc, String[] argv, UrbiRoot root, boolean block, boolean errors) { 00175 return urbiJNI.urbi_main(argc, argv, UrbiRoot.getCPtr(root), root, block, errors); 00176 } 00177 00178 public static int main(int argc, String[] argv, UrbiRoot root, boolean block, boolean errors) { 00179 return urbiJNI.main__SWIG_0(argc, argv, UrbiRoot.getCPtr(root), root, block, errors); 00180 } 00181 00182 public static int main(int argc, String[] argv, UrbiRoot root, boolean block) { 00183 return urbiJNI.main__SWIG_1(argc, argv, UrbiRoot.getCPtr(root), root, block); 00184 } 00185 00186 public static int main(int argc, String[] argv, UrbiRoot root) { 00187 return urbiJNI.main__SWIG_2(argc, argv, UrbiRoot.getCPtr(root), root); 00188 } 00189 00190 public static int initialize(String host, int port, long buflen, boolean exitOnDisconnect, boolean server, StringVector files, boolean useSyncClient) { 00191 return urbiJNI.initialize__SWIG_0(host, port, buflen, exitOnDisconnect, server, StringVector.getCPtr(files), files, useSyncClient); 00192 } 00193 00194 public static int initialize(String host, int port, long buflen, boolean exitOnDisconnect, boolean server, StringVector files) { 00195 return urbiJNI.initialize__SWIG_1(host, port, buflen, exitOnDisconnect, server, StringVector.getCPtr(files), files); 00196 } 00197 00198 public static int initialize(String host, int port, long buflen, boolean exitOnDisconnect, boolean server) { 00199 return urbiJNI.initialize__SWIG_2(host, port, buflen, exitOnDisconnect, server); 00200 } 00201 00202 public static int initialize(String host, int port, long buflen, boolean exitOnDisconnect) { 00203 return urbiJNI.initialize__SWIG_3(host, port, buflen, exitOnDisconnect); 00204 } 00205 00206 }