Ignore:
Timestamp:
12/04/15 10:35:04 (5 years ago)
Author:
mkommend
Message:

#2521: Intermediate version of schedule encoding refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Problems.Scheduling/3.3/JobShopSchedulingProblem.cs

    r13173 r13435  
    164164      ScheduleEvaluatorParameter.ValueChanged += ScheduleEvaluatorParameter_ValueChanged;
    165165      ScheduleEvaluator.QualityParameter.ActualNameChanged += ScheduleEvaluator_QualityParameter_ActualNameChanged;
    166       SolutionCreator.ScheduleEncodingParameter.ActualNameChanged += SolutionCreator_SchedulingEncodingParameter_ActualNameChanged;
     166      SolutionCreator.ScheduleParameter.ActualNameChanged += SolutionCreator_SchedulingEncodingParameter_ActualNameChanged;
    167167      ScheduleDecoderParameter.ValueChanged += ScheduleDecoderParameter_ValueChanged;
    168168      if (ScheduleDecoder != null) ScheduleDecoder.ScheduleParameter.ActualNameChanged += ScheduleDecoder_ScheduleParameter_ActualNameChanged;
     
    171171    #region Events
    172172    protected override void OnSolutionCreatorChanged() {
    173       SolutionCreator.ScheduleEncodingParameter.ActualNameChanged += SolutionCreator_SchedulingEncodingParameter_ActualNameChanged;
     173      SolutionCreator.ScheduleParameter.ActualNameChanged += SolutionCreator_SchedulingEncodingParameter_ActualNameChanged;
    174174      InitializeOperators();
    175175    }
     
    288288
    289289      if (ScheduleDecoder != null)
    290         ScheduleDecoder.ScheduleEncodingParameter.ActualName = SolutionCreator.ScheduleEncodingParameter.ActualName;
     290        ScheduleDecoder.ScheduleEncodingParameter.ActualName = SolutionCreator.ScheduleParameter.ActualName;
    291291
    292292      if (ScheduleDecoder != null) {
     
    295295      } else if (SolutionCreator is DirectScheduleRandomCreator) {
    296296        var directEvaluator = (DirectScheduleRandomCreator)SolutionCreator;
    297         ScheduleEvaluator.ScheduleParameter.ActualName = directEvaluator.ScheduleEncodingParameter.ActualName;
     297        ScheduleEvaluator.ScheduleParameter.ActualName = directEvaluator.ScheduleParameter.ActualName;
    298298        ScheduleEvaluator.ScheduleParameter.Hidden = true;
    299299      } else {
     
    303303
    304304      foreach (var op in Operators.OfType<IScheduleManipulator>()) {
    305         op.ScheduleEncodingParameter.ActualName = SolutionCreator.ScheduleEncodingParameter.ActualName;
    306         op.ScheduleEncodingParameter.Hidden = true;
     305        op.ScheduleParameter.ActualName = SolutionCreator.ScheduleParameter.ActualName;
     306        op.ScheduleParameter.Hidden = true;
    307307      }
    308308
    309309      foreach (var op in Operators.OfType<IScheduleCrossover>()) {
    310         op.ChildParameter.ActualName = SolutionCreator.ScheduleEncodingParameter.ActualName;
     310        op.ChildParameter.ActualName = SolutionCreator.ScheduleParameter.ActualName;
    311311        op.ChildParameter.Hidden = true;
    312         op.ParentsParameter.ActualName = SolutionCreator.ScheduleEncodingParameter.ActualName;
     312        op.ParentsParameter.ActualName = SolutionCreator.ScheduleParameter.ActualName;
    313313        op.ParentsParameter.Hidden = true;
    314314      }
     
    320320          op.ScheduleParameter.Hidden = true;
    321321        } else if (SolutionCreator is DirectScheduleRandomCreator) {
    322           op.ScheduleParameter.ActualName = ((DirectScheduleRandomCreator)SolutionCreator).ScheduleEncodingParameter.ActualName;
     322          op.ScheduleParameter.ActualName = ((DirectScheduleRandomCreator)SolutionCreator).ScheduleParameter.ActualName;
    323323          op.ScheduleParameter.Hidden = true;
    324324        } else {
Note: See TracChangeset for help on using the changeset viewer.