Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/10 18:28:50 (15 years ago)
Author:
epitzer
Message:

Make StorableClass attribute compulsory for StorableSerializer to work, add named property StorableClassType to choose between Empty and MarkedOnly, later other options will be added. (#548)

Location:
trunk/sources/HeuristicLab.Parameters/3.3
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Parameters/3.3/ConstrainedValueParameter.cs

    r2924 r2994  
    3131  /// </summary>
    3232  [Item("ConstrainedValueParameter<T>", "A parameter whose value has to be chosen from a set of valid values.")]
    33   [EmptyStorableClass]
     33  [StorableClass(StorableClassType.Empty)]
    3434  public class ConstrainedValueParameter<T> : OptionalConstrainedValueParameter<T> where T : class, IItem {
    3535    public override T Value {
  • trunk/sources/HeuristicLab.Parameters/3.3/LookupParameter.cs

    r2987 r2994  
    3030  /// </summary>
    3131  [Item("LookupParameter<T>", "A parameter whose value is retrieved from or written to a scope.")]
     32  [StorableClass(StorableClassType.MarkedOnly)]
    3233  public class LookupParameter<T> : Parameter, ILookupParameter<T> where T : class, IItem {
    3334    [Storable]
  • trunk/sources/HeuristicLab.Parameters/3.3/OperatorParameter.cs

    r2890 r2994  
    2828  /// </summary>
    2929  [Item("OperatorParameter", "A parameter which represents an operator.")]
    30   [EmptyStorableClass]
     30  [StorableClass(StorableClassType.Empty)]
    3131  [Creatable("Test")]
    3232  public class OperatorParameter : OptionalValueParameter<IOperator> {
  • trunk/sources/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs

    r2932 r2994  
    3131  /// </summary>
    3232  [Item("OptionalConstrainedValueParameter<T>", "A parameter whose value has to be chosen from a set of valid values or is null.")]
     33  [StorableClass(StorableClassType.MarkedOnly)]
    3334  public class OptionalConstrainedValueParameter<T> : Parameter, IValueParameter<T> where T : class, IItem {
    3435    private ItemSet<T> validValues;
  • trunk/sources/HeuristicLab.Parameters/3.3/OptionalValueParameter.cs

    r2947 r2994  
    3030  /// </summary>
    3131  [Item("OptionalValueParameter<T>", "A parameter whose value is defined in the parameter itself or is null.")]
     32  [StorableClass(StorableClassType.MarkedOnly)]
    3233  public class OptionalValueParameter<T> : Parameter, IValueParameter<T> where T : class, IItem {
    3334    private T value;
  • trunk/sources/HeuristicLab.Parameters/3.3/ScopeParameter.cs

    r2818 r2994  
    3030  /// </summary>
    3131  [Item("ScopeParameter", "A parameter which represents the current scope.")]
    32   [EmptyStorableClass]
     32  [StorableClass(StorableClassType.Empty)]
    3333  [Creatable("Test")]
    3434  public class ScopeParameter : Parameter {
  • trunk/sources/HeuristicLab.Parameters/3.3/ValueLookupParameter.cs

    r2947 r2994  
    3030  /// </summary>
    3131  [Item("ValueLookupParameter<T>", "A parameter whose value is either defined in the parameter itself or is retrieved from or written to a scope.")]
     32  [StorableClass(StorableClassType.MarkedOnly)]
    3233  public class ValueLookupParameter<T> : LookupParameter<T>, IValueLookupParameter<T> where T : class, IItem {
    3334    private T value;
  • trunk/sources/HeuristicLab.Parameters/3.3/ValueParameter.cs

    r2948 r2994  
    3030  /// </summary>
    3131  [Item("ValueParameter<T>", "A parameter whose value is defined in the parameter itself.")]
    32   [EmptyStorableClass]
     32  [StorableClass(StorableClassType.Empty)]
    3333  public class ValueParameter<T> : OptionalValueParameter<T> where T : class, IItem {
    3434    public override T Value {
Note: See TracChangeset for help on using the changeset viewer.