Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/17 11:41:43 (7 years ago)
Author:
gkronber
Message:

#2520

  • renamed StorableClass -> StorableType
  • changed persistence to use GUIDs instead of type names
Location:
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3
Files:
11 edited

Legend:

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

    r13368 r14711  
    3232  /// </summary>
    3333  [Item("ConstrainedValueParameter", "A parameter whose value has to be chosen from a set of valid values.")]
    34   [StorableClass("14C820C8-6C41-4C7C-8572-0A2643BE895C")]
     34  [StorableType("14C820C8-6C41-4C7C-8572-0A2643BE895C")]
    3535  public class ConstrainedValueParameter<T> : OptionalConstrainedValueParameter<T> where T : class, IItem {
    3636    public override T Value {
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/FixedValueParameter.cs

    r13368 r14711  
    3030  /// </summary>
    3131  [Item("FixedValueParameter", "A parameter whose value is defined in the parameter itself and cannot be set.")]
    32   [StorableClass("92364C64-680F-423D-A5B7-7CABC8B8A73D")]
     32  [StorableType("92364C64-680F-423D-A5B7-7CABC8B8A73D")]
    3333  public class FixedValueParameter<T> : ValueParameter<T>, IFixedValueParameter<T> where T : class,IItem, new() {
    3434
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/LookupParameter.cs

    r13368 r14711  
    3131  /// </summary>
    3232  [Item("LookupParameter", "A parameter whose value is retrieved from or written to a scope.")]
    33   [StorableClass("F148DA65-3D7D-41BA-AF1A-5982102E953D")]
     33  [StorableType("F148DA65-3D7D-41BA-AF1A-5982102E953D")]
    3434  public class LookupParameter<T> : Parameter, IStatefulItem, ILookupParameter<T> where T : class, IItem {
    3535    [Storable]
     
    174174        if (!(var.Value is T))
    175175          throw new InvalidOperationException(
    176             string.Format("Type mismatch. Variable \"{0}\" does not contain a \"{1}\".",
     176            string.Format("MemberSelection mismatch. Variable \"{0}\" does not contain a \"{1}\".",
    177177                          name,
    178178                          typeof(T).GetPrettyName())
     
    186186      if (!(value is T))
    187187        throw new InvalidOperationException(
    188           string.Format("Type mismatch. Value is not a \"{0}\".",
     188          string.Format("MemberSelection mismatch. Value is not a \"{0}\".",
    189189                        typeof(T).GetPrettyName())
    190190        );
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/OperatorParameter.cs

    r13368 r14711  
    2929  /// </summary>
    3030  [Item("OperatorParameter", "A parameter which represents an operator.")]
    31   [StorableClass("42C284BC-C0A9-4085-BB49-D404F11E7675")]
     31  [StorableType("42C284BC-C0A9-4085-BB49-D404F11E7675")]
    3232  public class OperatorParameter : OptionalValueParameter<IOperator> {
    3333    [StorableConstructor]
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs

    r13368 r14711  
    3232  /// </summary>
    3333  [Item("OptionalConstrainedValueParameter", "A parameter whose value has to be chosen from a set of valid values or is null.")]
    34   [StorableClass("4C7B6C72-3684-4E0E-9BEC-9F8D20AC6152")]
     34  [StorableType("4C7B6C72-3684-4E0E-9BEC-9F8D20AC6152")]
    3535  public class OptionalConstrainedValueParameter<T> : Parameter, IConstrainedValueParameter<T> where T : class, IItem {
    3636    public override Image ItemImage {
     
    6767        if ((value != null) && (val == null))
    6868          throw new InvalidOperationException(
    69             string.Format("Type mismatch. Value is not a \"{0}\".",
     69            string.Format("MemberSelection mismatch. Value is not a \"{0}\".",
    7070                          typeof(T).GetPrettyName())
    7171          );
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/OptionalValueParameter.cs

    r13368 r14711  
    3131  /// </summary>
    3232  [Item("OptionalValueParameter", "A parameter whose value is defined in the parameter itself or is null.")]
    33   [StorableClass("F6F3C1FF-02EC-4EEF-9513-9352D06ADB64")]
     33  [StorableType("F6F3C1FF-02EC-4EEF-9513-9352D06ADB64")]
    3434  public class OptionalValueParameter<T> : Parameter, IValueParameter<T> where T : class, IItem {
    3535    public override Image ItemImage {
     
    5959        if ((value != null) && (val == null))
    6060          throw new InvalidOperationException(
    61             string.Format("Type mismatch. Value is not a \"{0}\".",
     61            string.Format("MemberSelection mismatch. Value is not a \"{0}\".",
    6262                          typeof(T).GetPrettyName())
    6363          );
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/Parameter.cs

    r13368 r14711  
    3131  /// </summary>
    3232  [Item("Parameter", "A base class for parameters.")]
    33   [StorableClass("743FB88F-6E73-4252-9474-AE62E4139027")]
     33  [StorableType("743FB88F-6E73-4252-9474-AE62E4139027")]
    3434  public abstract class Parameter : NamedItem, IParameter {
    3535    public override Image ItemImage {
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/ScopeParameter.cs

    r13368 r14711  
    3131  /// </summary>
    3232  [Item("ScopeParameter", "A parameter which represents the current scope.")]
    33   [StorableClass("C37045C2-CC31-4AAE-9CE5-5F7A9CE6A2CD")]
     33  [StorableType("C37045C2-CC31-4AAE-9CE5-5F7A9CE6A2CD")]
    3434  public class ScopeParameter : LookupParameter<IScope> {
    3535    public new IScope ActualValue {
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/ScopeTreeLookupParameter.cs

    r13368 r14711  
    3232  /// </summary>
    3333  [Item("ScopeTreeLookupParameter", "A generic parameter representing instances of type T which are collected from or written to scope tree.")]
    34   [StorableClass("0EC798A0-81EA-47B5-A279-99B06B0EE3BD")]
     34  [StorableType("0EC798A0-81EA-47B5-A279-99B06B0EE3BD")]
    3535  public class ScopeTreeLookupParameter<T> : LookupParameter<ItemArray<T>>, IScopeTreeLookupParameter<T> where T : class, IItem {
    3636    [Storable]
     
    101101          if ((var.Value != null) && (value == null))
    102102            throw new InvalidOperationException(
    103               string.Format("Type mismatch. Variable \"{0}\" does not contain a \"{1}\".",
     103              string.Format("MemberSelection mismatch. Variable \"{0}\" does not contain a \"{1}\".",
    104104                            name,
    105105                            typeof(T).GetPrettyName())
     
    114114      if (values == null)
    115115        throw new InvalidOperationException(
    116           string.Format("Type mismatch. Value is not a \"{0}\".",
     116          string.Format("MemberSelection mismatch. Value is not a \"{0}\".",
    117117                        typeof(ItemArray<T>).GetPrettyName())
    118118        );
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/ValueLookupParameter.cs

    r13368 r14711  
    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("2D5A166A-1BC1-4FE2-9180-888F766DA331")]
     33  [StorableType("2D5A166A-1BC1-4FE2-9180-888F766DA331")]
    3434  public class ValueLookupParameter<T> : LookupParameter<T>, IValueLookupParameter<T> where T : class, IItem {
    3535    public override Image ItemImage {
     
    5959        if ((value != null) && (val == null))
    6060          throw new InvalidOperationException(
    61             string.Format("Type mismatch. Value is not a \"{0}\".",
     61            string.Format("MemberSelection mismatch. Value is not a \"{0}\".",
    6262                          typeof(T).GetPrettyName())
    6363          );
  • branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/ValueParameter.cs

    r13368 r14711  
    3131  /// </summary>
    3232  [Item("ValueParameter", "A parameter whose value is defined in the parameter itself.")]
    33   [StorableClass("90CE0311-5920-44D5-8C4A-3229A779AC6E")]
     33  [StorableType("90CE0311-5920-44D5-8C4A-3229A779AC6E")]
    3434  public class ValueParameter<T> : OptionalValueParameter<T> where T : class, IItem {
    3535    public override T Value {
Note: See TracChangeset for help on using the changeset viewer.