示例#1
0
        public override bool Equals(Object o)
        {
            if (this == o)
            {
                return(true);
            }
            if ((o == null) || (this.GetType() != o.GetType()))
            {
                return(false);
            }
            UnarySentence ns = (UnarySentence)o;

            return(ns.negated.Equals(negated));
        }
示例#2
0
		public virtual Object visitNotSentence(UnarySentence ns, Object arg) 
		{
			Hashtable s =(Hashtable)arg;
			return new SetOps().union(s,(Hashtable)ns.getNegated().accept(this,arg));
		}
示例#3
0
文件: Model.cs 项目: langeds/aima
		public Object visitNotSentence(UnarySentence fs, Object arg) 
		{
			Object negatedValue = fs.getNegated().accept(this,null);
			if (negatedValue != null) 
			{
				return (!((bool) negatedValue));
			} 
			else 
			{
				return null;
			}
		}