Changeset 6618 for branches/GP.Grammar.Editor/HeuristicLab.Core/3.3
- Timestamp:
- 08/01/11 17:48:53 (13 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Core/3.3
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Core/3.3/Collections/ItemSet.cs
r5445 r6618 54 54 public ItemSet() : base() { } 55 55 public ItemSet(IEnumerable<T> collection) : base(collection) { } 56 public ItemSet(IEqualityComparer<T> comparer) : base(comparer) { } 57 public ItemSet(IEnumerable<T> collection, IEqualityComparer<T> comparer) : base(collection, comparer) { } 56 58 57 59 public object Clone() { -
branches/GP.Grammar.Editor/HeuristicLab.Core/3.3/HeuristicLab.Core-3.3.csproj
r6103 r6618 191 191 <Compile Include="HeuristicLabCorePlugin.cs" /> 192 192 <Compile Include="Properties\AssemblyInfo.cs" /> 193 <Compile Include="ThreadSafeLog.cs" /> 193 194 <Compile Include="Variable.cs" /> 194 195 </ItemGroup> -
branches/GP.Grammar.Editor/HeuristicLab.Core/3.3/HeuristicLabCorePlugin.cs.frame
r6099 r6618 29 29 /// Plugin class for HeuristicLab.Core plugin. 30 30 /// </summary> 31 [Plugin("HeuristicLab.Core", "3.3. 4.$WCREV$")]31 [Plugin("HeuristicLab.Core", "3.3.5.$WCREV$")] 32 32 [PluginFile("HeuristicLab.Core-3.3.dll", PluginFileType.Assembly)] 33 33 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/GP.Grammar.Editor/HeuristicLab.Core/3.3/Log.cs
r5445 r6618 43 43 } 44 44 45 [Storable] 46 protected long maxMessageCount; 47 public virtual long MaxMessageCount { 48 get { return maxMessageCount; } 49 } 50 45 51 [StorableConstructor] 46 52 protected Log(bool deserializing) : base(deserializing) { } 47 53 protected Log(Log original, Cloner cloner) 48 54 : base(original, cloner) { 49 messages = new List<string>(original.messages); 55 this.messages = new List<string>(original.messages); 56 this.maxMessageCount = original.maxMessageCount; 50 57 } 51 public Log( )58 public Log(long maxMessageCount = -1) 52 59 : base() { 53 messages = new List<string>(); 60 this.messages = new List<string>(); 61 this.maxMessageCount = maxMessageCount; 54 62 } 55 63 … … 65 73 string s = DateTime.Now.ToString() + "\t" + message; 66 74 messages.Add(s); 75 CapMessages(); 67 76 OnMessageAdded(s); 68 77 } … … 70 79 string s = DateTime.Now.ToString() + "\t" + "Exception occurred:" + Environment.NewLine + ErrorHandling.BuildErrorMessage(ex); 71 80 messages.Add(s); 81 CapMessages(); 72 82 OnMessageAdded(s); 83 } 84 protected virtual void CapMessages() { 85 while (maxMessageCount >= 0 && messages.Count > maxMessageCount) { 86 messages.RemoveAt(0); 87 } 73 88 } 74 89 -
branches/GP.Grammar.Editor/HeuristicLab.Core/3.3/Properties/AssemblyInfo.frame
r6099 r6618 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3. 4.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.5.$WCREV$")]
Note: See TracChangeset
for help on using the changeset viewer.