Example #1
0
 public OperatorNode(MathNode parent, Enum op)
 {
     this.parent = parent;
     this.subtree = new List<MathNode>();
     this.data = op;
 }
Example #2
0
 public void AddNode(MathNode node)
 {
     this.subtree.Add(node);
 }
Example #3
0
 public OperatorNode(MathNode parent)
 {
     this.parent = parent;
     this.subtree = new List<MathNode>();
 }
Example #4
0
 public MathNode(MathNode parent)
 {
     this.parent = parent;
 }
Example #5
0
        public LeafNode(Model m, MathNode parent, String type)
        {
            this.model = m;
            this.parent = parent;

            if (type == "integer" || type == "real" ||
                type == "rational" || type == "e-notation")
            {
                this.type = type;
            }
            else if (type == null)
            {
                this.type = "real";
            }
            else // not a number, it's a string id
            {
                this.type = "string";
            }
        }
Example #6
0
 public LeafNode(Model m, MathNode parent, Enum constant)
 {
     this.model = m;
     this.parent = parent;
     this.data = constant;
 }
Example #7
0
 public LeafNode(Model m, MathNode parent)
 {
     this.model = model;
     this.parent = parent;
 }