Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (5 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.Algorithms.Benchmarks/3.3
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.Benchmarks/3.3/Benchmark.cs

    r16453 r16462  
    2626using HeuristicLab.Core;
    2727using HeuristicLab.Optimization;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Algorithms.Benchmarks {
    3131  [Item("Benchmark", "Base class for benchmarks.")]
    32   [StorableClass]
     32  [StorableType("0715912F-4F40-40F6-AC08-677CC4F76819")]
    3333  public abstract class Benchmark : IBenchmark {
    3434    public virtual string ItemName {
     
    6363
    6464    [StorableConstructor]
    65     protected Benchmark(bool deserializing) { }
     65    protected Benchmark(StorableConstructorFlag _) { }
    6666    protected Benchmark(Benchmark original, Cloner cloner) {
    6767      cloner.RegisterClonedObject(original, this);
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.Benchmarks/3.3/BenchmarkAlgorithm.cs

    r16453 r16462  
    3232using HeuristicLab.Optimization;
    3333using HeuristicLab.Parameters;
    34 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     34using HEAL.Fossil;
    3535using HeuristicLab.PluginInfrastructure;
    3636
     
    3838  [Item("Benchmark Algorithm", "An algorithm to execute performance benchmarks (Linpack, Dhrystone, Whetstone, etc.).")]
    3939  [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 130)]
    40   [StorableClass]
     40  [StorableType("8E76490C-E5DA-4F09-8E94-10009FC4124D")]
    4141  public sealed class BenchmarkAlgorithm : IAlgorithm, IStorableContent {
    4242    private CancellationTokenSource cancellationTokenSource;
     
    217217    #region Constructors
    218218    [StorableConstructor]
    219     private BenchmarkAlgorithm(bool deserializing) { }
     219    private BenchmarkAlgorithm(StorableConstructorFlag _) { }
    220220    private BenchmarkAlgorithm(BenchmarkAlgorithm original, Cloner cloner) {
    221221      if (original.ExecutionState == ExecutionState.Started) throw new InvalidOperationException(string.Format("Clone not allowed in execution state \"{0}\".", ExecutionState));
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.Benchmarks/3.3/Dhrystone.cs

    r16453 r16462  
    2727using HeuristicLab.Data;
    2828using HeuristicLab.Optimization;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030
    3131namespace HeuristicLab.Algorithms.Benchmarks {
    3232  [Item("Dhrystone", "Dhrystone performance benchmark.")]
    33   [StorableClass]
     33  [StorableType("277F595A-4309-4FA6-9C9D-CD0A140D7BAB")]
    3434  public sealed class Dhrystone : Benchmark {
    3535    private const int Ident_1 = 0;
     
    5757
    5858    [StorableConstructor]
    59     private Dhrystone(bool deserializing) : base(deserializing) { }
     59    private Dhrystone(StorableConstructorFlag _) : base(_) { }
    6060    private Dhrystone(Dhrystone original, Cloner cloner) : base(original, cloner) { }
    6161    public Dhrystone() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.Benchmarks/3.3/HeuristicLab.Algorithms.Benchmarks-3.3.csproj

    r16454 r16462  
    9292      <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath>
    9393    </Reference>
    94     <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
     94    <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    9595      <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath>
    9696    </Reference>
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.Benchmarks/3.3/IBenchmark.cs

    r16453 r16462  
    2424using HeuristicLab.Core;
    2525using HeuristicLab.Optimization;
     26using HEAL.Fossil;
    2627
    2728namespace HeuristicLab.Algorithms.Benchmarks {
     29  [StorableType("FFCF9EC9-35CE-43C2-85CF-F90CEA6058BC")]
    2830  public interface IBenchmark : IItem {
    2931    byte[][] ChunkData { get; set; }
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.Benchmarks/3.3/Linpack.cs

    r16453 r16462  
    2727using HeuristicLab.Data;
    2828using HeuristicLab.Optimization;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030
    3131namespace HeuristicLab.Algorithms.Benchmarks {
    3232  [Item("Linpack", "Linpack performance benchmark.")]
    33   [StorableClass]
     33  [StorableType("A480970C-E954-45F6-AFDE-BD99054E1BF7")]
    3434  public sealed class Linpack : Benchmark {
    3535    private const int DEFAULT_PSIZE = 1500;
     
    4545
    4646    [StorableConstructor]
    47     private Linpack(bool deserializing) : base(deserializing) { }
     47    private Linpack(StorableConstructorFlag _) : base(_) { }
    4848    private Linpack(Linpack original, Cloner cloner) : base(original, cloner) { }
    4949    public Linpack() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.Benchmarks/3.3/Whetstone.cs

    r16453 r16462  
    2727using HeuristicLab.Data;
    2828using HeuristicLab.Optimization;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030
    3131namespace HeuristicLab.Algorithms.Benchmarks {
    3232  [Item("Whetstone", "Whetstone performance benchmark.")]
    33   [StorableClass]
     33  [StorableType("95D2274E-EFC7-444C-B5CF-F087B0A3C027")]
    3434  public sealed class Whetstone : Benchmark {
    3535    private long begin_time;
     
    4545
    4646    [StorableConstructor]
    47     private Whetstone(bool deserializing) : base(deserializing) { }
     47    private Whetstone(StorableConstructorFlag _) : base(_) { }
    4848    private Whetstone(Whetstone original, Cloner cloner) : base(original, cloner) { }
    4949    public Whetstone() { }
Note: See TracChangeset for help on using the changeset viewer.