1 /* Java Wrappers to the MSG API. */
3 /* Copyright (c) 2007-2015. 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. */
11 #include <simgrid/msg.h>
16 extern int JAVA_HOST_LEVEL;
17 extern int JAVA_STORAGE_LEVEL;
19 JavaVM *get_java_VM(void);
20 JNIEnv *get_current_thread_env(void);
22 * This function throws the correct exception according to the status
25 void jmsg_throw_status(JNIEnv *env, msg_error_t status);
28 * Class org_simgrid_msg_Msg
32 JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Msg_getClock(JNIEnv *, jclass);
34 * Class org_simgrid_msg_Msg
37 JNIEXPORT void JNICALL
38 JNICALL Java_org_simgrid_msg_Msg_run(JNIEnv * env, jclass cls);
40 JNIEXPORT void JNICALL
41 Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs);
43 JNIEXPORT void JNICALL
44 Java_org_simgrid_msg_Msg_energyInit(void);
46 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_debug(JNIEnv *, jclass,
49 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_verb(JNIEnv *, jclass,
52 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_info(JNIEnv *, jclass,
55 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_warn(JNIEnv *, jclass,
58 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_error(JNIEnv *, jclass,
61 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_critical(JNIEnv *, jclass,
64 JNIEXPORT void JNICALL
65 Java_org_simgrid_msg_Msg_createEnvironment(JNIEnv * env, jclass cls,
66 jstring jplatformFile);
67 JNIEXPORT jobject JNICALL
68 Java_org_simgrid_msg_Msg_environmentGetRoutingRoot(JNIEnv * env, jclass cls);
69 JNIEXPORT void JNICALL
70 Java_org_simgrid_msg_Msg_deployApplication(JNIEnv * env, jclass cls,
71 jstring jdeploymentFile);
75 #endif /* !MSG4JAVA_H */