- Timestamp:
- 07/02/10 11:38:04 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Argument.cs
r3824 r3993 28 28 /// </summary> 29 29 [StorableClass] 30 [Item( "Argument", "Symbol that represents a function argument.")]30 [Item(Argument.ArgumentName, Argument.ArgumentDescription)] 31 31 public sealed class Argument : ReadOnlySymbol { 32 public const string ArgumentName = "Argument"; 33 public const string ArgumentDescription = "Symbol that represents a function argument."; 32 34 [Storable] 33 35 private int argumentIndex; … … 36 38 } 37 39 40 public override bool CanChangeDescription { 41 get { return false; } 42 } 43 44 [StorableConstructor] 38 45 private Argument() : base() { } 39 46 40 47 public Argument(int argumentIndex) 41 : base( ) {48 : base("ARG" + argumentIndex, Argument.ArgumentDescription) { 42 49 this.argumentIndex = argumentIndex; 43 50 this.name = "ARG" + argumentIndex; -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Defun.cs
r3983 r3993 28 28 /// </summary> 29 29 [StorableClass] 30 [Item( "Defun", "Symbol that represents a function defining node.")]30 [Item(Defun.DefunName, Defun.DefunDescription)] 31 31 public sealed class Defun : ReadOnlySymbol { 32 public Defun() : base() { } 32 public const string DefunName = "Defun"; 33 public const string DefunDescription = "Symbol that represents a function defining node."; 34 35 public Defun() : base(Defun.DefunName, Defun.DefunDescription) { } 36 [StorableConstructor] 37 protected Defun(bool deserializing) : base(deserializing) { } 33 38 34 39 public override SymbolicExpressionTreeNode CreateTreeNode() { -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/InvokeFunction.cs
r3824 r3993 29 29 /// </summary> 30 30 [StorableClass] 31 [Item( "InvokeFunction", "Symbol that the invokation of another function.")]31 [Item(InvokeFunction.InvokeFunctionName, InvokeFunction.InvokeFunctionDescription)] 32 32 public sealed class InvokeFunction : ReadOnlySymbol { 33 public const string InvokeFunctionName = "InvokeFunction"; 34 public const string InvokeFunctionDescription = "Symbol that the invokation of another function."; 33 35 public override bool CanChangeName { 34 36 get { … … 46 48 } 47 49 48 private InvokeFunction() : base() { }49 50 [StorableConstructor] 51 private InvokeFunction(bool deserializing) : base(deserializing) { } 50 52 public InvokeFunction(string functionName) 51 : base( ) {53 : base("Invoke: " + functionName, InvokeFunction.InvokeFunctionDescription) { 52 54 this.FunctionName = functionName; 53 this.name = "Invoke: " + functionName;54 55 } 55 56 -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/ProgramRootSymbol.cs
r3824 r3993 25 25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols { 26 26 [StorableClass] 27 [Item( "ProgramRootSymbol", "Special symbol that represents the program root node of a symbolic expression tree.")]27 [Item(ProgramRootSymbol.ProgramRootSymbolName, ProgramRootSymbol.ProgramRootSymbolDescription)] 28 28 public sealed class ProgramRootSymbol : ReadOnlySymbol { 29 public const string ProgramRootSymbolName = "ProgramRootSymbol"; 30 public const string ProgramRootSymbolDescription = "Special symbol that represents the program root node of a symbolic expression tree."; 31 32 public ProgramRootSymbol() : base(ProgramRootSymbol.ProgramRootSymbolName, ProgramRootSymbol.ProgramRootSymbolDescription) { } 33 [StorableConstructor] 34 private ProgramRootSymbol(bool deserializing) : base(deserializing) { } 35 29 36 public override SymbolicExpressionTreeNode CreateTreeNode() { 30 37 return new SymbolicExpressionTreeTopLevelNode(this); -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/ReadOnlySymbol.cs
r3824 r3993 50 50 } 51 51 52 protected ReadOnlySymbol() 53 : base() { 54 this.name = ItemName; 55 this.description = ItemDescription; 56 initialFrequency = 1.0; 57 } 52 protected ReadOnlySymbol() : base() { } 53 protected ReadOnlySymbol(string name, string description) : base(name, description) { } 54 [StorableConstructor] 55 protected ReadOnlySymbol(bool deserializing) : base(deserializing) { } 58 56 } 59 57 } -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Symbol.cs
r3824 r3993 54 54 protected Symbol() 55 55 : base() { 56 this.name = ItemName;57 this.description = ItemDescription;58 56 initialFrequency = 1.0; 59 57 } 58 59 protected Symbol(string name, string description) 60 : base(name, description) { 61 initialFrequency = 1.0; 62 } 63 64 [StorableConstructor] 65 protected Symbol(bool deserializing) : base(deserializing) { } 60 66 61 67 public virtual SymbolicExpressionTreeNode CreateTreeNode() {
Note: See TracChangeset
for help on using the changeset viewer.