Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 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)

Location:
branches/PersistenceReintegration/HeuristicLab.Parameters/3.3
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/ConstrainedValueParameter.cs

    r14185 r14927  
    2525using HeuristicLab.Common;
    2626using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Persistence;
    2828
    2929namespace HeuristicLab.Parameters {
     
    3232  /// </summary>
    3333  [Item("ConstrainedValueParameter", "A parameter whose value has to be chosen from a set of valid values.")]
    34   [StorableClass]
     34  [StorableType("651e6528-3e0b-4ba1-8416-d2a259c71d59")]
    3535  public class ConstrainedValueParameter<T> : OptionalConstrainedValueParameter<T> where T : class, IItem {
    3636    public override T Value {
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/FixedValueParameter.cs

    r14185 r14927  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HeuristicLab.Persistence;
    2626
    2727namespace HeuristicLab.Parameters {
     
    3030  /// </summary>
    3131  [Item("FixedValueParameter", "A parameter whose value is defined in the parameter itself and cannot be set.")]
    32   [StorableClass]
    33   public class FixedValueParameter<T> : ValueParameter<T>, IFixedValueParameter<T> where T : class,IItem, new() {
     32  [StorableType("8869cafc-b76e-45ae-83da-bd6cee24b02b")]
     33  public class FixedValueParameter<T> : ValueParameter<T>, IFixedValueParameter<T> where T : class, IItem, new() {
    3434
    3535    public override T Value {
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/LookupParameter.cs

    r14185 r14927  
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HeuristicLab.Persistence;
    2727
    2828namespace HeuristicLab.Parameters {
     
    3131  /// </summary>
    3232  [Item("LookupParameter", "A parameter whose value is retrieved from or written to a scope.")]
    33   [StorableClass]
     33  [StorableType("2a084c77-3f0c-4b98-81aa-939ade055820")]
    3434  public class LookupParameter<T> : Parameter, IStatefulItem, ILookupParameter<T> where T : class, IItem {
    3535    [Storable]
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/OperatorParameter.cs

    r14185 r14927  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
    24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     24using HeuristicLab.Persistence;
    2525
    2626namespace HeuristicLab.Parameters {
     
    2929  /// </summary>
    3030  [Item("OperatorParameter", "A parameter which represents an operator.")]
    31   [StorableClass]
     31  [StorableType("81eeefb7-8090-41c6-8298-63a9ff13d27d")]
    3232  public class OperatorParameter : OptionalValueParameter<IOperator> {
    3333    [StorableConstructor]
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs

    r14185 r14927  
    2525using HeuristicLab.Common;
    2626using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Persistence;
    2828
    2929namespace HeuristicLab.Parameters {
     
    3232  /// </summary>
    3333  [Item("OptionalConstrainedValueParameter", "A parameter whose value has to be chosen from a set of valid values or is null.")]
    34   [StorableClass]
     34  [StorableType("4a5d642b-38e2-462c-8592-335ae4095ce3")]
    3535  public class OptionalConstrainedValueParameter<T> : Parameter, IConstrainedValueParameter<T> where T : class, IItem {
    3636    public override Image ItemImage {
     
    4040      }
    4141    }
    42      
     42
    4343    [Storable]
    4444    private ItemSet<T> validValues;
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/OptionalValueParameter.cs

    r14185 r14927  
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HeuristicLab.Persistence;
    2727
    2828namespace HeuristicLab.Parameters {
     
    3131  /// </summary>
    3232  [Item("OptionalValueParameter", "A parameter whose value is defined in the parameter itself or is null.")]
    33   [StorableClass]
     33  [StorableType("c4944ae4-10c8-428f-9097-452dd3fd64e3")]
    3434  public class OptionalValueParameter<T> : Parameter, IValueParameter<T> where T : class, IItem {
    3535    public override Image ItemImage {
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/Parameter.cs

    r14185 r14927  
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HeuristicLab.Persistence;
    2727
    2828namespace HeuristicLab.Parameters {
     
    3131  /// </summary>
    3232  [Item("Parameter", "A base class for parameters.")]
    33   [StorableClass]
     33  [StorableType("72e64a56-d7e6-4a42-8227-e95a225cfa6f")]
    3434  public abstract class Parameter : NamedItem, IParameter {
    3535    public override Image ItemImage {
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/ScopeParameter.cs

    r14185 r14927  
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HeuristicLab.Persistence;
    2727
    2828namespace HeuristicLab.Parameters {
     
    3131  /// </summary>
    3232  [Item("ScopeParameter", "A parameter which represents the current scope.")]
    33   [StorableClass]
     33  [StorableType("e4fabbd1-c06d-4e44-ab3c-785bd1e4c6b1")]
    3434  public class ScopeParameter : LookupParameter<IScope> {
    3535    public new IScope ActualValue {
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/ScopeTreeLookupParameter.cs

    r14185 r14927  
    2525using HeuristicLab.Common;
    2626using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Persistence;
    2828
    2929namespace HeuristicLab.Parameters {
     
    3232  /// </summary>
    3333  [Item("ScopeTreeLookupParameter", "A generic parameter representing instances of type T which are collected from or written to scope tree.")]
    34   [StorableClass]
     34  [StorableType("d5f7a225-baa6-4537-920e-e0d39f26f665")]
    3535  public class ScopeTreeLookupParameter<T> : LookupParameter<ItemArray<T>>, IScopeTreeLookupParameter<T> where T : class, IItem {
    3636    [Storable]
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/ValueLookupParameter.cs

    r14185 r14927  
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HeuristicLab.Persistence;
    2727
    2828namespace HeuristicLab.Parameters {
     
    3131  /// </summary>
    3232  [Item("ValueLookupParameter", "A parameter whose value is either defined in the parameter itself or is retrieved from or written to a scope.")]
    33   [StorableClass]
     33  [StorableType("56f24741-39ad-4ad1-b966-55771b328524")]
    3434  public class ValueLookupParameter<T> : LookupParameter<T>, IValueLookupParameter<T> where T : class, IItem {
    3535    public override Image ItemImage {
  • branches/PersistenceReintegration/HeuristicLab.Parameters/3.3/ValueParameter.cs

    r14185 r14927  
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HeuristicLab.Persistence;
    2727
    2828namespace HeuristicLab.Parameters {
     
    3131  /// </summary>
    3232  [Item("ValueParameter", "A parameter whose value is defined in the parameter itself.")]
    33   [StorableClass]
     33  [StorableType("fb820003-641b-4501-8cbd-dc54a7e29891")]
    3434  public class ValueParameter<T> : OptionalValueParameter<T> where T : class, IItem {
    3535    public override T Value {
     
    5454    public ValueParameter(string name, string description, T value) : base(name, description, value) { }
    5555    public ValueParameter(string name, string description, T value, bool getsCollected) : base(name, description, value, getsCollected) { }
    56                                                                                  
     56
    5757    protected T CreateDefaultValue() {
    5858      Type type = typeof(T);
Note: See TracChangeset for help on using the changeset viewer.