Changeset 4704 for trunk/sources/HeuristicLab.Analysis
- Timestamp:
- 11/02/10 04:30:06 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Analysis/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/AlleleFrequencyAnalyzer.cs
r4648 r4704 51 51 get { return (ValueLookupParameter<ResultCollection>)Parameters["Results"]; } 52 52 } 53 public ValueParameter<BoolValue> Store AlleleFrequenciesHistoryParameter {54 get { return (ValueParameter<BoolValue>)Parameters["Store AlleleFrequenciesHistory"]; }53 public ValueParameter<BoolValue> StoreHistoryParameter { 54 get { return (ValueParameter<BoolValue>)Parameters["StoreHistory"]; } 55 55 } 56 56 public ValueParameter<IntValue> UpdateIntervalParameter { … … 61 61 } 62 62 63 [StorableConstructor] 64 protected AlleleFrequencyAnalyzer(bool deserializing) : base(deserializing) { } 63 65 public AlleleFrequencyAnalyzer() 64 66 : base() { … … 68 70 Parameters.Add(new LookupParameter<T>("BestKnownSolution", "The best known solution.")); 69 71 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the allele frequency analysis results should be stored.")); 70 Parameters.Add(new ValueParameter<BoolValue>("Store AlleleFrequenciesHistory", "True if the history of all allele frequencies should be stored.", new BoolValue(false)));72 Parameters.Add(new ValueParameter<BoolValue>("StoreHistory", "True if the history of the allele frequency analysis should be stored.", new BoolValue(false))); 71 73 Parameters.Add(new ValueParameter<IntValue>("UpdateInterval", "The interval in which the allele frequency analysis should be applied.", new IntValue(1))); 72 74 Parameters.Add(new LookupParameter<IntValue>("UpdateCounter", "The value which counts how many times the operator was called since the last update.", "AlleleFrequencyAnalyzerUpdateCounter")); … … 99 101 ItemArray<DoubleValue> qualities = QualityParameter.ActualValue; 100 102 T bestKnownSolution = BestKnownSolutionParameter.ActualValue; 101 bool storeHistory = Store AlleleFrequenciesHistoryParameter.Value.Value;103 bool storeHistory = StoreHistoryParameter.Value.Value; 102 104 103 105 // calculate index of current best solution -
trunk/sources/HeuristicLab.Analysis/3.3/AlleleFrequencyCollection.cs
r4639 r4704 21 21 22 22 using System.Collections.Generic; 23 using System.Drawing; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 31 32 [StorableClass] 32 33 public class AlleleFrequencyCollection : ReadOnlyItemCollection<AlleleFrequency> { 34 public override Image ItemImage { 35 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Statistics; } 36 } 37 33 38 public AlleleFrequencyCollection() : base() { } 34 39 public AlleleFrequencyCollection(IEnumerable<AlleleFrequency> frequencies) : base(new ItemCollection<AlleleFrequency>(frequencies)) { } -
trunk/sources/HeuristicLab.Analysis/3.3/AlleleFrequencyCollectionHistory.cs
r4641 r4704 21 21 22 22 using System.Collections.Generic; 23 using System.Drawing; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 31 32 [StorableClass] 32 33 public class AlleleFrequencyCollectionHistory : ItemCollection<AlleleFrequencyCollection> { 34 public override Image ItemImage { 35 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Cab; } 36 } 37 33 38 public AlleleFrequencyCollectionHistory() : base() { } 34 39 public AlleleFrequencyCollectionHistory(IEnumerable<AlleleFrequencyCollection> collections) : base(new ItemCollection<AlleleFrequencyCollection>(collections)) { }
Note: See TracChangeset
for help on using the changeset viewer.