Skip to content
Snippets Groups Projects
Commit ec270c77 authored by vitawrap's avatar vitawrap
Browse files

JNI: runSchedule

parent 0e9ffd63
Branches
No related tags found
No related merge requests found
#include <jni.h>
#include "schedule.h"
#include "instance.h"
#include "algo.h"
#include "Scheduling.h"
JNIEXPORT void JNICALL Java_Scheduling_runSchedule
(JNIEnv * env, jclass , jstring, jstring, jint, jint, jint)
(JNIEnv * env, jclass cl, jstring inst_in, jstring sched_out, jint m, jint preempt, jint balanced)
{
//const char * mystring = (* env )->GetStringUTFChars(env, s, NULL);
}
const char * instance_file = (* env )->GetStringUTFChars(env, inst_in, NULL);
const char * schedule_file = (* env )->GetStringUTFChars(env, sched_out, NULL);
Instance i = read_instance(instance_file);
struct schedule_t *s = create_schedule(i, m, preempt, balanced);
save_schedule(s, schedule_file);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment