|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectai.krr.fol.HerbrandGenerator
public class HerbrandGenerator
Nested Class Summary | |
---|---|
(package private) static class |
HerbrandGenerator.HerbrandUniverse
|
Field Summary | |
---|---|
protected int |
HUL
|
protected java.io.OutputStream |
traceStream
the stream to which trace output should be written or null, the default value, for no tracing |
Constructor Summary | |
---|---|
HerbrandGenerator()
|
Method Summary | |
---|---|
boolean |
equivalent(Sentence stmt1,
Sentence stmt2)
This function tests whether the two given Sentences are equivalent. |
boolean |
follows(Sentence stmt,
java.util.Collection<Sentence> axioms)
This function tests whether the given Sentence logically follows from the given Collection of Sentences. |
protected static java.util.List<Clause> |
getGroundInstances(java.util.Set<Clause> clauses,
HerbrandGenerator.HerbrandUniverse hu)
|
boolean |
isInconsistent(Sentence stmt)
This function tests whether the given Sentence in first-order logic is inconsistent. |
boolean |
isInconsistent(java.util.Set<Clause> clauses)
|
boolean |
isValid(Sentence stmt)
This function tests whether the given Sentence in first-order logic is valid. |
void |
printTrace(java.lang.String msg)
This function must be called to print out tracing messages. |
void |
setHuLimit(int limit)
|
void |
setTraceStream(java.io.OutputStream stream)
This function can be used to activate tracing of the search activity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.OutputStream traceStream
protected int HUL
Constructor Detail |
---|
public HerbrandGenerator()
Method Detail |
---|
public boolean isValid(Sentence stmt)
TheoremProver
This function tests whether the given Sentence in first-order logic is valid. A Sentence is valid if and only if it is true under all possible Interpretations.
isValid
in interface TheoremProver
stmt
- the Sentence to be tested
public boolean equivalent(Sentence stmt1, Sentence stmt2)
TheoremProver
This function tests whether the two given Sentences are equivalent. Two Sentences are equivalent if they evaluate to the same truth value under all possible Interpretations.
equivalent
in interface TheoremProver
stmt1
- the Sentence that may be equivalent to stmt2stmt2
- the Sentence that may be equivalent to stmt1
public boolean follows(Sentence stmt, java.util.Collection<Sentence> axioms)
TheoremProver
This function tests whether the given Sentence logically follows from the given Collection of Sentences.
follows
in interface TheoremProver
stmt
- the Sentence to be testedaxioms
- Sentences from which the axiom might follow
public boolean isInconsistent(Sentence stmt)
TheoremProver
This function tests whether the given Sentence in first-order logic is inconsistent. A Sentence is inconsistent if and only if it is false under all possible Interpretations.
isInconsistent
in interface TheoremProver
stmt
- the Sentence to be tested
public boolean isInconsistent(java.util.Set<Clause> clauses)
public void setHuLimit(int limit)
public void setTraceStream(java.io.OutputStream stream)
This function can be used to activate tracing of the search activity. Setting the trace stream to null switches off tracing completely. Otherwise a trace is written to the given stream.
stream
- the OutputStream to which the trace should be written or
null for no tracingpublic void printTrace(java.lang.String msg)
This function must be called to print out tracing messages. Note that this function does not test whether tracing has been switched off, i.e. whether traceStream==null.
msg
- the message to be printed to the trace streamprotected static java.util.List<Clause> getGroundInstances(java.util.Set<Clause> clauses, HerbrandGenerator.HerbrandUniverse hu)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |