1 /* Java Wrappers to the MSG API. */
3 /* Copyright (c) 2007-2014. The SimGrid Team.
4 * All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
14 extern int JAVA_HOST_LEVEL;
15 extern xbt_lib_t host_lib;
17 JavaVM *get_java_VM(void);
18 JNIEnv *get_current_thread_env(void);
20 * This function throws the correct exception according to the status
23 void jmsg_throw_status(JNIEnv *env, msg_error_t status);
26 * Class org_simgrid_msg_Msg
30 JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Msg_getClock(JNIEnv *, jclass);
32 * Class org_simgrid_msg_Msg
35 JNIEXPORT void JNICALL
36 JNICALL Java_org_simgrid_msg_Msg_run(JNIEnv * env, jclass cls);
38 JNIEXPORT void JNICALL
39 Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs);
41 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_debug(JNIEnv *, jclass,
44 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_verb(JNIEnv *, jclass,
47 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_info(JNIEnv *, jclass,
50 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_warn(JNIEnv *, jclass,
53 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_error(JNIEnv *, jclass,
56 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_critical(JNIEnv *, jclass,
59 JNIEXPORT void JNICALL
60 Java_org_simgrid_msg_Msg_createEnvironment(JNIEnv * env, jclass cls,
61 jstring jplatformFile);
62 JNIEXPORT jobject JNICALL
63 Java_org_simgrid_msg_Msg_environmentGetRoutingRoot(JNIEnv * env, jclass cls);
64 JNIEXPORT void JNICALL
65 Java_org_simgrid_msg_Msg_deployApplication(JNIEnv * env, jclass cls,
66 jstring jdeploymentFile);
68 #endif /* !MSG4JAVA_H */