Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/16/21 11:22:29 (3 years ago)
Author:
chaider
Message:

#3140

  • Removed setter from INumericTreeNode
  • Fixed SymbolicExpressionImporter check for constants and number individually
  • Set exponent of power in DerivativeCalculator to number
  • Set number in TreeConstantNodeEditDialog and ExpressionTreeChart
  • Fixed setting of VariableRanges in DataAnalysisProblemData
Location:
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicExpressionTreeChart.cs

    r18115 r18142  
    104104        var symbol = dialog.SelectedSymbol;
    105105        var node = symbol.CreateTreeNode();
    106         if (node is INumericTreeNode numTreeNode) {
     106        if (node is NumberTreeNode numTreeNode) {
    107107          numTreeNode.Value = double.Parse(dialog.numberValueTextBox.Text);
    108108        } else if (node is VariableTreeNode) {
     
    132132      ISymbolicExpressionTreeNode newNode = null;
    133133      var result = DialogResult.Cancel;
    134       if (node is INumericTreeNode) {
     134      if (node is NumberTreeNode) {
    135135        using (var dialog = new NumberNodeEditDialog(node)) {
    136136          dialog.ShowDialog(this);
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/TreeEditDialogs/SymbolicExpressionTreeConstantNodeEditDialog.cs

    r18115 r18142  
    2929namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views {
    3030  public partial class NumberNodeEditDialog : Form {
    31     private INumericTreeNode numberTreeNode;
    32     public INumericTreeNode NewNode {
     31    private NumberTreeNode numberTreeNode;
     32    public NumberTreeNode NewNode {
    3333      get { return numberTreeNode; }
    3434      set {
    3535        if (InvokeRequired)
    36           Invoke(new Action<SymbolicExpressionTreeNode>(x => numberTreeNode = (INumericTreeNode)x), value);
     36          Invoke(new Action<SymbolicExpressionTreeNode>(x => numberTreeNode = (NumberTreeNode)x), value);
    3737        else
    3838          numberTreeNode = value;
     
    4343      InitializeComponent();
    4444      oldValueTextBox.TabStop = false; // cannot receive focus using tab key
    45       NewNode = (INumericTreeNode)node;
     45      NewNode = (NumberTreeNode)node;
    4646      InitializeFields();
    4747    }
     
    103103      // we impose an extra validation condition: that the new value is different from the original value
    104104      if (numberTreeNode.Value.Equals(value)) return;
    105 
    106105      numberTreeNode.Value = value;
    107106      DialogResult = DialogResult.OK;
Note: See TracChangeset for help on using the changeset viewer.