X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7ce270272856fcab2790a35bcefb9d6e0fb52423..d13b1659a0c2551ee41b287a269e391bb2d7bc8a:/src/bindings/java/jmsg_task.h diff --git a/src/bindings/java/jmsg_task.h b/src/bindings/java/jmsg_task.h index 80789845b1..b79450a829 100644 --- a/src/bindings/java/jmsg_task.h +++ b/src/bindings/java/jmsg_task.h @@ -1,36 +1,17 @@ /* Functions related to the java task instances. */ -/* Copyright (c) 2007-2012. The SimGrid Team. +/* Copyright (c) 2007-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef MSG_JTASK_H #define MSG_JTASK_H #include -#include "msg/msg.h" +#include "simgrid/msg.h" -/** - * This function returns a global reference to the java task instance - * specified by the parameter jtask. - * - * @param jtask The original java task instance. - * @param env The environment of the current thread. - * - * @return The global reference to the original java task - * instance. - */ -/* jobject jtask_new_global_ref(jobject jtask, JNIEnv * env); */ - -/** - * This function delete a global reference to a java task instance. - * - * @param The global refernce to delete. - * @param env The environment of the current thread. - */ -/* void jtask_delete_global_ref(jobject jtask, JNIEnv * env); */ /** * This function associated a native task to a java task instance. @@ -90,6 +71,8 @@ Java_org_simgrid_msg_Task_nativeInit(JNIEnv *env, jclass cls); JNIEXPORT void JNICALL Java_org_simgrid_msg_Task_create (JNIEnv * env, jobject jtask, jstring jname, jdouble jcomputeDuration, jdouble jmessageSize); +JNIEXPORT void JNICALL +Java_org_simgrid_msg_Task_nativeFinalize(JNIEnv * env, jobject jtask); /* * Class org_simgrid_msg_Task * Method parallelCreate @@ -124,6 +107,14 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_Task_cancel JNIEXPORT void JNICALL Java_org_simgrid_msg_Task_execute (JNIEnv *, jobject); +/* + * Class org_simgrid_msg_Task + * Method setBound + * Signature ()V + */ +JNIEXPORT void JNICALL Java_org_simgrid_msg_Task_setBound + (JNIEnv *, jobject, jdouble); + /* * Class org_simgrid_msg_Task * Method getName @@ -148,19 +139,12 @@ JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Task_getSource (JNIEnv *, jobject); /* * Class org_simgrid_msg_Task - * Method getComputeDuration + * Method getFlopsAmount * Signature ()D */ -JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Task_getComputeDuration +JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Task_getFlopsAmount (JNIEnv *, jobject); -/* - * Class org_simgrid_msg_Task - * Method getRemainingDuration - * Signature ()D - */ -JNIEXPORT jdouble JNICALL -Java_org_simgrid_msg_Task_getRemainingDuration(JNIEnv *, jobject); /** * Class org_simgrid_msg_Task * Method setName @@ -177,11 +161,11 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_Task_setPriority (JNIEnv *, jobject, jdouble); /** * Class org_simgrid_msg_Task - * Method setComputationAmount + * Method setComputeDuration * Signature (D)V */ JNIEXPORT void JNICALL -Java_org_simgrid_msg_Task_setComputeDuration +Java_org_simgrid_msg_Task_setFlopsAmount (JNIEnv *env, jobject jtask, jdouble computationAmount); /** @@ -190,7 +174,7 @@ Java_org_simgrid_msg_Task_setComputeDuration * Signature (D)V */ JNIEXPORT void JNICALL -Java_org_simgrid_msg_Task_setDataSize +Java_org_simgrid_msg_Task_setBytesAmount (JNIEnv *env, jobject jtask, jdouble dataSize); /**