AIMA.Core.Logic.FOL.KB.Data.Literal.newInstance C# (CSharp) Method

newInstance() public method

public newInstance ( AtomicSentence atom ) : Literal
atom AtomicSentence
return Literal
        public virtual Literal newInstance(AtomicSentence atom)
        {
            return new Literal(atom, negativeLiteral);
        }

Usage Example

Beispiel #1
0
 public Literal subst(Dictionary<Variable, Term> theta, Literal aLiteral)
 {
     return aLiteral.newInstance((AtomicSentence)aLiteral
             .getAtomicSentence().accept(this, theta));
 }