Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/28/20 18:03:00 (4 years ago)
Author:
mkommend
Message:

#2521: Changed parameters to use readonly only for GUI manipulation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Encoding.cs

    r17570 r17571  
    9595    protected Encoding(string name)
    9696      : base(name) {
    97       Parameters.Add(new ValueParameter<ISolutionCreator<TEncodedSolution>>(name + ".SolutionCreator", "The operator to create a solution."));
     97      Parameters.Add(new ValueParameter<ISolutionCreator<TEncodedSolution>>(name + ".SolutionCreator", "The operator to create a solution.") {
     98        ReadOnly = true
     99      });
    98100      Parameters.Add(new FixedValueParameter<ReadOnlyItemSet<IOperator>>(name + ".Operators", "The operators that the encoding specifies.", encodingOperators.AsReadOnly()) {
    99         GetsCollected = false
     101        GetsCollected = false, ReadOnly = true
    100102      });
    101103
Note: See TracChangeset for help on using the changeset viewer.