Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (6 years ago)
Author:
jkarder
Message:

#2520: worked on reintegration of new persistence

  • added nuget references to HEAL.Fossil
  • added StorableType attributes to many classes
  • changed signature of StorableConstructors
  • removed some classes in old persistence
  • removed some unnecessary usings
Location:
branches/2520_PersistenceReintegration/HeuristicLab.Optimization/3.3/Results
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Optimization/3.3/Results/Result.cs

    r16453 r16462  
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HEAL.Fossil;
    2727
    2828namespace HeuristicLab.Optimization {
     
    3131  /// </summary>
    3232  [Item("Result", "A result which has a name and a data type and holds an IItem.")]
    33   [StorableClass]
     33  [StorableType("219051C0-9D62-4CDE-9BA1-32233C81B678")]
    3434  public sealed class Result : NamedItem, IResult, IStorableContent {
    3535    public string Filename { get; set; }
     
    7676
    7777    [StorableConstructor]
    78     private Result(bool deserializing) : base(deserializing) { }
     78    private Result(StorableConstructorFlag _) : base(_) { }
    7979    private Result(Result original, Cloner cloner)
    8080      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Optimization/3.3/Results/ResultCollection.cs

    r16453 r16462  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Optimization {
    28   [StorableClass]
     28  [StorableType("959230E3-C51B-4EC0-BDB2-0B0D71F5A6E3")]
    2929  [Item("ResultCollection", "Represents a collection of results.")]
    3030  public class ResultCollection : NamedItemCollection<IResult> {
     
    3333    public ResultCollection(IEnumerable<IResult> collection) : base(collection) { }
    3434    [StorableConstructor]
    35     protected ResultCollection(bool deserializing) : base(deserializing) { }
     35    protected ResultCollection(StorableConstructorFlag _) : base(_) { }
    3636    protected ResultCollection(ResultCollection original, Cloner cloner)
    3737      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Optimization/3.3/Results/ResultParameter.cs

    r16453 r16462  
    2626using HeuristicLab.Core;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Optimization {
    3131  [Item("ResultParameter", "A parameter whose value is written to a result collection.")]
    32   [StorableClass]
     32  [StorableType("CF10EF50-82B6-4A98-82C0-3C5ECED48904")]
    3333  public sealed class ResultParameter<T> : LookupParameter<T>, IResultParameter<T> where T : class, IItem {
    3434    public override Image ItemImage { get { return VSImageLibrary.Exception; } }
     
    6161
    6262    [StorableConstructor]
    63     private ResultParameter(bool deserializing) : base(deserializing) { }
     63    private ResultParameter(StorableConstructorFlag _) : base(_) { }
    6464    private ResultParameter(ResultParameter<T> original, Cloner cloner)
    6565      : base(original, cloner) {
Note: See TracChangeset for help on using the changeset viewer.