- Timestamp:
- 05/17/10 15:55:45 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3.csproj ¶
r3817 r3824 128 128 <Compile Include="Symbols\Argument.cs" /> 129 129 <Compile Include="Symbols\ArgumentTreeNode.cs" /> 130 <Compile Include="Symbols\ReadOnlySymbol.cs" /> 130 131 <Compile Include="Symbols\StartSymbol.cs" /> 131 132 <Compile Include="Symbols\InvokeFunction.cs" /> -
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Argument.cs ¶
r3484 r3824 29 29 [StorableClass] 30 30 [Item("Argument", "Symbol that represents a function argument.")] 31 public sealed class Argument : Symbol { 32 public override bool CanChangeName { 33 get { 34 return false; 35 } 36 } 31 public sealed class Argument : ReadOnlySymbol { 37 32 [Storable] 38 33 private int argumentIndex; -
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Defun.cs ¶
r3462 r3824 29 29 [StorableClass] 30 30 [Item("Defun", "Symbol that represents a function defining node.")] 31 public sealed class Defun : Symbol { 32 public override bool CanChangeName { 33 get { 34 return false; 35 } 36 } 37 31 public sealed class Defun : ReadOnlySymbol { 38 32 public override SymbolicExpressionTreeNode CreateTreeNode() { 39 33 return new DefunTreeNode(this); -
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/InvokeFunction.cs ¶
r3484 r3824 30 30 [StorableClass] 31 31 [Item("InvokeFunction", "Symbol that the invokation of another function.")] 32 public sealed class InvokeFunction : Symbol {32 public sealed class InvokeFunction : ReadOnlySymbol { 33 33 public override bool CanChangeName { 34 34 get { -
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/ProgramRootSymbol.cs ¶
r3462 r3824 26 26 [StorableClass] 27 27 [Item("ProgramRootSymbol", "Special symbol that represents the program root node of a symbolic expression tree.")] 28 public sealed class ProgramRootSymbol : Symbol { 29 public override bool CanChangeName { 30 get { 31 return false; 32 } 33 } 34 28 public sealed class ProgramRootSymbol : ReadOnlySymbol { 35 29 public override SymbolicExpressionTreeNode CreateTreeNode() { 36 30 return new SymbolicExpressionTreeTopLevelNode(this); -
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/StartSymbol.cs ¶
r3462 r3824 26 26 [StorableClass] 27 27 [Item("StartSymbol", "Special symbol that represents the starting node of the result producing branch of a symbolic expression tree.")] 28 public sealed class StartSymbol : Symbol { 29 public override bool CanChangeName { 30 get { 31 return false; 32 } 33 } 28 public sealed class StartSymbol : ReadOnlySymbol { 34 29 35 30 public override SymbolicExpressionTreeNode CreateTreeNode() { -
TabularUnified trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Symbol.cs ¶
r3742 r3824 41 41 set { 42 42 if (value < 0.0) throw new ArgumentException("InitialFrequency must be positive"); 43 initialFrequency = value; 43 if (value != initialFrequency) { 44 initialFrequency = value; 45 OnChanged(EventArgs.Empty); 46 } 44 47 } 48 } 49 public override bool CanChangeName { 50 get { return false; } 45 51 } 46 52 #endregion … … 58 64 59 65 public override IDeepCloneable Clone(Cloner cloner) { 60 Symbol clone = (Symbol) 66 Symbol clone = (Symbol)base.Clone(cloner); 61 67 clone.initialFrequency = initialFrequency; 62 68 return clone; 63 69 } 70 71 #region events 72 public event EventHandler Changed; 73 protected void OnChanged(EventArgs e) { 74 EventHandler handlers = Changed; 75 if (handlers != null) 76 handlers(this, e); 77 } 78 #endregion 64 79 } 65 80 }
Note: See TracChangeset
for help on using the changeset viewer.