|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cs.ai.kreator.logic.Literal
edu.cs.ai.kreator.logic.SpiritGrammarConform
edu.cs.ai.kreator.logic.StrictNegation
public class StrictNegation
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.cs.ai.kreator.logic.Literal |
---|
Literal.TruthValue |
Constructor Summary | |
---|---|
StrictNegation(GeneralizedAtom atom)
Constructs a negation with the given atom. |
Method Summary | |
---|---|
int |
compareTo(Literal other)
|
boolean |
equals(java.lang.Object obj)
compares if this literals is equal to the other literal. |
java.util.Map<Variable,Term> |
extendUnifier(Literal l,
java.util.Map<Variable,Term> unifier)
Extends the given unifier "u" to a unifier "u2" such that "u2" transforms this literal into the one given. |
GeneralizedAtom |
getAtom()
Returns the atom of this literal. |
Literal |
getComplement()
Returns the complement (negation) of this literal. |
java.util.Set<Constant> |
getConstants()
Returns the set of constants, that appear in this literal. |
java.util.Set<Literal> |
getInstantiations(LanguageFactory language)
Computes all ground literals of this literal with the language, i.e. |
java.util.List<Term> |
getParameters()
Returns the list of parameters of that literal. |
GeneralizedPredicate |
getPredicate()
Returns the predicate of this literal. |
java.util.Set<Variable> |
getVariables()
Returns the set of variables, that appear in this literal. |
int |
hashCode()
|
Literal |
substitute(java.util.Map<? extends Variable,? extends Term> substitution)
This method substitutes in this literal each occurence of a variable that is a key in the given substitution map by its value in the same given substitution map. |
java.lang.String |
toLatex()
Returns a Latex grammar conform string to generate variables, rules (conditionals) etc. |
java.lang.String |
toSPIRITgrammar()
Returns a SPIRIT grammar conform string to generate variables and SPIRIT rules (conditionals). |
java.lang.String |
toString()
|
Methods inherited from class edu.cs.ai.kreator.logic.Literal |
---|
extendUnifier, extendUnifiers, getUnifier, getUnifiers, isConsistent, substituteAll |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StrictNegation(GeneralizedAtom atom)
atom
- a bayesian atom.Method Detail |
---|
public java.util.Set<Constant> getConstants()
Literal
getConstants
in class Literal
public java.util.Set<Variable> getVariables()
Literal
getVariables
in class Literal
public java.util.List<Term> getParameters()
Literal
getParameters
in class Literal
public Literal substitute(java.util.Map<? extends Variable,? extends Term> substitution)
Literal
substitute
in class Literal
substitution
- a map from variables to constants.
public GeneralizedAtom getAtom()
Literal
getAtom
in class Literal
public GeneralizedPredicate getPredicate()
Literal
getPredicate
in class Literal
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(Literal other)
public java.lang.String toLatex()
Latexable
public Literal getComplement()
Literal
getComplement
in class Literal
public java.lang.String toSPIRITgrammar()
SpiritGrammarConform
toSPIRITgrammar
in class SpiritGrammarConform
public java.util.Map<Variable,Term> extendUnifier(Literal l, java.util.Map<Variable,Term> unifier)
Literal
extendUnifier
in class Literal
l
- a literalunifier
- a (partial) unifier.
public java.util.Set<Literal> getInstantiations(LanguageFactory language)
Literal
getInstantiations
in class Literal
language
- a language.
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
Literal
equals
in class Literal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |