Changeset 2664
- Timestamp:
- 01/21/10 02:04:44 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 22 edited
- 3 copied
- 22 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/HeuristicLab.Collections-3.3.csproj
r2623 r2664 49 49 </ItemGroup> 50 50 <ItemGroup> 51 <Compile Include="ObservableKeyedCollection.cs" /> 51 52 <Compile Include="ReadOnlyObservableSet.cs" /> 52 53 <Compile Include="IObservableSet.cs" /> … … 64 65 <Compile Include="IObservableCollection.cs" /> 65 66 <Compile Include="IObservableDictionary.cs" /> 66 <Compile Include="ObservableKeyedCollectionBase.cs" />67 67 <Compile Include="ObservableCollection.cs" /> 68 68 <Compile Include="IndexedItem.cs" /> -
trunk/sources/HeuristicLab.Collections/3.3/ObservableKeyedCollection.cs
r2662 r2664 31 31 namespace HeuristicLab.Collections { 32 32 [Serializable] 33 public abstract class ObservableKeyedCollection Base<TKey, TItem> : IObservableKeyedCollection<TKey, TItem> {33 public abstract class ObservableKeyedCollection<TKey, TItem> : IObservableKeyedCollection<TKey, TItem> { 34 34 [Storable] 35 35 private Dictionary<TKey, TItem> dict; … … 54 54 55 55 #region Constructors 56 protected ObservableKeyedCollection Base() {56 protected ObservableKeyedCollection() { 57 57 dict = new Dictionary<TKey, TItem>(); 58 58 } 59 protected ObservableKeyedCollection Base(int capacity) {59 protected ObservableKeyedCollection(int capacity) { 60 60 dict = new Dictionary<TKey, TItem>(capacity); 61 61 } 62 protected ObservableKeyedCollection Base(IEqualityComparer<TKey> comparer) {62 protected ObservableKeyedCollection(IEqualityComparer<TKey> comparer) { 63 63 dict = new Dictionary<TKey, TItem>(comparer); 64 64 } 65 protected ObservableKeyedCollection Base(IEnumerable<TItem> collection) {65 protected ObservableKeyedCollection(IEnumerable<TItem> collection) { 66 66 if (collection == null) throw new ArgumentNullException(); 67 67 dict = new Dictionary<TKey, TItem>(); … … 70 70 OnItemsAdded(collection); 71 71 } 72 protected ObservableKeyedCollection Base(int capacity, IEqualityComparer<TKey> comparer) {72 protected ObservableKeyedCollection(int capacity, IEqualityComparer<TKey> comparer) { 73 73 dict = new Dictionary<TKey, TItem>(capacity, comparer); 74 74 } 75 protected ObservableKeyedCollection Base(IEnumerable<TItem> collection, IEqualityComparer<TKey> comparer) {75 protected ObservableKeyedCollection(IEnumerable<TItem> collection, IEqualityComparer<TKey> comparer) { 76 76 if (collection == null) throw new ArgumentNullException(); 77 77 dict = new Dictionary<TKey, TItem>(comparer); -
trunk/sources/HeuristicLab.Core.Views/3.3/DefaultItemView.Designer.cs
r2662 r2664 21 21 22 22 namespace HeuristicLab.Core.Views { 23 partial class ItemBaseView {23 partial class DefaultItemView { 24 24 /// <summary> 25 25 /// Required designer variable. -
trunk/sources/HeuristicLab.Core.Views/3.3/DefaultItemView.cs
r2662 r2664 33 33 /// The base class for visual representations of items. 34 34 /// </summary> 35 [Content(typeof(Item Base), true)]36 public partial class ItemBaseView : ItemViewBase{35 [Content(typeof(Item), true)] 36 public partial class DefaultItemView : ItemView { 37 37 /// <summary> 38 38 /// Initializes a new instance of <see cref="ItemBaseView"/>. 39 39 /// </summary> 40 public ItemBaseView() {40 public DefaultItemView() { 41 41 InitializeComponent(); 42 42 } … … 45 45 /// </summary> 46 46 /// <param name="item">The item that should be displayed.</param> 47 public ItemBaseView(ItemBaseitem)47 public DefaultItemView(Item item) 48 48 : this() { 49 49 Item = item; -
trunk/sources/HeuristicLab.Core.Views/3.3/EngineView.Designer.cs
r2662 r2664 21 21 22 22 namespace HeuristicLab.Core.Views { 23 partial class Engine BaseView {23 partial class EngineView { 24 24 /// <summary> 25 25 /// Required designer variable. -
trunk/sources/HeuristicLab.Core.Views/3.3/EngineView.cs
r2662 r2664 35 35 /// Base class for editors of engines. 36 36 /// </summary> 37 [Content(typeof(Engine Base), true)]38 public partial class Engine BaseView : ItemViewBase{37 [Content(typeof(Engine), true)] 38 public partial class EngineView : ItemView { 39 39 private int executionTimeCounter; 40 40 … … 43 43 /// </summary> 44 44 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="EditorBase"/>.</remarks> 45 public Engine BaseEngine {46 get { return (Engine Base)Item; }45 public Engine Engine { 46 get { return (Engine)Item; } 47 47 set { base.Item = value; } 48 48 } … … 51 51 /// Initializes a new instance of <see cref="EngineBaseEditor"/>. 52 52 /// </summary> 53 public Engine BaseView() {53 public EngineView() { 54 54 InitializeComponent(); 55 55 } 56 public Engine BaseView(EngineBase engine)56 public EngineView(Engine engine) 57 57 : this() { 58 58 Engine = engine; -
trunk/sources/HeuristicLab.Core.Views/3.3/HeuristicLab.Core.Views-3.3.csproj
r2663 r2664 59 59 </Compile> 60 60 <Compile Include="Auxiliary.cs" /> 61 <Compile Include="EngineBaseView.cs"> 62 <SubType>UserControl</SubType> 63 </Compile> 64 <Compile Include="EngineBaseView.Designer.cs"> 65 <DependentUpon>EngineBaseView.cs</DependentUpon> 61 <Compile Include="DefaultItemView.cs"> 62 <SubType>UserControl</SubType> 63 </Compile> 64 <Compile Include="DefaultItemView.Designer.cs"> 65 <DependentUpon>DefaultItemView.cs</DependentUpon> 66 </Compile> 67 <Compile Include="EngineView.cs"> 68 <SubType>UserControl</SubType> 69 </Compile> 70 <Compile Include="EngineView.Designer.cs"> 71 <DependentUpon>EngineView.cs</DependentUpon> 72 </Compile> 73 <Compile Include="ItemParameterView.cs"> 74 <SubType>UserControl</SubType> 75 </Compile> 76 <Compile Include="ItemParameterView.Designer.cs"> 77 <DependentUpon>ItemParameterView.cs</DependentUpon> 78 </Compile> 79 <Compile Include="ItemView.cs"> 80 <SubType>UserControl</SubType> 81 </Compile> 82 <Compile Include="ItemView.Designer.cs"> 83 <DependentUpon>ItemView.cs</DependentUpon> 84 </Compile> 85 <Compile Include="NamedItemView.cs"> 86 <SubType>UserControl</SubType> 87 </Compile> 88 <Compile Include="NamedItemView.Designer.cs"> 89 <DependentUpon>NamedItemView.cs</DependentUpon> 90 </Compile> 91 <Compile Include="ObjectView.cs"> 92 <SubType>UserControl</SubType> 93 </Compile> 94 <Compile Include="ObjectView.Designer.cs"> 95 <DependentUpon>ObjectView.cs</DependentUpon> 66 96 </Compile> 67 97 <Compile Include="OperatorGraphView.cs"> … … 101 131 <DependentUpon>ViewHost.cs</DependentUpon> 102 132 </Compile> 103 <Compile Include="ParameterBaseView.cs">104 <SubType>UserControl</SubType>105 </Compile>106 <Compile Include="ParameterBaseView.Designer.cs">107 <DependentUpon>ParameterBaseView.cs</DependentUpon>108 </Compile>109 133 <Compile Include="OperatorCollectionView.cs"> 110 134 <SubType>UserControl</SubType> … … 150 174 </Compile> 151 175 <Compile Include="IObjectView.cs" /> 152 <Compile Include="ObjectViewBase.cs">153 <SubType>UserControl</SubType>154 </Compile>155 <Compile Include="ObjectViewBase.Designer.cs">156 <DependentUpon>ObjectViewBase.cs</DependentUpon>157 </Compile>158 <Compile Include="NamedItemBaseView.cs">159 <SubType>UserControl</SubType>160 </Compile>161 <Compile Include="NamedItemBaseView.Designer.cs">162 <DependentUpon>NamedItemBaseView.cs</DependentUpon>163 </Compile>164 176 <Compile Include="ParameterView.cs"> 165 177 <SubType>UserControl</SubType> … … 193 205 </Compile> 194 206 <Compile Include="HeuristicLabCoreViewsPlugin.cs" /> 195 <Compile Include="ItemBaseView.cs">196 <SubType>UserControl</SubType>197 </Compile>198 <Compile Include="ItemBaseView.Designer.cs">199 <DependentUpon>ItemBaseView.cs</DependentUpon>200 </Compile>201 <Compile Include="ItemViewBase.cs">202 <SubType>UserControl</SubType>203 </Compile>204 <Compile Include="ItemViewBase.Designer.cs">205 <DependentUpon>ItemViewBase.cs</DependentUpon>206 </Compile>207 207 <Compile Include="Properties\AssemblyInfo.cs" /> 208 208 <Compile Include="VariableView.cs"> -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r2655 r2664 32 32 33 33 namespace HeuristicLab.Core.Views { 34 public partial class ItemCollectionView<T> : ObjectView Basewhere T : class, IItem {34 public partial class ItemCollectionView<T> : ObjectView where T : class, IItem { 35 35 public IObservableCollection<T> ItemCollection { 36 36 get { return (IObservableCollection<T>)Object; } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r2655 r2664 35 35 /// The visual representation of all variables in a specified scope. 36 36 /// </summary> 37 public partial class ItemListView<T> : ObjectView Basewhere T : class, IItem {37 public partial class ItemListView<T> : ObjectView where T : class, IItem { 38 38 /// <summary> 39 39 /// Gets or sets the scope whose variables to represent visually. -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemParameterView.Designer.cs
r2662 r2664 21 21 22 22 namespace HeuristicLab.Core.Views { 23 partial class ParameterView {23 partial class ItemParameterView { 24 24 /// <summary> 25 25 /// Required designer variable. -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemParameterView.cs
r2662 r2664 33 33 /// The visual representation of a <see cref="Parameter"/>. 34 34 /// </summary> 35 [Content(typeof( Parameter), true)]36 public partial class ParameterView : ParameterBaseView {35 [Content(typeof(ItemParameter), true)] 36 public partial class ItemParameterView : ParameterView { 37 37 private TypeSelectorDialog typeSelectorDialog; 38 38 … … 42 42 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 43 43 /// No own data storage present.</remarks> 44 public new Parameter Parameter {45 get { return ( Parameter)Item; }44 public new ItemParameter Parameter { 45 get { return (ItemParameter)Item; } 46 46 set { base.Item = value; } 47 47 } … … 50 50 /// Initializes a new instance of <see cref="VariableView"/> with caption "Variable". 51 51 /// </summary> 52 public ParameterView() {52 public ItemParameterView() { 53 53 InitializeComponent(); 54 54 Caption = "Parameter"; … … 59 59 /// <remarks>Calls <see cref="VariableView()"/>.</remarks> 60 60 /// <param name="variable">The variable to represent visually.</param> 61 public ParameterView(Parameter parameter)61 public ItemParameterView(ItemParameter parameter) 62 62 : this() { 63 63 Parameter = parameter; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemView.Designer.cs
r2662 r2664 23 23 24 24 namespace HeuristicLab.Core.Views { 25 partial class ItemView Base{25 partial class ItemView { 26 26 /// <summary> 27 27 /// Required designer variable. -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemView.cs
r2662 r2664 34 34 /// Base class for all visual representations. 35 35 /// </summary> 36 public partial class ItemView Base : ObjectViewBase{36 public partial class ItemView : ObjectView { 37 37 public IItem Item { 38 38 get { return (IItem)base.Object; } … … 43 43 /// Initializes a new instance of <see cref="ViewBase"/> with the caption "View". 44 44 /// </summary> 45 public ItemView Base() {45 public ItemView() { 46 46 InitializeComponent(); 47 47 Caption = "View"; -
trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemView.Designer.cs
r2662 r2664 21 21 22 22 namespace HeuristicLab.Core.Views { 23 partial class NamedItem BaseView {23 partial class NamedItemView { 24 24 /// <summary> 25 25 /// Required designer variable. -
trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemView.cs
r2662 r2664 33 33 /// The visual representation of a <see cref="Variable"/>. 34 34 /// </summary> 35 [Content(typeof(NamedItem Base), true)]36 public partial class NamedItem BaseView : ItemViewBase{37 public NamedItem BaseNamedItemBase {38 get { return (NamedItem Base)Item; }35 [Content(typeof(NamedItem), true)] 36 public partial class NamedItemView : ItemView { 37 public NamedItem NamedItemBase { 38 get { return (NamedItem)Item; } 39 39 set { base.Item = value; } 40 40 } 41 41 42 public NamedItem BaseView() {42 public NamedItemView() { 43 43 InitializeComponent(); 44 44 Caption = "NamedItem"; 45 45 } 46 public NamedItem BaseView(NamedItemBasenamedItemBase)46 public NamedItemView(NamedItem namedItemBase) 47 47 : this() { 48 48 NamedItemBase = namedItemBase; -
trunk/sources/HeuristicLab.Core.Views/3.3/ObjectView.Designer.cs
r2662 r2664 23 23 24 24 namespace HeuristicLab.Core.Views { 25 partial class ObjectView Base{25 partial class ObjectView { 26 26 /// <summary> 27 27 /// Required designer variable. -
trunk/sources/HeuristicLab.Core.Views/3.3/ObjectView.cs
r2662 r2664 34 34 /// Base class for all visual representations. 35 35 /// </summary> 36 public partial class ObjectView Base: ViewBase, IObjectView {36 public partial class ObjectView : ViewBase, IObjectView { 37 37 private object obj; 38 38 /// <summary> … … 63 63 /// Initializes a new instance of <see cref="ViewBase"/> with the caption "View". 64 64 /// </summary> 65 public ObjectView Base() {65 public ObjectView() { 66 66 InitializeComponent(); 67 67 Caption = "View"; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.cs
r2655 r2664 37 37 /// </summary> 38 38 [Content(typeof(OperatorGraph), true)] 39 public partial class OperatorGraphView : ItemView Base{39 public partial class OperatorGraphView : ItemView { 40 40 /// <summary> 41 41 /// Gets or sets the operator graph to represent visually. -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.cs
r2655 r2664 37 37 /// </summary> 38 38 [Content(typeof(IOperator), false)] 39 public partial class OperatorTreeView : ItemView Base{39 public partial class OperatorTreeView : ItemView { 40 40 private Dictionary<IOperatorParameter, List<TreeNode>> operatorParameterNodeTable; 41 41 private Dictionary<IOperator, List<TreeNode>> operatorNodeTable; -
trunk/sources/HeuristicLab.Core.Views/3.3/ParameterView.Designer.cs
r2662 r2664 21 21 22 22 namespace HeuristicLab.Core.Views { 23 partial class Parameter BaseView {23 partial class ParameterView { 24 24 /// <summary> 25 25 /// Required designer variable. -
trunk/sources/HeuristicLab.Core.Views/3.3/ParameterView.cs
r2662 r2664 34 34 /// </summary> 35 35 [Content(typeof(IParameter), true)] 36 public partial class Parameter BaseView : NamedItemBaseView {36 public partial class ParameterView : NamedItemView { 37 37 /// <summary> 38 38 /// Gets or sets the variable to represent visually. … … 48 48 /// Initializes a new instance of <see cref="VariableView"/> with caption "Variable". 49 49 /// </summary> 50 public Parameter BaseView() {50 public ParameterView() { 51 51 InitializeComponent(); 52 52 Caption = "Parameter"; … … 57 57 /// <remarks>Calls <see cref="VariableView()"/>.</remarks> 58 58 /// <param name="variable">The variable to represent visually.</param> 59 public Parameter BaseView(IParameter parameter)59 public ParameterView(IParameter parameter) 60 60 : this() { 61 61 Parameter = parameter; -
trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.cs
r2655 r2664 37 37 /// </summary> 38 38 [Content(typeof(Scope), true)] 39 public partial class ScopeView : ItemView Base{39 public partial class ScopeView : ItemView { 40 40 private Dictionary<Scope, TreeNode> scopeNodeTable; 41 41 private Dictionary<ScopeList, Scope> subScopesScopeTable; -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs
r2655 r2664 34 34 /// </summary> 35 35 [Content(typeof(Variable), true)] 36 public partial class VariableView : NamedItem BaseView {36 public partial class VariableView : NamedItemView { 37 37 private TypeSelectorDialog typeSelectorDialog; 38 38 -
trunk/sources/HeuristicLab.Core/3.3/DeepCloneable.cs
r2662 r2664 31 31 /// </summary> 32 32 [EmptyStorableClass] 33 public abstract class DeepCloneable Base: IDeepCloneable {33 public abstract class DeepCloneable : IDeepCloneable { 34 34 /// <summary> 35 35 /// Creates a deep clone of this instance. … … 52 52 /// <returns>A clone of this instance.</returns> 53 53 public virtual IDeepCloneable Clone(Cloner cloner) { 54 DeepCloneable Base clone = (DeepCloneableBase)Activator.CreateInstance(this.GetType());54 DeepCloneable clone = (DeepCloneable)Activator.CreateInstance(this.GetType()); 55 55 cloner.RegisterClonedObject(this, clone); 56 56 return clone; -
trunk/sources/HeuristicLab.Core/3.3/Engine.cs
r2662 r2664 35 35 /// one execution and can handle parallel executions. 36 36 /// </summary> 37 [Item("Engine Base", "A base class for engines.")]38 public abstract class Engine Base : ItemBase, IEngine {37 [Item("Engine", "A base class for engines.")] 38 public abstract class Engine : Item, IEngine { 39 39 public override Image ItemImage { 40 40 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event; } … … 133 133 /// </summary> 134 134 /// <remarks>Calls <see cref="Reset"/>.</remarks> 135 protected Engine Base() {135 protected Engine() { 136 136 globalScope = new Scope("Global"); 137 137 executionStack = new Stack<ExecutionContext>(); … … 147 147 /// <returns>The cloned object as <see cref="EngineBase"/>.</returns> 148 148 public override IDeepCloneable Clone(Cloner cloner) { 149 Engine Base clone = (EngineBase)base.Clone(cloner);149 Engine clone = (Engine)base.Clone(cloner); 150 150 clone.OperatorGraph = (OperatorGraph)cloner.Clone(operatorGraph); 151 151 clone.globalScope = (Scope)cloner.Clone(globalScope); -
trunk/sources/HeuristicLab.Core/3.3/ExecutionContext.cs
r2653 r2664 26 26 27 27 namespace HeuristicLab.Core { 28 public class ExecutionContext : DeepCloneable Base{28 public class ExecutionContext : DeepCloneable { 29 29 [Storable] 30 30 private ExecutionContext parent; -
trunk/sources/HeuristicLab.Core/3.3/ExecutionContextCollection.cs
r2653 r2664 27 27 28 28 namespace HeuristicLab.Core { 29 public class ExecutionContextCollection : DeepCloneable Base, IList<ExecutionContext> {29 public class ExecutionContextCollection : DeepCloneable, IList<ExecutionContext> { 30 30 [Storable] 31 31 private IList<ExecutionContext> contexts; -
trunk/sources/HeuristicLab.Core/3.3/HeuristicLab.Core-3.3.csproj
r2663 r2664 103 103 <Compile Include="Attributes\CreatableAttribute.cs" /> 104 104 <Compile Include="ChangedEventArgs.cs" /> 105 <Compile Include="DeepCloneable.cs" /> 106 <Compile Include="Engine.cs" /> 105 107 <Compile Include="Interfaces\IOperatorParameter.cs" /> 108 <Compile Include="Item.cs" /> 109 <Compile Include="ItemParameter.cs" /> 110 <Compile Include="NamedItem.cs" /> 106 111 <Compile Include="OperatorGraph.cs" /> 107 112 <Compile Include="OperatorParameter.cs" /> 108 <Compile Include="ParameterBase.cs" />109 113 <Compile Include="Interfaces\IParameter.cs" /> 110 114 <Compile Include="OperatorCollection.cs" /> … … 113 117 <Compile Include="ItemSet.cs" /> 114 118 <Compile Include="ItemList.cs" /> 115 <Compile Include="EngineBase.cs">116 <SubType>Code</SubType>117 </Compile>118 119 <Compile Include="Interfaces\IEngine.cs"> 119 120 <SubType>Code</SubType> … … 126 127 <Compile Include="Parameter.cs" /> 127 128 <Compile Include="ScopeList.cs" /> 128 <Compile Include="DeepCloneableBase.cs" />129 129 <Compile Include="Interfaces\IDeepCloneable.cs" /> 130 130 <Compile Include="NamedItemCollection.cs" /> 131 131 <Compile Include="Interfaces\INamedItem.cs" /> 132 <Compile Include="NamedItemBase.cs" />133 132 <Compile Include="Interfaces\IItem.cs" /> 134 <Compile Include="ItemBase.cs" />135 133 <Compile Include="Interfaces\IRandom.cs" /> 136 134 <Compile Include="Scope.cs" /> -
trunk/sources/HeuristicLab.Core/3.3/Item.cs
r2662 r2664 35 35 /// </summary> 36 36 [EmptyStorableClass] 37 [Item("Item Base", "Base class for all HeuristicLab items.")]38 public abstract class Item Base : DeepCloneableBase, IItem {37 [Item("Item", "Base class for all HeuristicLab items.")] 38 public abstract class Item : DeepCloneable, IItem { 39 39 public virtual string ItemName { 40 40 get { return ItemAttribute.GetName(this.GetType()); } -
trunk/sources/HeuristicLab.Core/3.3/ItemParameter.cs
r2662 r2664 31 31 /// Represents a parameter. 32 32 /// </summary> 33 [Item(" Parameter", "A parameter which represents an IItem.")]33 [Item("Item Parameter", "A parameter which represents an IItem.")] 34 34 [Creatable("Test")] 35 public class Parameter : ParameterBase{35 public class ItemParameter : Parameter { 36 36 [Storable] 37 37 private string actualName; … … 62 62 } 63 63 64 public Parameter()64 public ItemParameter() 65 65 : base("Anonymous", null, typeof(IItem)) { 66 66 actualName = Name; 67 67 Value = null; 68 68 } 69 protected Parameter(string name, string description, Type dataType)69 protected ItemParameter(string name, string description, Type dataType) 70 70 : base(name, description, dataType) { 71 71 this.actualName = Name; 72 72 this.Value = null; 73 73 } 74 public Parameter(string name, string description)74 public ItemParameter(string name, string description) 75 75 : base(name, description, typeof(IItem)) { 76 76 this.actualName = Name; 77 77 this.Value = null; 78 78 } 79 public Parameter(string name, string description, IItem value)79 public ItemParameter(string name, string description, IItem value) 80 80 : base(name, description, typeof(IItem)) { 81 81 this.actualName = Name; … … 98 98 99 99 public override IDeepCloneable Clone(Cloner cloner) { 100 Parameter clone = (Parameter)base.Clone(cloner);100 ItemParameter clone = (ItemParameter)base.Clone(cloner); 101 101 clone.actualName = actualName; 102 102 clone.Value = (IItem)cloner.Clone(value); … … 128 128 [Item("Parameter<T>", "A generic parameter which represents an instance of type T.")] 129 129 [EmptyStorableClass] 130 public class Parameter<T> :Parameter where T : class, IItem {130 public class ItemParameter<T> : ItemParameter where T : class, IItem { 131 131 public new T Value { 132 132 get { return (T)base.Value; } … … 134 134 } 135 135 136 public Parameter()136 public ItemParameter() 137 137 : base("Anonymous", null, typeof(T)) { 138 138 Value = null; 139 139 } 140 public Parameter(string name, string description)140 public ItemParameter(string name, string description) 141 141 : base(name, description, typeof(T)) { 142 142 this.Value = null; 143 143 } 144 public Parameter(string name, string description, T value)144 public ItemParameter(string name, string description, T value) 145 145 : base(name, description, typeof(T)) { 146 146 this.Value = value; -
trunk/sources/HeuristicLab.Core/3.3/NamedItem.cs
r2662 r2664 28 28 29 29 namespace HeuristicLab.Core { 30 [Item("NamedItem Base", "Base class for items which have a name and an optional description.")]31 public abstract class NamedItem Base : ItemBase, INamedItem {30 [Item("NamedItem", "Base class for items which have a name and an optional description.")] 31 public abstract class NamedItem : Item, INamedItem { 32 32 [Storable] 33 33 protected string name; … … 73 73 /// and value <c>null</c>. 74 74 /// </summary> 75 protected NamedItem Base() {75 protected NamedItem() { 76 76 name = ItemName; 77 77 description = ItemDescription; … … 83 83 /// <param name="name">The name of the current instance.</param> 84 84 /// <param name="value">The value of the current instance.</param> 85 protected NamedItem Base(string name)85 protected NamedItem(string name) 86 86 : this() { 87 87 if (name == null) throw new ArgumentNullException(); 88 88 this.name = name; 89 89 } 90 protected NamedItem Base(string name, string description)90 protected NamedItem(string name, string description) 91 91 : this(name) { 92 92 this.description = description; … … 99 99 /// <returns>The cloned object as <see cref="Variable"/>.</returns> 100 100 public override IDeepCloneable Clone(Cloner cloner) { 101 NamedItem Base clone = (NamedItemBase)base.Clone(cloner);101 NamedItem clone = (NamedItem)base.Clone(cloner); 102 102 clone.name = name; 103 103 clone.description = description; -
trunk/sources/HeuristicLab.Core/3.3/NamedItemCollection.cs
r2653 r2664 30 30 31 31 namespace HeuristicLab.Core { 32 public class NamedItemCollection<T> : ObservableKeyedCollection Base<string, T>, IDeepCloneable where T : class, INamedItem {32 public class NamedItemCollection<T> : ObservableKeyedCollection<string, T>, IDeepCloneable where T : class, INamedItem { 33 33 [Storable(Name = "RestoreEvents")] 34 34 private object RestoreEvents { -
trunk/sources/HeuristicLab.Core/3.3/OperatorGraph.cs
r2653 r2664 35 35 [Item("OperatorGraph", "Represents a graph of operators.")] 36 36 [Creatable("Test")] 37 public class OperatorGraph : Item Base{37 public class OperatorGraph : Item { 38 38 private OperatorSet operators; 39 39 /// <summary> -
trunk/sources/HeuristicLab.Core/3.3/OperatorParameter.cs
r2653 r2664 34 34 [EmptyStorableClass] 35 35 [Creatable("Test")] 36 public class OperatorParameter : Parameter<IOperator>, IOperatorParameter {36 public class OperatorParameter : ItemParameter<IOperator>, IOperatorParameter { 37 37 public OperatorParameter() 38 38 : base("Anonymous", null) { -
trunk/sources/HeuristicLab.Core/3.3/Parameter.cs
r2662 r2664 31 31 /// Represents a parameter. 32 32 /// </summary> 33 [Item("Parameter Base", "A base class for parameters.")]34 public abstract class Parameter Base : NamedItemBase, IParameter {33 [Item("Parameter", "A base class for parameters.")] 34 public abstract class Parameter : NamedItem, IParameter { 35 35 public override bool CanChangeName { 36 36 get { return false; } … … 46 46 } 47 47 48 protected Parameter Base()48 protected Parameter() 49 49 : base("Anonymous") { 50 50 dataType = typeof(IItem); 51 51 } 52 protected Parameter Base(string name, string description, Type dataType)52 protected Parameter(string name, string description, Type dataType) 53 53 : base(name, description) { 54 54 if (dataType == null) throw new ArgumentNullException(); … … 59 59 60 60 public override IDeepCloneable Clone(Cloner cloner) { 61 Parameter Base clone = (ParameterBase)base.Clone(cloner);61 Parameter clone = (Parameter)base.Clone(cloner); 62 62 clone.dataType = dataType; 63 63 return clone; -
trunk/sources/HeuristicLab.Core/3.3/Scope.cs
r2653 r2664 33 33 [Item("Scope", "A scope which contains variables and sub-scopes.")] 34 34 [Creatable("Test")] 35 public class Scope : NamedItem Base{35 public class Scope : NamedItem { 36 36 [Storable] 37 37 private Scope parent; -
trunk/sources/HeuristicLab.Core/3.3/Variable.cs
r2653 r2664 33 33 [Item("Variable", "A variable which has a name and holds an IItem.")] 34 34 [Creatable("Test")] 35 public sealed class Variable : NamedItem Base{35 public sealed class Variable : NamedItem { 36 36 private IItem value; 37 37 /// <inheritdoc/> -
trunk/sources/HeuristicLab.Data.Views/3.3/IntDataView.cs
r2663 r2664 35 35 /// </summary> 36 36 [Content(typeof(IntData), true)] 37 public partial class IntDataView : ItemView Base{37 public partial class IntDataView : ItemView { 38 38 public IntData IntData { 39 39 get { return (IntData)Item; } -
trunk/sources/HeuristicLab.Data/3.3/ValueTypeData.cs
r2663 r2664 29 29 namespace HeuristicLab.Data { 30 30 [Item("ValueTypeData<T>", "A base class for representing value types.")] 31 public class ValueTypeData<T> : Item Basewhere T : struct {31 public class ValueTypeData<T> : Item where T : struct { 32 32 [Storable] 33 33 protected T value; -
trunk/sources/HeuristicLab.Operators.Views/3.3/HeuristicLab.Operators.Views-3.3.csproj
r2663 r2664 52 52 <ItemGroup> 53 53 <Compile Include="HeuristicLabOperatorsViewsPlugin.cs" /> 54 <Compile Include="Operator BaseView.cs">54 <Compile Include="OperatorView.cs"> 55 55 <SubType>UserControl</SubType> 56 56 </Compile> 57 <Compile Include="Operator BaseView.Designer.cs">58 <DependentUpon>Operator BaseView.cs</DependentUpon>57 <Compile Include="OperatorView.Designer.cs"> 58 <DependentUpon>OperatorView.cs</DependentUpon> 59 59 </Compile> 60 60 <Compile Include="Properties\AssemblyInfo.cs" /> -
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.Designer.cs
r2663 r2664 21 21 22 22 namespace HeuristicLab.Operators.Views { 23 partial class Operator BaseView {23 partial class OperatorView { 24 24 /// <summary> 25 25 /// Required designer variable. -
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.cs
r2663 r2664 35 35 /// The base class for visual representations of items. 36 36 /// </summary> 37 [Content(typeof(Operator Base), true)]38 public partial class Operator BaseView : NamedItemBaseView {39 public Operator BaseOperatorBase {40 get { return (Operator Base)base.Item; }37 [Content(typeof(Operator), true)] 38 public partial class OperatorView : NamedItemView { 39 public Operator OperatorBase { 40 get { return (Operator)base.Item; } 41 41 set { base.Item = value; } 42 42 } … … 45 45 /// Initializes a new instance of <see cref="ItemBaseView"/>. 46 46 /// </summary> 47 public Operator BaseView() {47 public OperatorView() { 48 48 InitializeComponent(); 49 49 } … … 52 52 /// </summary> 53 53 /// <param name="item">The item that should be displayed.</param> 54 public Operator BaseView(OperatorBaseoperatorBase)54 public OperatorView(Operator operatorBase) 55 55 : this() { 56 56 OperatorBase = operatorBase; -
trunk/sources/HeuristicLab.Operators/3.3/EmptyOperator.cs
r2663 r2664 34 34 [Creatable("Test")] 35 35 [EmptyStorableClass] 36 public sealed class EmptyOperator : StandardOperator Base{36 public sealed class EmptyOperator : StandardOperator { 37 37 public EmptyOperator() 38 38 : base() { -
trunk/sources/HeuristicLab.Operators/3.3/HeuristicLab.Operators-3.3.csproj
r2663 r2664 89 89 </Compile> 90 90 <Compile Include="HeuristicLabOperatorsPlugin.cs" /> 91 <Compile Include="Operator Base.cs" />91 <Compile Include="Operator.cs" /> 92 92 <Compile Include="Properties\AssemblyInfo.cs" /> 93 <Compile Include="StandardOperator Base.cs" />93 <Compile Include="StandardOperator.cs" /> 94 94 </ItemGroup> 95 95 <ItemGroup> -
trunk/sources/HeuristicLab.Operators/3.3/Operator.cs
r2663 r2664 33 33 /// The base class for all operators. 34 34 /// </summary> 35 [Item("Operator Base", "Base class for operators.")]36 public abstract class Operator Base : NamedItemBase, IOperator {35 [Item("Operator", "Base class for operators.")] 36 public abstract class Operator : NamedItem, IOperator { 37 37 public override Image ItemImage { 38 38 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Method; } … … 85 85 /// the canceled flag to <c>false</c> and the name of the operator to the type name. 86 86 /// </summary> 87 protected Operator Base() {87 protected Operator() { 88 88 name = ItemName; 89 89 Parameters = new ParameterCollection(); … … 100 100 /// <returns>The cloned object as <see cref="OperatorBase"/>.</returns> 101 101 public override IDeepCloneable Clone(Cloner cloner) { 102 Operator Base clone = (OperatorBase)base.Clone(cloner);102 Operator clone = (Operator)base.Clone(cloner); 103 103 clone.Parameters = (ParameterCollection)cloner.Clone(parameters); 104 104 clone.canceled = canceled; -
trunk/sources/HeuristicLab.Operators/3.3/StandardOperator.cs
r2663 r2664 31 31 /// A base class for operators which have only one successor. 32 32 /// </summary> 33 [Item("Standard OperatorBase", "A base class for operators which have only one successor.")]33 [Item("Standard Operator", "A base class for operators which have only one successor.")] 34 34 [Creatable("Test")] 35 35 [EmptyStorableClass] 36 public abstract class StandardOperator Base : OperatorBase{36 public abstract class StandardOperator : Operator { 37 37 public OperatorParameter Successor { 38 38 get { return (OperatorParameter)Parameters["Successor"]; } 39 39 } 40 40 41 public StandardOperator Base()41 public StandardOperator() 42 42 : base() { 43 43 Parameters.Add(new OperatorParameter("Successor", "Operator which is executed next")); -
trunk/sources/HeuristicLab.SequentialEngine/3.3/SequentialEngine.cs
r2656 r2664 34 34 [Creatable("Engines")] 35 35 [Item("Sequential Engine", "Engine for sequential execution of algorithms.")] 36 public class SequentialEngine : Engine Base{36 public class SequentialEngine : Engine { 37 37 private IOperator currentOperator; 38 38
Note: See TracChangeset
for help on using the changeset viewer.