Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/29/19 15:22:17 (5 years ago)
Author:
mkommend
Message:

#3005: Removed parameter ctors with getsCollected flag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs

    r16872 r16875  
    123123      Initialize();
    124124    }
    125     public OptionalConstrainedValueParameter(string name, bool getsCollected)
    126       : base(name, typeof(T)) {
    127       this.validValues = new ItemSet<T>();
    128       this.readOnly = false;
    129       this.getsCollected = getsCollected;
    130       Initialize();
    131     }
    132125    public OptionalConstrainedValueParameter(string name, ItemSet<T> validValues)
    133126      : base(name, typeof(T)) {
     
    137130      Initialize();
    138131    }
    139     public OptionalConstrainedValueParameter(string name, ItemSet<T> validValues, bool getsCollected)
    140       : base(name, typeof(T)) {
    141       this.validValues = validValues;
    142       this.readOnly = false;
    143       this.getsCollected = getsCollected;
    144       Initialize();
    145     }
    146132    public OptionalConstrainedValueParameter(string name, ItemSet<T> validValues, T value)
    147133      : base(name, typeof(T)) {
     
    150136      this.readOnly = false;
    151137      this.getsCollected = true;
    152       Initialize();
    153     }
    154     public OptionalConstrainedValueParameter(string name, ItemSet<T> validValues, T value, bool getsCollected)
    155       : base(name, typeof(T)) {
    156       this.validValues = validValues;
    157       this.value = value;
    158       this.readOnly = false;
    159       this.getsCollected = getsCollected;
    160138      Initialize();
    161139    }
     
    167145      Initialize();
    168146    }
    169     public OptionalConstrainedValueParameter(string name, string description, bool getsCollected)
    170       : base(name, description, typeof(T)) {
    171       this.validValues = new ItemSet<T>();
    172       this.readOnly = false;
    173       this.getsCollected = getsCollected;
    174       Initialize();
    175     }
    176147    public OptionalConstrainedValueParameter(string name, string description, ItemSet<T> validValues)
    177148      : base(name, description, typeof(T)) {
     
    181152      Initialize();
    182153    }
    183     public OptionalConstrainedValueParameter(string name, string description, ItemSet<T> validValues, bool getsCollected)
    184       : base(name, description, typeof(T)) {
    185       this.validValues = validValues;
    186       this.readOnly = false;
    187       this.getsCollected = getsCollected;
    188       Initialize();
    189     }
    190154    public OptionalConstrainedValueParameter(string name, string description, ItemSet<T> validValues, T value)
    191155      : base(name, description, typeof(T)) {
     
    194158      this.readOnly = false;
    195159      this.getsCollected = true;
    196       Initialize();
    197     }
    198     public OptionalConstrainedValueParameter(string name, string description, ItemSet<T> validValues, T value, bool getsCollected)
    199       : base(name, description, typeof(T)) {
    200       this.validValues = validValues;
    201       this.value = value;
    202       this.readOnly = false;
    203       this.getsCollected = getsCollected;
    204160      Initialize();
    205161    }
Note: See TracChangeset for help on using the changeset viewer.