Exemplo n.º 1
0
        public ArithmeticExpression MakeArithmeticSubExperssion(string op, ArithmeticExpression lhs, ArithmeticExpression rhs)
        {
            ArithemticOperator arithmeticOP = new ArithemticOperator();
            SubExpressionType newArithmetic = new SubExpressionType();

            if (op == "+")
                arithmeticOP.AddAdd(new Altova.Types.SchemaString("Addition"));
            else if (op == "-")
                arithmeticOP.AddSubtract(new Altova.Types.SchemaString("Subtract"));
            else if (op == "*")
                arithmeticOP.AddMultiply(new Altova.Types.SchemaString("Multiply"));
            else if (op == "/")
                arithmeticOP.AddDivide(new Altova.Types.SchemaString("Divide"));
            else if (op == "^")
                arithmeticOP.AddPower(new Altova.Types.SchemaString("Mod"));
            else if (op == "Log")
                arithmeticOP.AddLog(new Altova.Types.SchemaString("Log"));

            newArithmetic.AddLHSArithmeticExpression(lhs);
            newArithmetic.AddArithmeticOperator(arithmeticOP);
            newArithmetic.AddRHSArithmeticExpression(rhs);

            return MakeArithmeticExperssion(newArithmetic);
        }
		public void ReplaceArithmeticOperatorAt(ArithemticOperator newValue, int index)
		{
			ReplaceDomElementAt("", "ArithmeticOperator", index, newValue);
		}
		public void InsertArithmeticOperatorAt(ArithemticOperator newValue, int index)
		{
			InsertDomElementAt("", "ArithmeticOperator", index, newValue);
		}
		public void AddArithmeticOperator(ArithemticOperator newValue)
		{
			AppendDomElement("", "ArithmeticOperator", newValue);
		}
Exemplo n.º 5
0
 public LogEnumerator(ArithemticOperator par)
 {
     parent = par;
     nIndex = -1;
 }
Exemplo n.º 6
0
 public MultiplyEnumerator(ArithemticOperator par)
 {
     parent = par;
     nIndex = -1;
 }
Exemplo n.º 7
0
 public SubtractEnumerator(ArithemticOperator par)
 {
     parent = par;
     nIndex = -1;
 }
Exemplo n.º 8
0
 public void ReplaceArithmeticOperatorAt(ArithemticOperator newValue, int index)
 {
     ReplaceDomElementAt("", "ArithmeticOperator", index, newValue);
 }
Exemplo n.º 9
0
 public void InsertArithmeticOperatorAt(ArithemticOperator newValue, int index)
 {
     InsertDomElementAt("", "ArithmeticOperator", index, newValue);
 }
Exemplo n.º 10
0
 public void AddArithmeticOperator(ArithemticOperator newValue)
 {
     AppendDomElement("", "ArithmeticOperator", newValue);
 }
			public LogEnumerator(ArithemticOperator par) 
			{
				parent = par;
				nIndex = -1;
			}
			public MultiplyEnumerator(ArithemticOperator par) 
			{
				parent = par;
				nIndex = -1;
			}
			public SubtractEnumerator(ArithemticOperator par) 
			{
				parent = par;
				nIndex = -1;
			}