Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Deleted simulatedSleep, use waitFor instead. Moved everything from MsgNative to their...
[simgrid.git] / src / jmsg.h
1 /* Java Wrappers to the MSG API.                                            */
2
3 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
4  * All rights reserved.                                                     */
5
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. */
8
9 #ifndef MSG4JAVA_H
10 #define MSG4JAVA_H
11
12 #include <jni.h>
13
14 JavaVM *get_java_VM(void);
15
16 JNIEnv *get_current_thread_env(void);
17
18 /*
19  * Class                org_simgrid_msg_Msg
20  * Method               getClock
21  * Signature    ()D
22  */
23 JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Msg_getClock(JNIEnv *, jclass);
24 /**
25  * Class                org_simgrid_msg_Msg
26  * Method               run
27  */
28 JNIEXPORT void JNICALL
29     JNICALL Java_org_simgrid_msg_Msg_run(JNIEnv * env, jclass cls);
30 /**
31  * Class                org_simgrid_msg_Msg
32  * Method               clean
33  */
34 JNIEXPORT void JNICALL
35     JNICALL Java_org_simgrid_msg_Msg_clean(JNIEnv * env, jclass cls);
36
37 JNIEXPORT void JNICALL
38 Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs);
39
40 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_info(JNIEnv *, jclass,
41                                                  jstring);
42
43 JNIEXPORT void JNICALL
44 Java_org_simgrid_msg_Msg_createEnvironment(JNIEnv * env, jclass cls,
45                                        jstring jplatformFile);
46 JNIEXPORT void JNICALL
47 Java_org_simgrid_msg_Msg_deployApplication(JNIEnv * env, jclass cls,
48                                        jstring jdeploymentFile);
49
50 #endif                          /* !MSG4JAVA_H */