Changeset 15281 for branches/Async/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationModel.cs
- Timestamp:
- 07/23/17 11:17:18 (7 years ago)
- Location:
- branches/Async
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Async/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Property svn:mergeinfo changed
-
branches/Async/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationModel.cs
r15280 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using HeuristicLab.Common; … … 34 35 public abstract class SymbolicClassificationModel : SymbolicDataAnalysisModel, ISymbolicClassificationModel { 35 36 [Storable] 36 private readonlystring targetVariable;37 private string targetVariable; 37 38 public string TargetVariable { 38 39 get { return targetVariable; } 40 set { 41 if (string.IsNullOrEmpty(value) || targetVariable == value) return; 42 targetVariable = value; 43 OnTargetVariableChanged(this, EventArgs.Empty); 44 } 39 45 } 40 46 41 47 [StorableConstructor] 42 protected SymbolicClassificationModel(bool deserializing) : base(deserializing) { } 48 protected SymbolicClassificationModel(bool deserializing) 49 : base(deserializing) { 50 targetVariable = string.Empty; 51 } 43 52 44 53 protected SymbolicClassificationModel(SymbolicClassificationModel original, Cloner cloner) … … 64 73 Scale(problemData, problemData.TargetVariable); 65 74 } 75 76 #region events 77 public event EventHandler TargetVariableChanged; 78 private void OnTargetVariableChanged(object sender, EventArgs args) { 79 var changed = TargetVariableChanged; 80 if (changed != null) 81 changed(sender, args); 82 } 83 #endregion 66 84 } 67 85 }
Note: See TracChangeset
for help on using the changeset viewer.