return CCSOLVER(solver)->solve();
}
+int solveIncremental(void *solver) {
+ return CCSOLVER(solver)->solveIncremental();
+}
+
long getElementValue(void *solver,void *element) {
return (long) CCSOLVER(solver)->getElementValue((Element *)element);
}
+void freezeElement(void *solver,void *element) {
+ CCSOLVER(solver)->freezeElement((Element *)element);
+}
+
int getBooleanValue(void *solver, void *boolean) {
return CCSOLVER(solver)->getBooleanValue(BooleanEdge((Boolean *) boolean));
}
void *createOrder(void *solver,unsigned int type, void *set);
void *orderConstraint(void *solver,void *order, long first, long second);
int solve(void *solver);
+int solveIncremental(void *solver);
long getElementValue(void *solver,void *element);
+void freezeElement(void *solver,void *element);
int getBooleanValue(void *solver,void *boolean);
int getOrderConstraintValue(void *solver,void *order, long first, long second);
void printConstraints(void *solver);
csolverlb.orderConstraint.restype = c_void_p
csolverlb.solve.argtypes = [c_void_p]
csolverlb.solve.restype = c_int
+ csolverlb.solveIncremental.argtypes = [c_void_p]
+ csolverlb.solveIncremental.restype = c_int
csolverlb.mustHaveValue.argtypes = [c_void_p, c_void_p]
csolverlb.mustHaveValue.restype = c_void_p
csolverlb.getElementValue.argtypes = [c_void_p, c_void_p]
- csolverlb.getElementValue.restype = c_long
+ csolverlb.getElementValue.restype = c_void_p
+ csolverlb.freezeElement.argtypes = [c_void_p, c_void_p]
+ csolverlb.freezeElement.restype = c_long
csolverlb.getBooleanValue.argtypes = [c_void_p, c_void_p]
csolverlb.getBooleanValue.restype = c_int
csolverlb.getOrderConstraintValue.argtypes = [c_void_p, c_void_p, c_long, c_long]
return (jint) solve((void *)solver);
}
+/*
+ * Class: SatuneJavaAPI
+ * Method: solveIncremental
+ * Signature: (J)I
+ */
+JNIEXPORT jint JNICALL Java_satune_SatuneJavaAPI_solveIncremental
+ (JNIEnv *env, jobject obj, jlong solver)
+{
+ return (jint) solveIncremental((void *)solver);
+}
+
/*
* Class: SatuneJavaAPI
* Method: getElementValue
return (jlong) getElementValue((void *)solver,(void *)element);
}
+/*
+ * Class: SatuneJavaAPI
+ * Method: freezeElement
+ * Signature: (JJ)J
+ */
+JNIEXPORT void JNICALL Java_satune_SatuneJavaAPI_freezeElement
+ (JNIEnv *env, jobject obj, jlong solver, jlong element)
+{
+ freezeElement((void *)solver,(void *)element);
+}
+
/*
* Class: SatuneJavaAPI
* Method: getBooleanValue
JNIEXPORT jint JNICALL Java_satune_SatuneJavaAPI_solve
(JNIEnv *, jobject, jlong);
+/*
+ * Class: satune_SatuneJavaAPI
+ * Method: solveIncremental
+ * Signature: (J)I
+ */
+JNIEXPORT jint JNICALL Java_satune_SatuneJavaAPI_solveIncremental
+ (JNIEnv *, jobject, jlong);
+
/*
* Class: satune_SatuneJavaAPI
* Method: getElementValue
JNIEXPORT jlong JNICALL Java_satune_SatuneJavaAPI_getElementValue
(JNIEnv *, jobject, jlong, jlong);
+
+/*
+ * Class: satune_SatuneJavaAPI
+ * Method: getElementValue
+ * Signature: (JJ)J
+ */
+JNIEXPORT void JNICALL Java_satune_SatuneJavaAPI_freezeElement
+ (JNIEnv *, jobject, jlong, jlong);
+
/*
* Class: satune_SatuneJavaAPI
* Method: getBooleanValue