public class HerbrandBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<FOLAtom> |
atoms
The atoms of this Herbrand base.
|
| Constructor and Description |
|---|
HerbrandBase(FolSignature sig)
Creates a new Herbrand base for the given signature.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<HerbrandInterpretation> |
allHerbrandInterpretations()
Computes all possible Herbrand interpretations of this Herbrand
base, i.e.
|
private java.util.Set<FOLAtom> |
getAllInstantiations(FolSignature sig,
Predicate p,
java.util.List<Term<?>> arguments)
Computes all instantiations of the predicate "p" relative to the signature "sig"
where "arguments" defines the first arguments of the atoms.
|
java.util.Set<FOLAtom> |
getAtoms()
Returns all atoms of this Herbrand base.
|
private java.util.Set<FOLAtom> atoms
public HerbrandBase(FolSignature sig) throws java.lang.IllegalArgumentException
sig - the underlying first-order signature for
this Herbrand base. There should be no functors defined in "sig"IllegalArgumentationException - if "sig" contains a functor.java.lang.IllegalArgumentExceptionprivate java.util.Set<FOLAtom> getAllInstantiations(FolSignature sig, Predicate p, java.util.List<Term<?>> arguments)
sig - a signature for which the instantiations should be computed.p - the predicate of the atoms.arguments - the currently set arguments of the atoms.public java.util.Set<HerbrandInterpretation> allHerbrandInterpretations()
public java.util.Set<FOLAtom> getAtoms()