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