Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/26/12 13:12:48 (10 years ago)
Author:
gkronber
Message:

#1797 added an interface IConstrainedValueParameter, added a test case to check the name, visibility and type of the parameter-property for constrainedValueParameters, corrected all properties in IParameterizedItems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/SimulatedAnnealingImprovementOperator.cs

    r8118 r8121  
    6767      get { return (ILookupParameter<IRandom>)Parameters["Random"]; }
    6868    }
    69     private ConstrainedValueParameter<IMoveGenerator> MoveGeneratorParameter {
    70       get { return (ConstrainedValueParameter<IMoveGenerator>)Parameters["MoveGenerator"]; }
    71     }
    72     private ConstrainedValueParameter<IMoveMaker> MoveMakerParameter {
    73       get { return (ConstrainedValueParameter<IMoveMaker>)Parameters["MoveMaker"]; }
    74     }
    75     private ConstrainedValueParameter<ISingleObjectiveMoveEvaluator> MoveEvaluatorParameter {
    76       get { return (ConstrainedValueParameter<ISingleObjectiveMoveEvaluator>)Parameters["MoveEvaluator"]; }
     69    public IConstrainedValueParameter<IMoveGenerator> MoveGeneratorParameter {
     70      get { return (IConstrainedValueParameter<IMoveGenerator>)Parameters["MoveGenerator"]; }
     71    }
     72    public IConstrainedValueParameter<IMoveMaker> MoveMakerParameter {
     73      get { return (IConstrainedValueParameter<IMoveMaker>)Parameters["MoveMaker"]; }
     74    }
     75    public IConstrainedValueParameter<ISingleObjectiveMoveEvaluator> MoveEvaluatorParameter {
     76      get { return (IConstrainedValueParameter<ISingleObjectiveMoveEvaluator>)Parameters["MoveEvaluator"]; }
    7777    }
    7878    private IValueLookupParameter<IntValue> InnerIterationsParameter {
     
    8888      get { return (ValueParameter<DoubleValue>)Parameters["EndTemperature"]; }
    8989    }
    90     private ConstrainedValueParameter<IDiscreteDoubleValueModifier> AnnealingOperatorParameter {
    91       get { return (ConstrainedValueParameter<IDiscreteDoubleValueModifier>)Parameters["AnnealingOperator"]; }
     90    public IConstrainedValueParameter<IDiscreteDoubleValueModifier> AnnealingOperatorParameter {
     91      get { return (IConstrainedValueParameter<IDiscreteDoubleValueModifier>)Parameters["AnnealingOperator"]; }
    9292    }
    9393    public ScopeTreeLookupParameter<DoubleValue> QualityParameter {
     
    115115      get { return MoveMakerParameter.Value; }
    116116      set { MoveMakerParameter.Value = value; }
     117    }
     118    public IDiscreteDoubleValueModifier AnnealingOperator {
     119      get { return AnnealingOperatorParameter.Value; }
     120      set { AnnealingOperatorParameter.Value = value; }
    117121    }
    118122    public ISingleObjectiveMoveEvaluator MoveEvaluator {
Note: See TracChangeset for help on using the changeset viewer.