aima.core.logic.fol.inference.proof.ProofStepFoChAlreadyAFact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
The newest version!
package aima.core.logic.fol.inference.proof;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import aima.core.logic.fol.kb.data.Literal;
/**
* @author Ciaran O'Reilly
*
*/
public class ProofStepFoChAlreadyAFact extends AbstractProofStep {
//
private static final List _noPredecessors = new ArrayList();
//
private Literal fact = null;
public ProofStepFoChAlreadyAFact(Literal fact) {
this.fact = fact;
}
//
// START-ProofStep
@Override
public List getPredecessorSteps() {
return Collections.unmodifiableList(_noPredecessors);
}
@Override
public String getProof() {
return fact.toString();
}
@Override
public String getJustification() {
return "Already a known fact in the KB.";
}
// END-ProofStep
//
}