Esempio n. 1
0
        public override bool IsMatch(ValueInstance other)
        {
            ClosedValueInstance        vi           = other as ClosedValueInstance;
            HCObjectSet <FeatureValue> intersection = m_values.Intersection(vi.m_values);

            return(intersection.Count > 0);
        }
Esempio n. 2
0
 public bool Equals(ClosedValueInstance other)
 {
     if (other == null)
     {
         return(false);
     }
     return(m_values.Equals(other.m_values));
 }
Esempio n. 3
0
        public override bool Unify(ValueInstance other, out ValueInstance output)
        {
            ClosedValueInstance vi = other as ClosedValueInstance;

            HCObjectSet <FeatureValue> intersection = m_values.Intersection(vi.m_values);

            if (intersection.Count > 0)
            {
                output = new ClosedValueInstance(intersection);
                return(true);
            }
            else
            {
                output = null;
                return(false);
            }
        }
Esempio n. 4
0
		public bool Equals(ClosedValueInstance other)
		{
			if (other == null)
				return false;
			return m_values.Equals(other.m_values);
		}
Esempio n. 5
0
		public override bool Unify(ValueInstance other, out ValueInstance output)
		{
			ClosedValueInstance vi = other as ClosedValueInstance;

			HCObjectSet<FeatureValue> intersection = m_values.Intersection(vi.m_values);
			if (intersection.Count > 0)
			{
				output = new ClosedValueInstance(intersection);
				return true;
			}
			else
			{
				output = null;
				return false;
			}
		}