Пример #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
		public Object visitNotSentence(UnarySentence fs, Object arg) 
		{
			Object negatedValue = fs.getNegated().accept(this,null);
			if (negatedValue != null) 
			{
				return (!((bool) negatedValue));
			} 
			else 
			{
				return null;
			}
		}