public override bool IsMatch(ValueInstance other) { ClosedValueInstance vi = other as ClosedValueInstance; HCObjectSet <FeatureValue> intersection = m_values.Intersection(vi.m_values); return(intersection.Count > 0); }
public bool Equals(ClosedValueInstance other) { if (other == null) { return(false); } return(m_values.Equals(other.m_values)); }
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); } }
public bool Equals(ClosedValueInstance other) { if (other == null) return false; return m_values.Equals(other.m_values); }
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; } }