Changeset 2834 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 02/19/10 06:19:16 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization
- Files:
-
- 7 added
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/IProblem.cs
r2829 r2834 20 20 #endregion 21 21 22 using HeuristicLab.Co llections;22 using HeuristicLab.Core; 23 23 24 namespace HeuristicLab. Core{24 namespace HeuristicLab.Optimization { 25 25 /// <summary> 26 26 /// Interface to represent a problem. 27 27 /// </summary> 28 public interface IProblem : INamedItem { 29 IObservableKeyedCollection<string, IValueParameter> Parameters { get; } 30 } 28 public interface IProblem : INamedItem, IParameterizedItem { } 31 29 } -
trunk/sources/HeuristicLab.Optimization/3.3/Problem.cs
r2829 r2834 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 26 27 namespace HeuristicLab. Core{27 namespace HeuristicLab.Optimization { 28 28 /// <summary> 29 29 /// The base class for all problems. … … 35 35 } 36 36 37 private ValueParameterCollection parameters;37 private ParameterCollection parameters; 38 38 [Storable] 39 protected ValueParameterCollection Parameters {39 protected ParameterCollection Parameters { 40 40 get { return parameters;} 41 41 private set { … … 46 46 } 47 47 } 48 private ReadOnlyObservableKeyedCollection<string, I ValueParameter> readOnlyParameters;49 IObservableKeyedCollection<string, I ValueParameter> IProblem.Parameters {48 private ReadOnlyObservableKeyedCollection<string, IParameter> readOnlyParameters; 49 IObservableKeyedCollection<string, IParameter> IParameterizedItem.Parameters { 50 50 get { 51 51 if (readOnlyParameters == null) readOnlyParameters = parameters.AsReadOnly(); … … 56 56 protected Problem() { 57 57 Name = ItemName; 58 Parameters = new ValueParameterCollection();58 Parameters = new ParameterCollection(); 59 59 readOnlyParameters = null; 60 60 } … … 62 62 public override IDeepCloneable Clone(Cloner cloner) { 63 63 Problem clone = (Problem)base.Clone(cloner); 64 clone.Parameters = ( ValueParameterCollection)cloner.Clone(parameters);64 clone.Parameters = (ParameterCollection)cloner.Clone(parameters); 65 65 return clone; 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.