- Timestamp:
- 04/18/10 03:00:00 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r3362 r3393 34 34 [View("ItemArray View")] 35 35 [Content(typeof(ItemArray<>), true)] 36 [Content(typeof(I ObservableArray<>), false)]36 [Content(typeof(IItemArray<>), false)] 37 37 public partial class ItemArrayView<T> : AsynchronousContentView where T : class, IItem { 38 38 /// <summary> … … 41 41 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 42 42 /// No won data storage present.</remarks> 43 public new I ObservableArray<T> Content {44 get { return (I ObservableArray<T>)base.Content; }43 public new IItemArray<T> Content { 44 get { return (IItemArray<T>)base.Content; } 45 45 set { base.Content = value; } 46 46 } … … 57 57 Caption = "Item Array"; 58 58 } 59 public ItemArrayView(I ObservableArray<T> content)59 public ItemArrayView(IItemArray<T> content) 60 60 : this() { 61 61 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r3362 r3393 31 31 [View("ItemCollection View")] 32 32 [Content(typeof(ItemCollection<>), true)] 33 [Content(typeof(I ObservableCollection<>), false)]33 [Content(typeof(IItemCollection<>), false)] 34 34 public partial class ItemCollectionView<T> : AsynchronousContentView where T : class, IItem { 35 public new I ObservableCollection<T> Content {36 get { return (I ObservableCollection<T>)base.Content; }35 public new IItemCollection<T> Content { 36 get { return (IItemCollection<T>)base.Content; } 37 37 set { base.Content = value; } 38 38 } … … 46 46 Caption = "Item Collection"; 47 47 } 48 public ItemCollectionView(I ObservableCollection<T> content)48 public ItemCollectionView(IItemCollection<T> content) 49 49 : this() { 50 50 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r3362 r3393 34 34 [View("ItemList View")] 35 35 [Content(typeof(ItemList<>), true)] 36 [Content(typeof(I ObservableList<>), false)]36 [Content(typeof(IItemList<>), false)] 37 37 public partial class ItemListView<T> : AsynchronousContentView where T : class, IItem { 38 38 /// <summary> … … 41 41 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 42 42 /// No won data storage present.</remarks> 43 public new I ObservableList<T> Content {44 get { return (I ObservableList<T>)base.Content; }43 public new IItemList<T> Content { 44 get { return (IItemList<T>)base.Content; } 45 45 set { base.Content = value; } 46 46 } … … 57 57 Caption = "Item List"; 58 58 } 59 public ItemListView(I ObservableList<T> content)59 public ItemListView(IItemList<T> content) 60 60 : this() { 61 61 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemSetView.cs
r2917 r3393 28 28 [View("ItemSet View")] 29 29 [Content(typeof(ItemSet<>), true)] 30 [Content(typeof(I ObservableSet<>), false)]30 [Content(typeof(IItemSet<>), false)] 31 31 public partial class ItemSetView<T> : ItemCollectionView<T> where T : class, IItem { 32 public new I ObservableSet<T> Content {33 get { return (I ObservableSet<T>)base.Content; }32 public new IItemSet<T> Content { 33 get { return (IItemSet<T>)base.Content; } 34 34 set { base.Content = value; } 35 35 } … … 45 45 Caption = "Item Set"; 46 46 } 47 public ItemSetView(I ObservableSet<T> content)47 public ItemSetView(IItemSet<T> content) 48 48 : this() { 49 49 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemCollectionView.cs
r3362 r3393 29 29 [Content(typeof(NamedItemCollection<>), true)] 30 30 public partial class NamedItemCollectionView<T> : ItemCollectionView<T> where T : class, INamedItem { 31 public new I ObservableKeyedCollection<string, T> Content {32 get { return (I ObservableKeyedCollection<string, T>)base.Content; }31 public new IKeyedItemCollection<string, T> Content { 32 get { return (IKeyedItemCollection<string, T>)base.Content; } 33 33 set { base.Content = value; } 34 34 } … … 44 44 Caption = "Named Item Collection"; 45 45 } 46 public NamedItemCollectionView(I ObservableKeyedCollection<string, T> content)46 public NamedItemCollectionView(IKeyedItemCollection<string, T> content) 47 47 : this() { 48 48 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorCollectionView.cs
r2924 r3393 6 6 [View("OperatorCollection View")] 7 7 [Content(typeof(OperatorCollection), true)] 8 [Content(typeof(I ObservableCollection<IOperator>), false)]8 [Content(typeof(IItemCollection<IOperator>), false)] 9 9 public partial class OperatorCollectionView : ItemCollectionView<IOperator> { 10 10 protected TypeSelectorDialog typeSelectorDialog; … … 24 24 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 25 25 /// <param name="scope">The scope whose variables should be represented visually.</param> 26 public OperatorCollectionView(I ObservableCollection<IOperator> content)26 public OperatorCollectionView(IItemCollection<IOperator> content) 27 27 : this() { 28 28 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorListView.cs
r3274 r3393 27 27 [View("OperatorList View")] 28 28 [Content(typeof(OperatorList), true)] 29 [Content(typeof(I ObservableList<IOperator>), false)]29 [Content(typeof(IItemList<IOperator>), false)] 30 30 public partial class OperatorListView : ItemListView<IOperator> { 31 31 protected TypeSelectorDialog typeSelectorDialog; … … 45 45 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 46 46 /// <param name="scope">The scope whose variables should be represented visually.</param> 47 public OperatorListView(I ObservableList<IOperator> content)47 public OperatorListView(IItemList<IOperator> content) 48 48 : this() { 49 49 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorSetView.cs
r2924 r3393 6 6 [View("OperatorSet View")] 7 7 [Content(typeof(OperatorSet), true)] 8 [Content(typeof(I ObservableSet<IOperator>), false)]8 [Content(typeof(IItemSet<IOperator>), false)] 9 9 public partial class OperatorSetView : ItemSetView<IOperator> { 10 10 protected TypeSelectorDialog typeSelectorDialog; … … 24 24 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 25 25 /// <param name="scope">The scope whose variables should be represented visually.</param> 26 public OperatorSetView(I ObservableSet<IOperator> content)26 public OperatorSetView(IItemSet<IOperator> content) 27 27 : this() { 28 28 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.cs
r3362 r3393 37 37 private Dictionary<IValueParameter<IOperator>, List<TreeNode>> opParamNodeTable; 38 38 private Dictionary<IOperator, List<TreeNode>> operatorNodeTable; 39 private Dictionary<I ObservableKeyedCollection<string, IParameter>, IOperator> parametersOperatorTable;39 private Dictionary<IKeyedItemCollection<string, IParameter>, IOperator> parametersOperatorTable; 40 40 41 41 /// <summary> … … 68 68 opParamNodeTable = new Dictionary<IValueParameter<IOperator>, List<TreeNode>>(); 69 69 operatorNodeTable = new Dictionary<IOperator, List<TreeNode>>(); 70 parametersOperatorTable = new Dictionary<I ObservableKeyedCollection<string, IParameter>, IOperator>();70 parametersOperatorTable = new Dictionary<IKeyedItemCollection<string, IParameter>, IOperator>(); 71 71 Caption = "Operator"; 72 72 } … … 291 291 Invoke(new CollectionItemsChangedEventHandler<IParameter>(Parameters_ItemsAdded), sender, e); 292 292 else { 293 I ObservableKeyedCollection<string, IParameter> coll = (IObservableKeyedCollection<string, IParameter>)sender;293 IKeyedItemCollection<string, IParameter> coll = (IKeyedItemCollection<string, IParameter>)sender; 294 294 IOperator op = parametersOperatorTable[coll]; 295 295 AddParameterNodes(op, e.Items); … … 307 307 else { 308 308 RemoveParameterNodes(e.Items); 309 I ObservableKeyedCollection<string, IParameter> coll = (IObservableKeyedCollection<string, IParameter>)sender;309 IKeyedItemCollection<string, IParameter> coll = (IKeyedItemCollection<string, IParameter>)sender; 310 310 IOperator op = parametersOperatorTable[coll]; 311 311 AddParameterNodes(op, e.Items); … … 317 317 else { 318 318 RemoveParameterNodes(e.Items); 319 I ObservableKeyedCollection<string, IParameter> coll = (IObservableKeyedCollection<string, IParameter>)sender;319 IKeyedItemCollection<string, IParameter> coll = (IKeyedItemCollection<string, IParameter>)sender; 320 320 IOperator op = parametersOperatorTable[coll]; 321 321 AddParameterNodes(op, e.Items); -
trunk/sources/HeuristicLab.Core.Views/3.3/ParameterCollectionView.cs
r2924 r3393 28 28 [View("ParameterCollection View")] 29 29 [Content(typeof(ParameterCollection), true)] 30 [Content(typeof(I ObservableKeyedCollection<string, IParameter>), false)]30 [Content(typeof(IKeyedItemCollection<string, IParameter>), false)] 31 31 public partial class ParameterCollectionView : NamedItemCollectionView<IParameter> { 32 32 protected CreateParameterDialog createParameterDialog; … … 45 45 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 46 46 /// <param name="scope">The scope whose variables should be represented visually.</param> 47 public ParameterCollectionView(I ObservableKeyedCollection<string, IParameter> content)47 public ParameterCollectionView(IKeyedItemCollection<string, IParameter> content) 48 48 : this() { 49 49 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ScopeListView.cs
r2924 r3393 5 5 [View("ScopeList View")] 6 6 [Content(typeof(ScopeList), true)] 7 [Content(typeof(I ObservableList<IScope>), false)]7 [Content(typeof(IItemList<IScope>), false)] 8 8 public partial class ScopeListView : ItemListView<IScope> { 9 9 /// <summary> … … 21 21 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 22 22 /// <param name="scope">The scope whose variables should be represented visually.</param> 23 public ScopeListView(I ObservableList<IScope> content)23 public ScopeListView(IItemList<IScope> content) 24 24 : this() { 25 25 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/ValueParameterCollectionView.cs
r2924 r3393 28 28 [View("ValueParameterCollection View")] 29 29 [Content(typeof(ValueParameterCollection), true)] 30 [Content(typeof(I ObservableKeyedCollection<string, IValueParameter>), false)]30 [Content(typeof(IKeyedItemCollection<string, IValueParameter>), false)] 31 31 public partial class ValueParameterCollectionView : NamedItemCollectionView<IValueParameter> { 32 32 protected CreateParameterDialog createParameterDialog; … … 45 45 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 46 46 /// <param name="scope">The scope whose variables should be represented visually.</param> 47 public ValueParameterCollectionView(I ObservableKeyedCollection<string, IValueParameter> content)47 public ValueParameterCollectionView(IKeyedItemCollection<string, IValueParameter> content) 48 48 : this() { 49 49 Content = content; -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableCollectionView.cs
r2924 r3393 5 5 [View("VariableCollection View")] 6 6 [Content(typeof(VariableCollection), true)] 7 [Content(typeof(I ObservableKeyedCollection<string, IVariable>), false)]7 [Content(typeof(IKeyedItemCollection<string, IVariable>), false)] 8 8 public partial class VariableCollectionView : NamedItemCollectionView<IVariable> { 9 9 /// <summary> … … 21 21 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 22 22 /// <param name="scope">The scope whose variables should be represented visually.</param> 23 public VariableCollectionView(I ObservableKeyedCollection<string, IVariable> content)23 public VariableCollectionView(IKeyedItemCollection<string, IVariable> content) 24 24 : this() { 25 25 Content = content; -
trunk/sources/HeuristicLab.Core/3.3/ExecutionContext.cs
r3385 r3393 37 37 } 38 38 39 public I ObservableKeyedCollection<string, IParameter> Parameters {39 public IKeyedItemCollection<string, IParameter> Parameters { 40 40 get { return parameterizedItem.Parameters; } 41 41 } -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IExecutionContext.cs
r3376 r3393 29 29 public interface IExecutionContext : IDeepCloneable { 30 30 IExecutionContext Parent { get; } 31 I ObservableKeyedCollection<string, IParameter> Parameters { get; }31 IKeyedItemCollection<string, IParameter> Parameters { get; } 32 32 IScope Scope { get; } 33 33 -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/IParameterizedItem.cs
r3260 r3393 28 28 /// </summary> 29 29 public interface IParameterizedItem : IItem { 30 I ObservableKeyedCollection<string, IParameter> Parameters { get; }30 IKeyedItemCollection<string, IParameter> Parameters { get; } 31 31 32 32 void CollectParameterValues(IDictionary<string, IItem> values); -
trunk/sources/HeuristicLab.Core/3.3/ParameterizedNamedItem.cs
r3376 r3393 38 38 get { return parameters; } 39 39 } 40 private ReadOnly ObservableKeyedCollection<string, IParameter> readOnlyParameters;41 I ObservableKeyedCollection<string, IParameter> IParameterizedItem.Parameters {40 private ReadOnlyKeyedItemCollection<string, IParameter> readOnlyParameters; 41 IKeyedItemCollection<string, IParameter> IParameterizedItem.Parameters { 42 42 get { 43 43 if (readOnlyParameters == null) readOnlyParameters = parameters.AsReadOnly(); -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorGraphVisualizationInfo.cs
r3386 r3393 36 36 [Storable] 37 37 private BidirectionalLookup<IOperator, IOperatorShapeInfo> operatorShapeInfoMapping; 38 private BidirectionalLookup<IOperator, I ObservableKeyedCollection<string, IParameter>> operatorParameterCollectionMapping;38 private BidirectionalLookup<IOperator, IKeyedItemCollection<string, IParameter>> operatorParameterCollectionMapping; 39 39 private Dictionary<IParameter, IOperator> parameterOperatorMapping; 40 40 … … 42 42 : base() { 43 43 this.operatorShapeInfoMapping = new BidirectionalLookup<IOperator, IOperatorShapeInfo>(); 44 this.operatorParameterCollectionMapping = new BidirectionalLookup<IOperator, I ObservableKeyedCollection<string, IParameter>>();44 this.operatorParameterCollectionMapping = new BidirectionalLookup<IOperator, IKeyedItemCollection<string, IParameter>>(); 45 45 this.parameterOperatorMapping = new Dictionary<IParameter, IOperator>(); 46 46 } … … 49 49 private OperatorGraphVisualizationInfo(bool deserializing) 50 50 : base() { 51 this.operatorParameterCollectionMapping = new BidirectionalLookup<IOperator, I ObservableKeyedCollection<string, IParameter>>();51 this.operatorParameterCollectionMapping = new BidirectionalLookup<IOperator, IKeyedItemCollection<string, IParameter>>(); 52 52 this.parameterOperatorMapping = new Dictionary<IParameter, IOperator>(); 53 53 } … … 367 367 368 368 private void Parameters_ItemsAdded(object sender, CollectionItemsChangedEventArgs<IParameter> e) { 369 I ObservableKeyedCollection<string, IParameter> parameterCollection = sender as IObservableKeyedCollection<string, IParameter>;369 IKeyedItemCollection<string, IParameter> parameterCollection = sender as IKeyedItemCollection<string, IParameter>; 370 370 IOperator op = this.operatorParameterCollectionMapping.GetBySecond(parameterCollection); 371 371 foreach (IParameter param in e.Items) … … 374 374 } 375 375 private void Parameters_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<IParameter> e) { 376 I ObservableKeyedCollection<string, IParameter> parameterCollection = sender as IObservableKeyedCollection<string, IParameter>;376 IKeyedItemCollection<string, IParameter> parameterCollection = sender as IKeyedItemCollection<string, IParameter>; 377 377 IOperator op = this.operatorParameterCollectionMapping.GetBySecond(parameterCollection); 378 378 foreach (IParameter param in e.Items) … … 381 381 } 382 382 private void Parameters_ItemsReplaced(object sender, CollectionItemsChangedEventArgs<IParameter> e) { 383 I ObservableKeyedCollection<string, IParameter> parameterCollection = sender as IObservableKeyedCollection<string, IParameter>;383 IKeyedItemCollection<string, IParameter> parameterCollection = sender as IKeyedItemCollection<string, IParameter>; 384 384 IOperator op = this.operatorParameterCollectionMapping.GetBySecond(parameterCollection); 385 385 foreach (IParameter param in e.OldItems) … … 390 390 } 391 391 private void Parameters_CollectionReset(object sender, CollectionItemsChangedEventArgs<IParameter> e) { 392 I ObservableKeyedCollection<string, IParameter> parameterCollection = sender as IObservableKeyedCollection<string, IParameter>;392 IKeyedItemCollection<string, IParameter> parameterCollection = sender as IKeyedItemCollection<string, IParameter>; 393 393 IOperator op = this.operatorParameterCollectionMapping.GetBySecond(parameterCollection); 394 394 foreach (IParameter param in e.OldItems) -
trunk/sources/HeuristicLab.Operators/3.3/CombinedOperator.cs
r3376 r3393 38 38 get { return base.Parameters; } 39 39 } 40 I ObservableKeyedCollection<string, IParameter> IParameterizedItem.Parameters {40 IKeyedItemCollection<string, IParameter> IParameterizedItem.Parameters { 41 41 get { return Parameters; } 42 42 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/OptimizerListView.cs
r3274 r3393 22 22 using System.Windows.Forms; 23 23 using HeuristicLab.Collections; 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Core.Views; 25 26 using HeuristicLab.MainForm; … … 28 29 [View("OptimizerList View")] 29 30 [Content(typeof(OptimizerList), true)] 30 [Content(typeof(I ObservableList<IOptimizer>), false)]31 [Content(typeof(IItemList<IOptimizer>), false)] 31 32 public partial class OptimizerListView : ItemListView<IOptimizer> { 32 33 protected TypeSelectorDialog typeSelectorDialog; … … 46 47 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 47 48 /// <param name="scope">The scope whose variables should be represented visually.</param> 48 public OptimizerListView(I ObservableList<IOptimizer> content)49 public OptimizerListView(IItemList<IOptimizer> content) 49 50 : this() { 50 51 Content = content; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultCollectionView.cs
r3376 r3393 29 29 [View("ResultCollection View")] 30 30 [Content(typeof(ResultCollection), true)] 31 [Content(typeof(I ObservableKeyedCollection<string, IResult>), false)]31 [Content(typeof(IKeyedItemCollection<string, IResult>), false)] 32 32 public partial class ResultCollectionView : NamedItemCollectionView<IResult> { 33 33 public override bool ReadOnly { … … 50 50 /// <remarks>Calls <see cref="VariablesScopeView()"/>.</remarks> 51 51 /// <param name="scope">The scope whose variables should be represented visually.</param> 52 public ResultCollectionView(I ObservableKeyedCollection<string, IResult> content)52 public ResultCollectionView(IKeyedItemCollection<string, IResult> content) 53 53 : this() { 54 54 Content = content; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs
r3367 r3393 21 21 22 22 using HeuristicLab.Collections; 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Core.Views; 24 25 using HeuristicLab.MainForm; … … 31 32 [View("RunCollection View")] 32 33 [Content(typeof(RunCollection), true)] 33 [Content(typeof(I ObservableCollection<IRun>), false)]34 [Content(typeof(IItemCollection<IRun>), false)] 34 35 public partial class RunCollectionView : AsynchronousContentView { 35 public new I ObservableCollection<IRun> Content {36 get { return (I ObservableCollection<IRun>)base.Content; }36 public new IItemCollection<IRun> Content { 37 get { return (IItemCollection<IRun>)base.Content; } 37 38 set { base.Content = value; } 38 39 } … … 47 48 } 48 49 49 public RunCollectionView(I ObservableCollection<IRun> content)50 public RunCollectionView(IItemCollection<IRun> content) 50 51 : this() { 51 52 Content = content; -
trunk/sources/HeuristicLab.Optimization/3.3/UserDefinedAlgorithm.cs
r3376 r3393 37 37 get { return base.Parameters; } 38 38 } 39 I ObservableKeyedCollection<string, IParameter> IParameterizedItem.Parameters {39 IKeyedItemCollection<string, IParameter> IParameterizedItem.Parameters { 40 40 get { return Parameters; } 41 41 }
Note: See TracChangeset
for help on using the changeset viewer.