Changeset 2790 for trunk/sources/HeuristicLab.Core
- Timestamp:
- 02/13/10 04:37:49 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Core/3.3
- Files:
-
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Attributes/CreatableAttribute.cs
r2546 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Attributes/ItemAttribute.cs
r2546 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/ChangedEventArgs.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 using System.Collections.Generic; 24 24 using System.Text; 25 using HeuristicLab.Common; 25 26 26 27 namespace HeuristicLab.Core { … … 28 29 29 30 public class ChangedEventArgs : EventArgs { 30 private class ReferenceEqualityComparer : IEqualityComparer<object> {31 bool IEqualityComparer<object>.Equals(object x, object y) {32 return object.ReferenceEquals(x, y);33 }34 35 int IEqualityComparer<object>.GetHashCode(object obj) {36 if (obj == null) return 0;37 return obj.GetHashCode();38 }39 }40 41 31 private HashSet<object> changedObjects; 42 32 43 33 public ChangedEventArgs() { 44 changedObjects = new HashSet<object>(new ReferenceEqualityComparer()); 34 changedObjects = new HashSet<object>(new ReferenceEqualityComparer<object>()); 35 } 36 public ChangedEventArgs(IEnumerable<object> collection) { 37 changedObjects = new HashSet<object>(collection, new ReferenceEqualityComparer<object>()); 45 38 } 46 39 -
trunk/sources/HeuristicLab.Core/3.3/Cloner.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 using System.Collections.Generic; 24 24 using System.Text; 25 using HeuristicLab.Common; 25 26 26 27 namespace HeuristicLab.Core { … … 29 30 /// </summary> 30 31 public sealed class Cloner { 31 private class ReferenceEqualityComparer : IEqualityComparer<IDeepCloneable> {32 bool IEqualityComparer<IDeepCloneable>.Equals(IDeepCloneable x, IDeepCloneable y) {33 return object.ReferenceEquals(x, y);34 }35 36 int IEqualityComparer<IDeepCloneable>.GetHashCode(IDeepCloneable obj) {37 if (obj == null) return 0;38 return obj.GetHashCode();39 }40 }41 42 32 private Dictionary<IDeepCloneable, IDeepCloneable> mapping; 43 33 … … 46 36 /// </summary> 47 37 public Cloner() { 48 mapping = new Dictionary<IDeepCloneable, IDeepCloneable>(new ReferenceEqualityComparer ());38 mapping = new Dictionary<IDeepCloneable, IDeepCloneable>(new ReferenceEqualityComparer<IDeepCloneable>()); 49 39 } 50 40 -
trunk/sources/HeuristicLab.Core/3.3/DeepCloneable.cs
r2664 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Engine.cs
r2773 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 58 58 if (operatorGraph != null) operatorGraph.InitialOperatorChanged += new EventHandler(operatorGraph_InitialOperatorChanged); 59 59 OnOperatorGraphChanged(); 60 Initialize();60 Prepare(); 61 61 } 62 62 } … … 67 67 /// </summary> 68 68 [Storable] 69 private Scope globalScope;69 private IScope globalScope; 70 70 /// <summary> 71 71 /// Gets the current global scope. … … 132 132 /// Initializes a new instance of <see cref="EngineBase"/> with a new global scope. 133 133 /// </summary> 134 /// <remarks>Calls <see cref="Reset"/>.</remarks>135 134 protected Engine() { 136 135 globalScope = new Scope("Global"); … … 161 160 /// <inheritdoc/> 162 161 /// <remarks>Sets <c>myCanceled</c> and <c>myRunning</c> to <c>false</c>. The global scope is cleared, 163 /// the execution time is reset ed, the execution stack is cleared and a new <see cref="AtomicOperation"/>162 /// the execution time is reset, the execution stack is cleared and a new <see cref="AtomicOperation"/> 164 163 /// with the initial operator is added. <br/> 165 /// Calls <see cref="On Initialized"/>.</remarks>166 public void Initialize() {164 /// Calls <see cref="OnPrepared"/>.</remarks> 165 public void Prepare() { 167 166 canceled = false; 168 167 running = false; … … 172 171 if (OperatorGraph.InitialOperator != null) 173 172 executionStack.Push(new ExecutionContext(null, OperatorGraph.InitialOperator, GlobalScope)); 174 On Initialized();173 OnPrepared(); 175 174 } 176 175 /// <inheritdoc/> … … 226 225 227 226 private void operatorGraph_InitialOperatorChanged(object sender, EventArgs e) { 228 Initialize();227 Prepare(); 229 228 } 230 229 … … 246 245 } 247 246 /// <summary> 248 /// Occurs when the execution is initialized.249 /// </summary> 250 public event EventHandler Initialized;251 /// <summary> 252 /// Fires a new <c> Initialized</c> event.253 /// </summary> 254 protected virtual void On Initialized() {255 if ( Initialized != null)256 Initialized(this, new EventArgs());247 /// Occurs when the execution is prepared for a new run. 248 /// </summary> 249 public event EventHandler Prepared; 250 /// <summary> 251 /// Fires a new <c>Prepared</c> event. 252 /// </summary> 253 protected virtual void OnPrepared() { 254 if (Prepared != null) 255 Prepared(this, new EventArgs()); 257 256 } 258 257 /// <summary> -
trunk/sources/HeuristicLab.Core/3.3/ExecutionContext.cs
r2773 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/ExecutionContextCollection.cs
r2773 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/HeuristicLabCorePlugin.cs.frame
r2754 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IDeepCloneable.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IEngine.cs
r2687 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 56 56 57 57 /// <summary> 58 /// Resets the current instance.58 /// Prepares the engine for a new run. 59 59 /// </summary> 60 void Initialize();60 void Prepare(); 61 61 /// <summary> 62 62 /// Executes the whole run. … … 78 78 event EventHandler ExecutionTimeChanged; 79 79 /// <summary> 80 /// Occurs when the engine is initialized.80 /// Occurs when the engine is prepared for a new run. 81 81 /// </summary> 82 event EventHandler Initialized;82 event EventHandler Prepared; 83 83 /// <summary> 84 84 /// Occurs when the engine is executed. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IExecutionSequence.cs
r2773 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IItem.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/ILookupParameter.cs
r2756 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/INamedItem.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IOperator.cs
r2773 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IParameter.cs
r2757 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IRandom.cs
r817 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IScope.cs
r2687 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 35 35 VariableCollection Variables { get; } 36 36 ScopeList SubScopes { get; } 37 38 void Clear(); 37 39 } 38 40 } -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IValueLookupParameter.cs
r2756 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IValueParameter.cs
r2756 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IVariable.cs
r2687 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Item.cs
r2664 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/ItemArray.cs
r2757 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/ItemCollection.cs
r2687 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/ItemList.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/ItemSet.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/NamedItem.cs
r2664 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 31 31 public abstract class NamedItem : Item, INamedItem { 32 32 [Storable] 33 pr otectedstring name;33 private string name; 34 34 /// <inheritdoc/> 35 35 /// <remarks>Calls <see cref="OnNameChanging"/> and also <see cref="OnNameChanged"/> … … 54 54 } 55 55 [Storable] 56 pr otectedstring description;56 private string description; 57 57 public string Description { 58 58 get { return description; } -
trunk/sources/HeuristicLab.Core/3.3/NamedItemCollection.cs
r2676 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System.Collections;24 23 using System.Collections.Generic; 25 using System.Collections.ObjectModel; 26 using System.Text; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 24 using System.Drawing; 28 25 using HeuristicLab.Collections; 29 26 using HeuristicLab.Common; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 28 31 29 namespace HeuristicLab.Core { 32 public class NamedItemCollection<T> : ObservableKeyedCollection<string, T>, IDeepCloneable where T : class, INamedItem { 30 [Item("NamedItemCollection<T>", "Represents a collection of named items.")] 31 public class NamedItemCollection<T> : ObservableKeyedCollection<string, T>, IItem where T : class, INamedItem { 32 public virtual string ItemName { 33 get { return ItemAttribute.GetName(this.GetType()); } 34 } 35 public virtual string ItemDescription { 36 get { return ItemAttribute.GetDescription(this.GetType()); } 37 } 38 public virtual Image ItemImage { 39 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Class; } 40 } 41 33 42 [Storable(Name = "RestoreEvents")] 34 43 private object RestoreEvents { … … 50 59 return Clone(new Cloner()); 51 60 } 52 53 61 public IDeepCloneable Clone(Cloner cloner) { 54 62 List<T> items = new List<T>(); … … 58 66 cloner.RegisterClonedObject(this, clone); 59 67 return clone; 68 } 69 70 public override string ToString() { 71 return ItemName; 60 72 } 61 73 -
trunk/sources/HeuristicLab.Core/3.3/OperatorCollection.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/OperatorGraph.cs
r2756 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 141 141 operators.ItemsRemoved += new CollectionItemsChangedEventHandler<IOperator>(Operators_ItemsRemoved); 142 142 operators.CollectionReset += new CollectionItemsChangedEventHandler<IOperator>(Operators_CollectionReset); 143 foreach (IOperator op in operators) { 144 RegisterOperatorEvents(op); 145 foreach (IParameter param in op.Parameters) { 146 IValueParameter<IOperator> opParam = param as IValueParameter<IOperator>; 147 if (opParam != null) RegisterOperatorParameterEvents(opParam); 148 } 149 } 143 150 } 144 151 } 145 152 private void DeregisterOperatorsEvents() { 146 153 if (operators != null) { 154 foreach (IOperator op in operators) { 155 foreach (IParameter param in op.Parameters) { 156 IValueParameter<IOperator> opParam = param as IValueParameter<IOperator>; 157 if (opParam != null) DeregisterOperatorParameterEvents(opParam); 158 } 159 DeregisterOperatorEvents(op); 160 } 147 161 operators.Changed -= new ChangedEventHandler(Operators_Changed); 148 162 operators.ItemsAdded -= new CollectionItemsChangedEventHandler<IOperator>(Operators_ItemsAdded); -
trunk/sources/HeuristicLab.Core/3.3/OperatorList.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/OperatorSet.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/ParameterCollection.cs
r2653 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System;23 using System.Collections;24 22 using System.Collections.Generic; 25 using System.Collections.ObjectModel;26 using System.Text;27 using System.Drawing;28 23 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Common.Resources;30 24 31 25 namespace HeuristicLab.Core { … … 33 27 [Item("ParameterCollection", "Represents a collection of parameters.")] 34 28 [Creatable("Test")] 35 public class ParameterCollection : NamedItemCollection<IParameter>, IItem { 36 public virtual string ItemName { 37 get { return ItemAttribute.GetName(this.GetType()); } 38 } 39 public virtual string ItemDescription { 40 get { return ItemAttribute.GetDescription(this.GetType()); } 41 } 42 public virtual Image ItemImage { 43 get { return VS2008ImageLibrary.Class; } 44 } 45 29 public class ParameterCollection : NamedItemCollection<IParameter> { 46 30 public ParameterCollection() : base() { } 47 31 public ParameterCollection(int capacity) : base(capacity) { } 48 32 public ParameterCollection(IEnumerable<IParameter> collection) : base(collection) { } 49 50 public override string ToString() {51 return ItemName;52 }53 33 } 54 34 } -
trunk/sources/HeuristicLab.Core/3.3/Properties/AssemblyInfo.frame
r2754 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Scope.cs
r2687 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 97 97 Scope clone = new Scope(); 98 98 cloner.RegisterClonedObject(this, clone); 99 clone. name = name;100 clone. description = description;99 clone.Name = Name; 100 clone.Description = Description; 101 101 clone.parent = (IScope)cloner.Clone(parent); 102 102 clone.Variables = (VariableCollection)cloner.Clone(variables); -
trunk/sources/HeuristicLab.Core/3.3/ScopeList.cs
r2687 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
trunk/sources/HeuristicLab.Core/3.3/Variable.cs
r2687 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 77 77 Variable clone = new Variable(); 78 78 cloner.RegisterClonedObject(this, clone); 79 clone. name = name;80 clone. description = description;79 clone.Name = Name; 80 clone.Description = Description; 81 81 clone.Value = (IItem)cloner.Clone(value); 82 82 return clone; -
trunk/sources/HeuristicLab.Core/3.3/VariableCollection.cs
r2687 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System;23 using System.Collections;24 22 using System.Collections.Generic; 25 using System.Collections.ObjectModel;26 using System.Text;27 using System.Drawing;28 23 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Common.Resources;30 24 31 25 namespace HeuristicLab.Core { … … 33 27 [Item("VariableCollection", "Represents a collection of variables.")] 34 28 [Creatable("Test")] 35 public class VariableCollection : NamedItemCollection<IVariable>, IItem { 36 public virtual string ItemName { 37 get { return ItemAttribute.GetName(this.GetType()); } 38 } 39 public virtual string ItemDescription { 40 get { return ItemAttribute.GetDescription(this.GetType()); } 41 } 42 public virtual Image ItemImage { 43 get { return VS2008ImageLibrary.Class; } 44 } 45 29 public class VariableCollection : NamedItemCollection<IVariable> { 46 30 public VariableCollection() : base() { } 47 31 public VariableCollection(int capacity) : base(capacity) { } 48 32 public VariableCollection(IEnumerable<IVariable> collection) : base(collection) { } 49 50 public override string ToString() {51 return ItemName;52 }53 33 } 54 34 }
Note: See TracChangeset
for help on using the changeset viewer.