Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[java] Switch Java bindings to .cpp
[simgrid.git] / src / bindings / java / jmsg_rngstream.h
1 /* Functions related to the RngStream Java port                         */
2
3 /* Copyright (c) 2007-2015. 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 MSG_RNGSTREAM_H
10 #define MSG_RNGSTREAM_H
11 #include <jni.h>
12 #include <xbt/RngStream.h>
13
14 SG_BEGIN_DECL()
15
16 RngStream jrngstream_to_native(JNIEnv *env, jobject jrngstream);
17
18 JNIEXPORT void JNICALL
19 Java_org_simgrid_msg_RngStream_nativeInit(JNIEnv *env, jclass cls);
20
21 JNIEXPORT void JNICALL
22 Java_org_simgrid_msg_RngStream_create(JNIEnv *env, jobject jrngstream, jstring name);
23
24 JNIEXPORT void JNICALL
25 Java_org_simgrid_msg_RngStream_nativeFinalize(JNIEnv *env, jobject jrngstream);
26
27 JNIEXPORT jboolean JNICALL
28 Java_org_simgrid_msg_RngStream_setPackageSeed(JNIEnv *env, jobject jrngstream, jintArray seed);
29
30 JNIEXPORT void JNICALL
31 Java_org_simgrid_msg_RngStream_resetStart(JNIEnv *env, jobject jrngstream);
32
33 JNIEXPORT void JNICALL
34 Java_org_simgrid_msg_RngStream_resetStartSubstream(JNIEnv *env, jobject jrngstream);
35
36 JNIEXPORT void JNICALL
37 Java_org_simgrid_msg_RngStream_resetNextSubstream(JNIEnv *env, jobject jrngstream);
38
39 JNIEXPORT void JNICALL
40 Java_org_simgrid_msg_RngStream_setAntithetic(JNIEnv *env, jobject jrngstream, jboolean ja);
41
42 JNIEXPORT jboolean JNICALL
43 Java_org_simgrid_msg_RngStream_setSeed(JNIEnv *env, jobject jrngstream, jintArray jseed);
44
45 JNIEXPORT void JNICALL
46 Java_org_simgrid_msg_RngStream_advanceState(JNIEnv *env, jobject jrngstream, jint e, jint g);
47
48 JNIEXPORT jdouble JNICALL
49 Java_org_simgrid_msg_RngStream_randU01(JNIEnv *env, jobject jrngstream);
50
51 JNIEXPORT jint JNICALL
52 Java_org_simgrid_msg_RngStream_randInt(JNIEnv *env, jobject jrngstream, jint i, jint j);
53
54 SG_END_DECL()
55
56 #endif                          /* MSG_RNGSTREAM_H */