Changeset 12163 for branches/HeuristicLab.EvolutionTracking
- Timestamp:
- 03/09/15 15:06:49 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers/EvolutionTrackingAnalyzer.cs
r12156 r12163 31 31 [Item("EvolutionTrackingAnalyzer", "Base class for analyzers that use the genealogy graph")] 32 32 [StorableClass] 33 public abstract class EvolutionTrackingAnalyzer <T> : SingleSuccessorOperator, IAnalyzer where T : class,IItem{33 public abstract class EvolutionTrackingAnalyzer : SingleSuccessorOperator, IAnalyzer { 34 34 #region parameter names 35 35 private const string GenerationsParameterName = "Generations"; 36 36 private const string ResultsParameterName = "Results"; 37 37 private const string PopulationSizeParameterName = "PopulationSize"; 38 pr ivateconst string PopulationGraphResultName = "PopulationGraph";38 protected const string PopulationGraphResultName = "PopulationGraph"; 39 39 #endregion 40 40 … … 64 64 public IntValue Generation { get { return GenerationsParameter.ActualValue; } } 65 65 public IntValue PopulationSize { get { return PopulationSizeParameter.ActualValue; } } 66 public IGenealogyGraph <T>PopulationGraph {66 public IGenealogyGraph PopulationGraph { 67 67 get { 68 68 if (Results.ContainsKey(PopulationGraphResultName)) 69 return (IGenealogyGraph <T>)Results[PopulationGraphResultName].Value;69 return (IGenealogyGraph)Results[PopulationGraphResultName].Value; 70 70 return null; 71 71 } … … 79 79 80 80 protected EvolutionTrackingAnalyzer() { 81 Parameters.Add(new LookupParameter<IGenealogyGraph <T>>(PopulationGraphResultName, "The genealogy graph."));81 Parameters.Add(new LookupParameter<IGenealogyGraph>(PopulationGraphResultName, "The genealogy graph.")); 82 82 Parameters.Add(new LookupParameter<IntValue>(GenerationsParameterName, "The number of generations.")); 83 83 Parameters.Add(new LookupParameter<ResultCollection>(ResultsParameterName, "The results collection.")); … … 87 87 } 88 88 89 protected EvolutionTrackingAnalyzer(EvolutionTrackingAnalyzer <T>original, Cloner cloner)89 protected EvolutionTrackingAnalyzer(EvolutionTrackingAnalyzer original, Cloner cloner) 90 90 : base(original, cloner) { 91 91 } … … 94 94 protected EvolutionTrackingAnalyzer(bool deserializing) : base(deserializing) { } 95 95 } 96 97 [Item("EvolutionTrackingAnalyzer", "Base class for analyzers that use the genealogy graph")] 98 [StorableClass] 99 public class EvolutionTrackingAnalyzer<T> : EvolutionTrackingAnalyzer where T : class, IItem { 100 public EvolutionTrackingAnalyzer() { } 101 102 protected EvolutionTrackingAnalyzer(EvolutionTrackingAnalyzer original, Cloner cloner) : base(original, cloner) { } 103 104 public override IDeepCloneable Clone(Cloner cloner) { 105 return new EvolutionTrackingAnalyzer<T>(this, cloner); 106 } 107 108 [StorableConstructor] 109 protected EvolutionTrackingAnalyzer(bool deserializing) : base(deserializing) { } 110 111 new public IGenealogyGraph<T> PopulationGraph { 112 get { 113 if (Results.ContainsKey(PopulationGraphResultName)) 114 return (IGenealogyGraph<T>)Results[PopulationGraphResultName].Value; 115 return null; 116 } 117 } 118 } 96 119 } -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/HeuristicLab.EvolutionTracking-3.4.csproj
r12156 r12163 112 112 <Compile Include="Analyzers\EvolutionTrackingAnalyzer.cs" /> 113 113 <Compile Include="Analyzers\GenealogyAnalyzer.cs" /> 114 <Compile Include="Analyzers\SelectionSchemeAnalyzer.cs" /> 114 115 <Compile Include="Collections\CloneableCollection.cs" /> 115 116 <Compile Include="Fragment.cs" /> -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r12155 r12163 307 307 <Compile Include="Symbols\VariableConditionTreeNode.cs" /> 308 308 <Compile Include="Symbols\VariableTreeNode.cs" /> 309 <Compile Include="Tracking\Analyzers\SymbolicDataAnalysisFragmentLengthAnalyzer.cs" /> 310 <Compile Include="Tracking\Analyzers\SymbolicDataAnalysisTraceOverlapAnalyzer.cs" /> 309 311 <Compile Include="Tracking\SymbolicDataAnalysisExpressionAfterCrossoverOperator.cs" /> 310 312 <Compile Include="Tracking\SymbolicDataAnalysisExpressionAfterManipulatorOperator.cs" />
Note: See TracChangeset
for help on using the changeset viewer.