Ignore:
Timestamp:
12/28/18 16:10:48 (19 months 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.Problems.GeneticProgramming/3.3/ArtificialAnt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.GeneticProgramming/3.3/ArtificialAnt/Problem.cs

    r16453 r16462  
    2929using HeuristicLab.Optimization;
    3030using HeuristicLab.Parameters;
    31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     31using HEAL.Fossil;
    3232
    3333
     
    3535  [Item("Artificial Ant Problem", "Represents the Artificial Ant problem.")]
    3636  [Creatable(CreatableAttribute.Categories.GeneticProgrammingProblems, Priority = 170)]
    37   [StorableClass]
     37  [StorableType("D365171B-7077-4CC2-835C-1827EA67C843")]
    3838  public sealed class Problem : SymbolicExpressionTreeProblem, IStorableContent {
    3939
     
    105105    // persistence
    106106    [StorableConstructor]
    107     private Problem(bool deserializing) : base(deserializing) { }
     107    private Problem(StorableConstructorFlag _) : base(_) { }
    108108    [StorableHook(HookType.AfterDeserialization)]
    109109    private void AfterDeserialization() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.GeneticProgramming/3.3/ArtificialAnt/Trail.cs

    r16453 r16462  
    2525using HeuristicLab.Data;
    2626using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828
    2929namespace HeuristicLab.Problems.GeneticProgramming.ArtificialAnt {
     
    3232  /// </summary>
    3333  [Item("AntTrail", "Represents a trail of an artificial ant which can be visualized in the GUI.")]
    34   [StorableClass]
     34  [StorableType("6C666B13-1A69-4924-9ED7-4AC06151FDC6")]
    3535  public sealed class Solution : Item {
    3636    public static new Image StaticItemImage {
     
    5555    #region item cloning and persistence
    5656    [StorableConstructor]
    57     private Solution(bool deserializing) : base(deserializing) { }
     57    private Solution(StorableConstructorFlag _) : base(_) { }
    5858    [StorableHook(HookType.AfterDeserialization)]
    5959    private void AfterDeserialization() { }
Note: See TracChangeset for help on using the changeset viewer.