A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace sprintf by snprintf.
[simgrid.git]
/
src
/
bindings
/
java
/
jmsg_host.h
diff --git
a/src/bindings/java/jmsg_host.h
b/src/bindings/java/jmsg_host.h
index
327940c
..
1e76b67
100644
(file)
--- a/
src/bindings/java/jmsg_host.h
+++ b/
src/bindings/java/jmsg_host.h
@@
-17,71
+17,63
@@
SG_BEGIN_DECL()
/**
* This function returns a new java host instance.
*
/**
* This function returns a new java host instance.
*
- * @param env
The environment of the current thread
+ * @param env The environment of the current thread
*
* @return A new java host object.
*
*
* @return A new java host object.
*
- * @exception If the class Host is not found the function throws
- * the ClassNotFoundException. If the constructor of
- * this class is not found the function throws the exception
- * NotSuchMethodException.
+ * @exception If the class Host is not found the function throws the ClassNotFoundException. If the constructor of
+ * this class is not found the function throws the exception NotSuchMethodException.
*/
jobject jhost_new_instance(JNIEnv * env);
/**
*/
jobject jhost_new_instance(JNIEnv * env);
/**
- * This function returns a global reference to the java host instance
- * specified by the parameter jhost.
+ * This function returns a global reference to the java host instance specified by the parameter jhost.
*
*
- * @param jhost
The original java host instance.
- * @param env
The environment of the current thread
+ * @param jhost The original java host instance.
+ * @param env The environment of the current thread
*
*
- * @return The global reference to the original java host
- * instance.
+ * @return The global reference to the original java host instance.
*/
jobject jhost_ref(JNIEnv * env, jobject jhost);
*/
jobject jhost_ref(JNIEnv * env, jobject jhost);
+
/**
* This function delete a global reference to a java host instance.
*
* @param The global refernce to delete.
/**
* This function delete a global reference to a java host instance.
*
* @param The global refernce to delete.
- * @param env
The environment of the current thread
+ * @param env The environment of the current thread
*/
void jhost_unref(JNIEnv * env, jobject jhost);
/**
* This function associated a native host to a java host instance.
*
*/
void jhost_unref(JNIEnv * env, jobject jhost);
/**
* This function associated a native host to a java host instance.
*
- * @param jhost
The java host instance.
- * @param host
The native host to bind.
+ * @param jhost The java host instance.
+ * @param host The native host to bind.
* @param env The environment of the current thread
*
* @param env The environment of the current thread
*
- * @exception If the class Host is not found the function throws
- * the ClassNotFoundException. If the field bind of
- * this class is not found the function throws the exception
- * NotSuchFieldException.
+ * @exception If the class Host is not found the function throws the ClassNotFoundException. If the field bind of
+ * this class is not found the function throws the exception NotSuchFieldException.
*/
void jhost_bind(jobject jhost, msg_host_t host, JNIEnv * env);
/**
* This function returns a native host from a java host instance.
*
*/
void jhost_bind(jobject jhost, msg_host_t host, JNIEnv * env);
/**
* This function returns a native host from a java host instance.
*
- * @param jhost
The java host object from which get the native host.
- * @param env
The environment of the current thread
+ * @param jhost The java host object from which get the native host.
+ * @param env The environment of the current thread
*
*
- * @return The function returns the native host associated to the
- * java host object.
+ * @return The function returns the native host associated to the java host object.
*
*
- * @exception If the class Host is not found the function throws
- * the ClassNotFoundException. If the field bind of
- * this class is not found the function throws the exception
- * NotSuchFieldException.
+ * @exception If the class Host is not found the function throws the ClassNotFoundException. If the field bind of
+ * this class is not found the function throws the exception NotSuchFieldException.
*/
msg_host_t jhost_get_native(JNIEnv * env, jobject jhost);
/**
* This function returns the name of a MSG host.
*
*/
msg_host_t jhost_get_native(JNIEnv * env, jobject jhost);
/**
* This function returns the name of a MSG host.
*
- * @param jhost
A java host object.
- * @param env
The environment of the current thread
+ * @param jhost A java host object.
+ * @param env The environment of the current thread
*
* @return The name of the host.
*/
*
* @return The name of the host.
*/
@@
-91,44
+83,40
@@
const char *jhost_get_name(jobject jhost, JNIEnv * env);
* This function tests if a java host instance is valid.
* A java host object is valid if it is bind to a native host.
*
* This function tests if a java host instance is valid.
* A java host object is valid if it is bind to a native host.
*
- * @param jhost
The host to test the validity.
+ * @param jhost The host to test the validity.
* @param env The environment of the current thread
*
* @param env The environment of the current thread
*
- * @return If the java host is valid the function returns true.
- * Otherwise the function returns false.
+ * @return If the java host is valid the function returns true. Otherwise the function returns false.
*/
jboolean jhost_is_valid(jobject jhost, JNIEnv * env);
*/
jboolean jhost_is_valid(jobject jhost, JNIEnv * env);
+
/*
* Class org_simgrid_msg_Host
* Method nativeInit
* Signature ();
*/
/*
* Class org_simgrid_msg_Host
* Method nativeInit
* Signature ();
*/
-JNIEXPORT void JNICALL
-Java_org_simgrid_msg_Host_nativeInit(JNIEnv *env, jclass cls);
+JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_nativeInit(JNIEnv *env, jclass cls);
/*
* Class org_simgrid_msg_Host
* Method getByName
* Signature (Ljava/lang/String;)Lsimgrid/msg/Host;
*/
/*
* Class org_simgrid_msg_Host
* Method getByName
* Signature (Ljava/lang/String;)Lsimgrid/msg/Host;
*/
-JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Host_getByName
- (JNIEnv *, jclass, jstring);
+JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Host_getByName (JNIEnv *, jclass, jstring);
/**
* This function start the host if it is off
*
/**
* This function start the host if it is off
*
- * @param jhost
The host to test the validity.
+ * @param jhost The host to test the validity.
* @param env The environment of the current thread
* @param env The environment of the current thread
- *
*/
JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_on(JNIEnv *env, jobject jhost);
/**
* This function stop the host if it is on
*
*/
JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_on(JNIEnv *env, jobject jhost);
/**
* This function stop the host if it is on
*
- * @param jhost
The host to test the validity.
+ * @param jhost The host to test the validity.
* @param env The environment of the current thread
* @param env The environment of the current thread
- *
*/
JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_off(JNIEnv *env, jobject jhost);
*/
JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_off(JNIEnv *env, jobject jhost);
@@
-137,52
+125,49
@@
JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_off(JNIEnv *env, jobject jhost)
* Method currentHost
* Signature ()Lsimgrid/msg/Host;
*/
* Method currentHost
* Signature ()Lsimgrid/msg/Host;
*/
-JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Host_currentHost
- (JNIEnv *, jclass);
+JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Host_currentHost
(JNIEnv *, jclass);
+
/*
* Class org_simgrid_msg_Host
* Method getCount
* Signature ()I
*/
/*
* Class org_simgrid_msg_Host
* Method getCount
* Signature ()I
*/
-JNIEXPORT jint JNICALL Java_org_simgrid_msg_Host_getCount
- (JNIEnv *, jclass);
+JNIEXPORT jint JNICALL Java_org_simgrid_msg_Host_getCount (JNIEnv *, jclass);
/*
* Class org_simgrid_msg_Host
* Method getSpeed
* Signature ()D
*/
/*
* Class org_simgrid_msg_Host
* Method getSpeed
* Signature ()D
*/
-JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getSpeed
- (JNIEnv *, jobject);
+JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getSpeed
(JNIEnv *, jobject);
+
/*
* Class org_simgrid_msg_Host
* Method getCoreNumber
* Signature ()D
*/
/*
* Class org_simgrid_msg_Host
* Method getCoreNumber
* Signature ()D
*/
-JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getCoreNumber
- (JNIEnv *, jobject);
+JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getCoreNumber
(JNIEnv *, jobject);
+
/*
* Class org_simgrid_msg_Host
* Method getProperty
* Signature (Ljava/lang/String;)Ljava/lang/String;
*/
/*
* Class org_simgrid_msg_Host
* Method getProperty
* Signature (Ljava/lang/String;)Ljava/lang/String;
*/
-JNIEXPORT jobject JNICALL
-Java_org_simgrid_msg_Host_getProperty(JNIEnv *env, jobject jhost, jobject jname);
+JNIEXPORT jobject JNICALL
Java_org_simgrid_msg_Host_getProperty(JNIEnv *env, jobject jhost, jobject jname);
+
/*
* Class org_simgrid_msg_Host
* Method setProperty
* Signature (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
*/
/*
* Class org_simgrid_msg_Host
* Method setProperty
* Signature (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
*/
-JNIEXPORT void JNICALL
-Java_org_simgrid_msg_Host_setProperty(JNIEnv *env, jobject jhost, jobject jname, jobject jvalue);
+JNIEXPORT void JNICALL
Java_org_simgrid_msg_Host_setProperty(JNIEnv *env, jobject jhost, jobject jname, jobject jvalue);
+
/*
* Class org_simgrid_msg_Host
* Method isOn
* Signature ()Z
*/
/*
* Class org_simgrid_msg_Host
* Method isOn
* Signature ()Z
*/
-JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Host_isOn
- (JNIEnv *, jobject);
-
+JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Host_isOn (JNIEnv *, jobject);
/*
* Class org_simgrid_msg_Host
/*
* Class org_simgrid_msg_Host
@@
-203,21
+188,16
@@
JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_Host_getAttachedStorage(JNIE
*/
JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_Host_getStorageContent(JNIEnv * env, jobject jhost);
*/
JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_Host_getStorageContent(JNIEnv * env, jobject jhost);
-
/**
* Class org_simgrid_msg_Host
* Method all
*/
/**
* Class org_simgrid_msg_Host
* Method all
*/
-JNIEXPORT jobjectArray JNICALL
-Java_org_simgrid_msg_Host_all(JNIEnv *, jclass);
-
-JNIEXPORT void JNICALL
-Java_org_simgrid_msg_Host_setAsyncMailbox(JNIEnv * env, jclass cls_arg, jobject jname);
+JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_Host_all(JNIEnv *, jclass);
-JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getConsumedEnergy
- (JNIEnv *, jobject);
+JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_setAsyncMailbox(JNIEnv * env, jclass cls_arg, jobject jname);
+JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getConsumedEnergy (JNIEnv *, jobject);
+SG_END_DECL()
#endif /*!MSG_JHOST_H */
#endif /*!MSG_JHOST_H */
-SG_END_DECL()