Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (8 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r14185 r14927  
    3131using HeuristicLab.Optimization.Operators;
    3232using HeuristicLab.Parameters;
    33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     33using HeuristicLab.Persistence;
    3434using HeuristicLab.PluginInfrastructure;
    3535using HeuristicLab.Problems.Instances;
     
    3737namespace HeuristicLab.Problems.TestFunctions {
    3838  [Item("Test Function (single-objective)", "Test function with real valued inputs and a single objective.")]
    39   [StorableClass]
     39  [StorableType("442d5e49-8fcd-4016-8974-eb93fce0c2d2")]
    4040  [Creatable(CreatableAttribute.Categories.Problems, Priority = 90)]
    4141  public sealed class SingleObjectiveTestFunctionProblem : SingleObjectiveHeuristicOptimizationProblem<ISingleObjectiveTestFunctionProblemEvaluator, IRealVectorCreator>, IStorableContent, IProblemInstanceConsumer<SOTFData> {
     
    318318      try {
    319319        BestKnownSolutionParameter.Value = Evaluator.GetBestKnownSolution(ProblemSize.Value);
    320       }
    321       catch (ArgumentException e) {
     320      } catch (ArgumentException e) {
    322321        ErrorHandling.ShowErrorDialog(e);
    323322        ProblemSize.Value = Evaluator.MinimumProblemSize;
Note: See TracChangeset for help on using the changeset viewer.