X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ad9cf3dddccaf1d798a39120a83e79d291a57553..3af9dcb5714db015a7038a58701b2b453f52c6ca:/src/bindings/java/jmsg_host.h diff --git a/src/bindings/java/jmsg_host.h b/src/bindings/java/jmsg_host.h index 401d53b9c3..92f1989125 100644 --- a/src/bindings/java/jmsg_host.h +++ b/src/bindings/java/jmsg_host.h @@ -1,6 +1,6 @@ /* Functions related to the java host instances. */ -/* Copyright (c) 2007-2012. The SimGrid Team. +/* Copyright (c) 2007-2013. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -112,6 +112,24 @@ Java_org_simgrid_msg_Host_nativeInit(JNIEnv *env, jclass cls); JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Host_getByName (JNIEnv *, jclass, jstring); +/** + * This function start the host if it is off + * + * @param jhost The host to test the validity. + * @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 + * + * @param jhost The host to test the validity. + * @param env The environment of the current thread + * + */ +JNIEXPORT void JNICALL Java_org_simgrid_msg_Host_off(JNIEnv *env, jobject jhost); + /* * Class org_simgrid_msg_Host * Method currentHost @@ -136,10 +154,10 @@ JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getSpeed (JNIEnv *, jobject); /* * Class org_simgrid_msg_Host - * Method getCore + * Method getCoreNumber * Signature ()D */ -JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getCore +JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getCoreNumber (JNIEnv *, jobject); /* * Class org_simgrid_msg_Host