示例#1
0
        //todo переделать с проверкой типа значения у attribuyteType и без tryPharse
        //public bool GetBoolValue()
        //{
        //	bool boolRet;
        //	if (Boolean.TryParse(_value, out boolRet))
        //	{
        //		return boolRet;
        //	}

        //	throw new Exception();
        //}


        //public int GetIntValue()
        //{
        //	int intRet;
        //	if (Int32.TryParse(_value, out intRet))
        //	{
        //		return intRet;
        //	}

        //	throw new Exception();
        //}

        //public double GetDoubleValue()
        //{
        //	double floatRet;
        //	if (Double.TryParse(_value, out floatRet))
        //	{
        //		return floatRet;
        //	}

        //	throw new Exception();
        //}

        #region перегрузка object

        public override bool Equals(object obj)
        {
            AttributeValue otc = obj as AttributeValue;

            return(otc != null && (_type.Equals(otc.Type) && _value.Equals(otc.Value)));
        }
示例#2
0
 public ArguedLearnableExample(IEnumerable <AttributeValue> attributes, AttributeValue decisiveAttribute,
                               Expression becauseExpression, Expression despiteExpression) : base(attributes, decisiveAttribute)
 {
     _becauseExpression = becauseExpression;
     _despiteExpression = despiteExpression;
 }
示例#3
0
 public ProductionRule(IExpressionMember condition, AttributeValue result)
 {
     _condition = condition;
     _result    = result;
     IsDefault  = false;
 }