Changeset 10285 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Operators/AfterManipulatorOperator.cs
- Timestamp:
- 01/05/14 20:47:50 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Operators/AfterManipulatorOperator.cs
r10278 r10285 33 33 where TContent : class,IItem { 34 34 35 private string childParameterName; 36 public string ChildParameterName { 37 get { return childParameterName; } 38 set { 39 if (childParameterName != null && Parameters.ContainsKey(childParameterName)) Parameters.Remove(childParameterName); 40 childParameterName = value; 41 if (!Parameters.ContainsKey(childParameterName)) Parameters.Add(new LookupParameter<TContent>(childParameterName)); 42 } 43 } 35 private const string ChildParameterName = "Child"; 36 public ILookupParameter<TContent> ChildParameter; 44 37 45 #region parameter properties46 public ILookupParameter<TContent> ChildParameter {47 get { return (ILookupParameter<TContent>)Parameters[ChildParameterName]; }48 }49 #endregion50 38 protected AfterManipulatorOperator(AfterManipulatorOperator<TGraph, TVertex, TContent> original, Cloner cloner) 51 39 : base(original, cloner) { … … 55 43 } 56 44 57 public AfterManipulatorOperator() { } 45 public AfterManipulatorOperator() { 46 ChildParameter = new LookupParameter<TContent>(ChildParameterName); 47 Parameters.Add(ChildParameter); 48 } 58 49 59 50 public override IOperation Apply() {
Note: See TracChangeset
for help on using the changeset viewer.