Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add AS support in MSG and java bindings
[simgrid.git] / src / bindings / java / jmsg.h
1 /* Java Wrappers to the MSG API.                                            */
2
3 /* Copyright (c) 2007-2012. 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 #include <msg/msg.h>
12 #include <jni.h>
13
14 JavaVM *get_java_VM(void);
15 JNIEnv *get_current_thread_env(void);
16 /**
17  * This function throws the correct exception according to the status
18  * provided.
19  */
20 void jmsg_throw_status(JNIEnv *env, msg_error_t status);
21
22 /*
23  * Class                org_simgrid_msg_Msg
24  * Method               getClock
25  * Signature    ()D
26  */
27 JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Msg_getClock(JNIEnv *, jclass);
28 /**
29  * Class                org_simgrid_msg_Msg
30  * Method               run
31  */
32 JNIEXPORT void JNICALL
33     JNICALL Java_org_simgrid_msg_Msg_run(JNIEnv * env, jclass cls);
34
35 JNIEXPORT void JNICALL
36 Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs);
37
38 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_debug(JNIEnv *, jclass,
39                                                  jstring);
40
41 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_verb(JNIEnv *, jclass,
42                                                  jstring);
43
44 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_info(JNIEnv *, jclass,
45                                                  jstring);
46
47 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_warn(JNIEnv *, jclass,
48                                                  jstring);
49
50 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_error(JNIEnv *, jclass,
51                                                  jstring);
52
53 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_critical(JNIEnv *, jclass,
54                                                  jstring);
55
56 JNIEXPORT void JNICALL
57 Java_org_simgrid_msg_Msg_createEnvironment(JNIEnv * env, jclass cls,
58                                        jstring jplatformFile);
59 JNIEXPORT jobject JNICALL
60 Java_org_simgrid_msg_Msg_environmentGetRoutingRoot(JNIEnv * env, jclass cls);
61 JNIEXPORT void JNICALL
62 Java_org_simgrid_msg_Msg_deployApplication(JNIEnv * env, jclass cls,
63                                        jstring jdeploymentFile);
64
65 #endif                          /* !MSG4JAVA_H */