Changeset 6760 for branches/PersistenceSpeedUp/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols
- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/Argument.cs
r5809 r6760 38 38 } 39 39 40 public override bool CanChangeDescription {41 get { return false; }42 }43 44 40 [StorableConstructor] 45 41 private Argument(bool deserializing) : base(deserializing) { } -
branches/PersistenceSpeedUp/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/InvokeFunction.cs
r5809 r6760 20 20 #endregion 21 21 22 using System;23 22 using HeuristicLab.Common; 24 23 using HeuristicLab.Core; … … 38 37 public string FunctionName { 39 38 get { return functionName; } 40 set {41 if (value == null) throw new ArgumentNullException();42 functionName = value;43 }44 39 } 45 40 … … 53 48 public InvokeFunction(string functionName) 54 49 : base("Invoke: " + functionName, InvokeFunction.InvokeFunctionDescription) { 55 this. FunctionName = functionName;50 this.functionName = functionName; 56 51 } 57 52 -
branches/PersistenceSpeedUp/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/Symbol.cs
r5809 r6760 43 43 } 44 44 public override bool CanChangeName { 45 get { return false; }45 get { return !(this is IReadOnlySymbol); } 46 46 } 47 47 public override bool CanChangeDescription { … … 56 56 initialFrequency = original.initialFrequency; 57 57 } 58 protected Symbol()59 : base() {60 initialFrequency = 1.0;61 }62 58 63 59 protected Symbol(string name, string description) … … 65 61 initialFrequency = 1.0; 66 62 } 67 68 63 69 64 public virtual ISymbolicExpressionTreeNode CreateTreeNode() {
Note: See TracChangeset
for help on using the changeset viewer.