Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
First series of changes to lua-bindings in order to
[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 RngStream jrngstream_to_native(JNIEnv *env, jobject jrngstream);
15
16 JNIEXPORT void JNICALL
17 Java_org_simgrid_msg_RngStream_nativeInit(JNIEnv *env, jclass cls);
18
19 JNIEXPORT void JNICALL
20 Java_org_simgrid_msg_RngStream_create(JNIEnv *env, jobject jrngstream, jstring name);
21
22 JNIEXPORT void JNICALL
23 Java_org_simgrid_msg_RngStream_nativeFinalize(JNIEnv *env, jobject jrngstream);
24
25 JNIEXPORT jboolean JNICALL
26 Java_org_simgrid_msg_RngStream_setPackageSeed(JNIEnv *env, jobject jrngstream, jintArray seed);
27
28 JNIEXPORT void JNICALL
29 Java_org_simgrid_msg_RngStream_resetStart(JNIEnv *env, jobject jrngstream);
30
31 JNIEXPORT void JNICALL
32 Java_org_simgrid_msg_RngStream_resetStartSubstream(JNIEnv *env, jobject jrngstream);
33
34 JNIEXPORT void JNICALL
35 Java_org_simgrid_msg_RngStream_resetNextSubstream(JNIEnv *env, jobject jrngstream);
36
37 JNIEXPORT void JNICALL
38 Java_org_simgrid_msg_RngStream_setAntithetic(JNIEnv *env, jobject jrngstream, jboolean ja);
39
40 JNIEXPORT jboolean JNICALL
41 Java_org_simgrid_msg_RngStream_setSeed(JNIEnv *env, jobject jrngstream, jintArray jseed);
42
43 JNIEXPORT void JNICALL
44 Java_org_simgrid_msg_RngStream_advanceState(JNIEnv *env, jobject jrngstream, jint e, jint g);
45
46 JNIEXPORT jdouble JNICALL
47 Java_org_simgrid_msg_RngStream_randU01(JNIEnv *env, jobject jrngstream);
48
49 JNIEXPORT jint JNICALL
50 Java_org_simgrid_msg_RngStream_randInt(JNIEnv *env, jobject jrngstream, jint i, jint j);
51
52 #endif                          /* MSG_RNGSTREAM_H */