- Timestamp:
- 01/07/15 14:06:08 (10 years ago)
- Location:
- branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/Encoding.cs
r11619 r11737 80 80 } 81 81 82 public void ConfigureOperator(IOperator @operator) { ConfigureOperators(new[] { @operator }); } 82 83 public abstract void ConfigureOperators(IEnumerable<IOperator> operators); 83 public void ConfigureOperator(IOperator @operator) { ConfigureOperators(new[] { @operator }); } 84 84 85 85 86 public event EventHandler SolutionCreatorChanged; … … 89 90 if (handler != null) handler(this, EventArgs.Empty); 90 91 } 91 92 93 public event EventHandler ParameterConfigurationChanged;94 protected virtual void OnParameterConfigurationChanged() {95 var handler = ParameterConfigurationChanged;96 if (handler != null) handler(this, EventArgs.Empty);97 }98 92 } 99 93 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Individuals/Individual.cs
r11619 r11737 29 29 namespace HeuristicLab.Problems.Programmable { 30 30 public abstract class Individual { 31 p ublicIEncoding Encoding { get; private set; }31 protected IEncoding Encoding { get; private set; } 32 32 protected IScope Scope { get; private set; } 33 33 -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Individuals/MultiEncodingIndividual.cs
r11619 r11737 27 27 namespace HeuristicLab.Problems.Programmable { 28 28 public sealed class MultiEncodingIndividual : Individual { 29 p ublicnew MultiEncoding Encoding {29 private new MultiEncoding Encoding { 30 30 get { return (MultiEncoding)base.Encoding; } 31 31 } 32 32 33 33 private readonly IEnumerable<Individual> individuals; 34 34 35 public MultiEncodingIndividual(MultiEncoding encoding, IScope scope) 35 36 : base(encoding, scope) { -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Interfaces/IEncoding.cs
r11619 r11737 30 30 31 31 IEnumerable<IOperator> Operators { get; } 32 //event EventHandler ParameterConfigurationChanged;33 32 34 33 Individual GetIndividual(IScope scope); … … 37 36 38 37 event EventHandler SolutionCreatorChanged; 39 //event EventHandler OperatorsChanged;40 38 } 41 39 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/MultiEncodingOperator.cs
r11593 r11737 53 53 } 54 54 55 p ublicIConstrainedValueParameter<T> GetParameter(IEncoding encoding) {55 protected IConstrainedValueParameter<T> GetParameter(IEncoding encoding) { 56 56 if (!Parameters.ContainsKey(encoding.Name)) throw new ArgumentException(string.Format("Encoding {0} was not added to the MultiEncoding.", encoding.Name)); 57 57
Note: See TracChangeset
for help on using the changeset viewer.