Changeset 4563 for branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classification
- Timestamp:
- 10/06/10 21:38:31 (14 years ago)
- Location:
- branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classification/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classification/3.3/ProblemBase/Problem.cs
r4323 r4563 51 51 Parameters.Add(new ValueParameter<T>(EvaluatorParameterName, "The operator used to evaluate a solution.")); 52 52 Parameters.Add(new ValueParameter<U>(SolutionCreateParameterName, "The operator to create a solution.")); 53 Register ParameterEventHandlers();53 RegisterEventHandlers(); 54 54 } 55 55 56 56 [StorableHook(HookType.AfterDeserialization)] 57 57 private void AfterDeserialization() { 58 Register ParameterEventHandlers();58 RegisterEventHandlers(); 59 59 } 60 60 … … 62 62 Problem<T, U> clone = (Problem<T, U>)base.Clone(cloner); 63 63 clone.operators = new ItemCollection<IOperator>(operators.Select(x => (IOperator)cloner.Clone(x))); 64 clone.Register ParameterEventHandlers();64 clone.RegisterEventHandlers(); 65 65 return clone; 66 66 } 67 67 68 private void Register ParameterEventHandlers() {68 private void RegisterEventHandlers() { 69 69 Operators.ItemsAdded += new CollectionItemsChangedEventHandler<IOperator>(Operators_Changed); 70 70 Operators.ItemsRemoved += new CollectionItemsChangedEventHandler<IOperator>(Operators_Changed); … … 77 77 #region properties 78 78 private ItemCollection<IOperator> operators; 79 [Storable ]79 [Storable(Name = "Operators")] 80 80 private IEnumerable<IOperator> StorableOperators { 81 81 get { return operators; } -
branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classification/3.3/SingleObjectiveClassificationProblem.cs
r4536 r4563 30 30 [Item("Classification Problem", "Represents a classfication problem.")] 31 31 [StorableClass] 32 public abstract class SingleObjectiveClassificationProblem<T, U> : SingleObjectiveProblem<T, U>, I DataAnalysisProblem32 public abstract class SingleObjectiveClassificationProblem<T, U> : SingleObjectiveProblem<T, U>, ISingleObjectiveDataAnalysisProblem 33 33 where T : class, ISingleObjectiveEvaluator 34 34 where U : class, ISolutionCreator {
Note: See TracChangeset
for help on using the changeset viewer.