Changeset 6387 for branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols
- Timestamp:
- 06/08/11 10:42:57 (14 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/Argument.cs
r6233 r6387 32 32 public const string ArgumentName = "Argument"; 33 33 public const string ArgumentDescription = "Symbol that represents a function argument."; 34 private const int minimumArity = 0; 35 private const int maximumArity = 0; 36 37 public override int MinimumArity { 38 get { return minimumArity; } 39 } 40 public override int MaximumArity { 41 get { return maximumArity; } 42 } 43 34 44 [Storable] 35 45 private int argumentIndex; -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/Defun.cs
r5809 r6387 32 32 public const string DefunName = "Defun"; 33 33 public const string DefunDescription = "Symbol that represents a function defining node."; 34 private const int minimumArity = 1; 35 private const int maximumArity = 1; 36 37 public override int MinimumArity { 38 get { return minimumArity; } 39 } 40 public override int MaximumArity { 41 get { return maximumArity; } 42 } 34 43 35 44 [StorableConstructor] -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/GroupSymbol.cs
r6377 r6387 28 28 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 29 29 public sealed class GroupSymbol : Symbol { 30 private const int minimumArity = 0; 31 private const int maximumArity = 0; 32 33 public override int MinimumArity { 34 get { return minimumArity; } 35 } 36 public override int MaximumArity { 37 get { return maximumArity; } 38 } 39 30 40 private ObservableSet<ISymbol> symbols; 31 41 public IObservableSet<ISymbol> SymbolsCollection { -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/InvokeFunction.cs
r6233 r6387 32 32 public const string InvokeFunctionName = "InvokeFunction"; 33 33 public const string InvokeFunctionDescription = "Symbol that the invocation of another function."; 34 private const int minimumArity = 0; 35 private const int maximumArity = byte.MaxValue; 36 37 public override int MinimumArity { 38 get { return minimumArity; } 39 } 40 public override int MaximumArity { 41 get { return maximumArity; } 42 } 34 43 35 44 [Storable] -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/ProgramRootSymbol.cs
r5809 r6387 29 29 public const string ProgramRootSymbolName = "ProgramRootSymbol"; 30 30 public const string ProgramRootSymbolDescription = "Special symbol that represents the program root node of a symbolic expression tree."; 31 private const int minimumArity = 1; 32 private const int maximumArity = byte.MaxValue; 33 34 public override int MinimumArity { 35 get { return minimumArity; } 36 } 37 public override int MaximumArity { 38 get { return maximumArity; } 39 } 31 40 32 41 [StorableConstructor] -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/StartSymbol.cs
r5809 r6387 29 29 public const string StartSymbolName = "StartSymbol"; 30 30 public const string StartSymbolDescription = "Special symbol that represents the starting node of the result producing branch of a symbolic expression tree."; 31 private const int minimumArity = 1; 32 private const int maximumArity = 1; 33 34 public override int MinimumArity { 35 get { return minimumArity; } 36 } 37 public override int MaximumArity { 38 get { return maximumArity; } 39 } 31 40 32 41 [StorableConstructor] 33 private StartSymbol(bool deserializing) : base(deserializing) { } 42 private StartSymbol(bool deserializing) 43 : base(deserializing) { 44 } 34 45 private StartSymbol(StartSymbol original, Cloner cloner) : base(original, cloner) { } 35 46 public StartSymbol() : base(StartSymbol.StartSymbolName, StartSymbol.StartSymbolDescription) { } -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/Symbol.cs
r6299 r6387 73 73 get { return false; } 74 74 } 75 76 public abstract int MinimumArity { get; } 77 public abstract int MaximumArity { get; } 75 78 #endregion 76 79
Note: See TracChangeset
for help on using the changeset viewer.