AIMA.Core.Logic.Propositional.Algorithms.Model.visitNotSentence C# (CSharp) Method

visitNotSentence() public method

public visitNotSentence ( UnarySentence fs, Object arg ) : Object
fs AIMA.Core.Logic.Propositional.Parsing.Ast.UnarySentence
arg Object
return Object
	public Object visitNotSentence(UnarySentence fs, Object arg) {
		Object negatedValue = fs.getNegated().accept(this, null);
		if (negatedValue != null) {
			return !((bool) negatedValue);
		} else {
			return null;
		}
	}