diff --git a/include/application_Scheduling.h b/include/application_Scheduling.h index 8809de049832f2e4129de9ed3b7de9901d8f7490..c8fdc4f6cc6e2a4b5bc60a070a57bce3c9717151 100644 --- a/include/application_Scheduling.h +++ b/include/application_Scheduling.h @@ -1,18 +1,18 @@ /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> -/* Header for class Scheduling */ +/* Header for class application_Scheduling */ -#ifndef _Included_Scheduling -#define _Included_Scheduling +#ifndef _Included_application_Scheduling +#define _Included_application_Scheduling #ifdef __cplusplus extern "C" { #endif /* - * Class: Scheduling + * Class: application_Scheduling * Method: runSchedule * Signature: (Ljava/lang/String;Ljava/lang/String;III)V */ -JNIEXPORT void JNICALL Java_Scheduling_runSchedule +JNIEXPORT void JNICALL Java_application_Scheduling_runSchedule (JNIEnv *, jclass, jstring, jstring, jint, jint, jint); #ifdef __cplusplus diff --git a/java/app/src/main/java/application/ProjetController.java b/java/app/src/main/java/application/ProjetController.java index ffed7d9082c3c88b95e619970c81e9939d81d57b..142820831ec1f1a74a245145cd26a2cee36e07ad 100644 --- a/java/app/src/main/java/application/ProjetController.java +++ b/java/app/src/main/java/application/ProjetController.java @@ -28,6 +28,6 @@ public class ProjetController { @FXML public void submitToDiagram(ActionEvent event) { - + Scheduling.runSchedule("STRING 1", "MESSAGE", 0, 0, 0); } } \ No newline at end of file diff --git a/src/application_Scheduling.c b/src/application_Scheduling.c index 90bb7fb5127ff7a80a55d108cfa5888750362eb7..44749fe51fdabca098f12eaa013df59e86aaf7cb 100644 --- a/src/application_Scheduling.c +++ b/src/application_Scheduling.c @@ -3,7 +3,9 @@ #include "instance.h" #include "algo.h" -JNIEXPORT void JNICALL Java_Scheduling_runSchedule +#include <stdio.h> + +JNIEXPORT void JNICALL Java_application_Scheduling_runSchedule (JNIEnv * env, jclass cl, jstring inst_in, jstring sched_out, jint m, jint preempt, jint balanced) { const char * instance_file = (* env )->GetStringUTFChars(env, inst_in, NULL);