X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b73466ada27682d1729f394549479da83ef4a99..4df4d0eae33fbcffb0443fd5577ad2e4144da2bd:/src/bindings/java/jmsg_task.h diff --git a/src/bindings/java/jmsg_task.h b/src/bindings/java/jmsg_task.h index eec36475a9..2edb2caea1 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-2013. 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_doFinalize(JNIEnv * env, jobject jtask); /* * Class org_simgrid_msg_Task * Method parallelCreate @@ -156,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 @@ -189,7 +165,7 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_Task_setPriority * Signature (D)V */ JNIEXPORT void JNICALL -Java_org_simgrid_msg_Task_setComputeDuration +Java_org_simgrid_msg_Task_setFlopsAmount (JNIEnv *env, jobject jtask, jdouble computationAmount); /** @@ -198,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); /**