Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/08/11 10:42:57 (13 years ago)
Author:
mkommend
Message:

#1540: Added min and max arity to symbols and renamed SymbolicExpressionTreeNode.SubtreesCount to SymbolicExpressionTreeNode.SubtreeCount.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarEditorView.cs

    r6377 r6387  
    178178      VisualSymbolicExpressionTreeNode clickedNode = (VisualSymbolicExpressionTreeNode)sender;
    179179      var selectedNode = clickedNode.SymbolicExpressionTreeNode;
    180       if (selectedNode.SubtreesCount == 0) {
     180      if (selectedNode.SubtreeCount == 0) {
    181181        if (!selectedSymbolicExpressionTreeNodes.Contains(selectedNode))
    182182          selectedSymbolicExpressionTreeNodes.Add(selectedNode);
     
    349349  [NonDiscoverableType]
    350350  internal class DummySymbol : Symbol {
     351    private const int minimumArity = 1;
     352    private const int maximumArity = byte.MaxValue;
     353
     354    public override int MinimumArity {
     355      get { return minimumArity; }
     356    }
     357    public override int MaximumArity {
     358      get { return maximumArity; }
     359    }
     360
    351361    public DummySymbol(DummySymbol original, Cloner cloner) : base(original, cloner) { }
    352362    public DummySymbol(string name) : base(name, "DummySymbol for views") { }
Note: See TracChangeset for help on using the changeset viewer.