Ejemplo n.º 1
0
 public OperatorNode(MathNode parent, Enum op)
 {
     this.parent = parent;
     this.subtree = new List<MathNode>();
     this.data = op;
 }
Ejemplo n.º 2
0
 public void AddNode(MathNode node)
 {
     this.subtree.Add(node);
 }
Ejemplo n.º 3
0
 public OperatorNode(MathNode parent)
 {
     this.parent = parent;
     this.subtree = new List<MathNode>();
 }
Ejemplo n.º 4
0
 public MathNode(MathNode parent)
 {
     this.parent = parent;
 }
Ejemplo n.º 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";
            }
        }
Ejemplo n.º 6
0
 public LeafNode(Model m, MathNode parent, Enum constant)
 {
     this.model = m;
     this.parent = parent;
     this.data = constant;
 }
Ejemplo n.º 7
0
 public LeafNode(Model m, MathNode parent)
 {
     this.model = model;
     this.parent = parent;
 }