MCPcopy Create free account
hub / github.com/SWI-Prolog/packages-jpl / hasSolution

Method hasSolution

src/main/java/org/jpl7/Query.java:949–951  ·  view source on GitHub ↗

This method will attempt to call this Query's goal within an available Prolog engine. @return the provability of the Query, i.e. 'true' if it has at least one solution, 'false' if the call fails without finding a solution. Only the first solution (if there is one) will

()

Source from the content-addressed store, hash-verified

947 * open.
948 */
949 public final boolean hasSolution() {
950 return oneSolution() != null;
951 }
952
953 /**
954 * This static method creates a Query (whose goal is the specified Term) and

Callers 15

test0Method · 0.95
test1Method · 0.95
test3Method · 0.95
setUpMethod · 0.95
errorTermTranslation1Method · 0.95
testStackedQueries1Method · 0.95
testTerm1Method · 0.95
testString1Method · 0.95
testString2Method · 0.95
testString3Method · 0.95

Calls 1

oneSolutionMethod · 0.95

Tested by 15

test0Method · 0.76
test1Method · 0.76
test3Method · 0.76
setUpMethod · 0.76
errorTermTranslation1Method · 0.76
testStackedQueries1Method · 0.76
testTerm1Method · 0.76
testString1Method · 0.76
testString2Method · 0.76
testString3Method · 0.76