本文整理汇总了Java中org.bridj.Pointer.allocateBoolean方法的典型用法代码示例。如果您正苦于以下问题:Java Pointer.allocateBoolean方法的具体用法?Java Pointer.allocateBoolean怎么用?Java Pointer.allocateBoolean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.bridj.Pointer
的用法示例。
在下文中一共展示了Pointer.allocateBoolean方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isValidIterator
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isValidIterator() throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_symbolic_atoms_is_valid(atoms, iter, ret), "Error check the atoms is valid function!");
return ret.getBoolean();
}
示例2: isEqualIterator
import org.bridj.Pointer; //导入方法依赖的package包/类
private boolean isEqualIterator(long iterator, long end) throws ClingoException {
Pointer<Boolean> value = Pointer.allocateBoolean();
handleError(LIB.clingo_symbolic_atoms_iterator_is_equal_to(atoms, iterator, end, value), "Error check atoms iterator is equal!");
return value.get();
}
示例3: waitHandle
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean waitHandle(double timeout) {
Pointer<Boolean> ret = Pointer.allocateBoolean();
LIB.clingo_solve_handle_wait(pointer, timeout, ret);
return ret.get();
}
示例4: isAssigned
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isAssigned() throws ClingoException {
Pointer<Boolean> result = Pointer.allocateBoolean();
handleError(LIB.clingo_configuration_value_is_assigned(pointer, key, result), "Error reading the configureation assigned.");
return result.getBoolean();
}
示例5: isFixed
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isFixed(int lit) throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_assignment_is_fixed(pointer, lit, ret), "Error reading the assignment is fixed!");
return ret.get();
}
示例6: isTrue
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isTrue(int lit) throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_assignment_is_true(pointer, lit, ret), "Error reading the assignment is true!");
return ret.get();
}
示例7: isFalse
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isFalse(int lit) throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_assignment_is_false(pointer, lit, ret), "Error reading the assignment is false!");
return ret.get();
}
示例8: contains
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean contains(Symbol atom) throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_model_contains(pointer, atom.getStructObject(), ret), "Error reading model contains symbol atom!");
return ret.get();
}
示例9: getOptimalityProven
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean getOptimalityProven() throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_model_optimality_proven(pointer, ret), "Error reading the model optimality provden!");
return ret.get();
}
示例10: isFact
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isFact() throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_symbolic_atoms_is_fact(pointer, iterator, ret), "Error reading the symbol atom is fact!");
return ret.get();
}
示例11: isExternal
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isExternal() throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_symbolic_atoms_is_external(pointer, iterator, ret), "Error reading he symbol atom is external!");
return ret.get();
}
示例12: hasGuard
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean hasGuard() throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_theory_atoms_atom_has_guard(pointer, id, ret), "Error reading the theory atom has guard!");
return ret.get();
}
示例13: hasConst
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean hasConst(String name) throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_control_has_const(pointer, Pointer.pointerToCString(name), ret), "Error has const " + name);
return ret.get();
}
示例14: addClause
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean addClause(List<Integer> clause, ClauseType type) throws ClingoException {
NativeList list = PointerObject.toNativeList(clause);
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_propagate_control_add_clause(pointer, list.getPointer(), list.size(), type.getInt(), ret), "Error add the clause to the propagete control!");
return ret.get();
}
示例15: getPropagate
import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean getPropagate() throws ClingoException {
Pointer<Boolean> ret = Pointer.allocateBoolean();
handleError(LIB.clingo_propagate_control_propagate(pointer, ret), "Error propagete the propagete control!");
return ret.get();
}