Changeset 14711 for branches/PersistenceOverhaul/HeuristicLab.Parameters
- Timestamp:
- 03/03/17 11:41:43 (8 years ago)
- Location:
- branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/ConstrainedValueParameter.cs
r13368 r14711 32 32 /// </summary> 33 33 [Item("ConstrainedValueParameter", "A parameter whose value has to be chosen from a set of valid values.")] 34 [Storable Class("14C820C8-6C41-4C7C-8572-0A2643BE895C")]34 [StorableType("14C820C8-6C41-4C7C-8572-0A2643BE895C")] 35 35 public class ConstrainedValueParameter<T> : OptionalConstrainedValueParameter<T> where T : class, IItem { 36 36 public override T Value { -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/FixedValueParameter.cs
r13368 r14711 30 30 /// </summary> 31 31 [Item("FixedValueParameter", "A parameter whose value is defined in the parameter itself and cannot be set.")] 32 [Storable Class("92364C64-680F-423D-A5B7-7CABC8B8A73D")]32 [StorableType("92364C64-680F-423D-A5B7-7CABC8B8A73D")] 33 33 public class FixedValueParameter<T> : ValueParameter<T>, IFixedValueParameter<T> where T : class,IItem, new() { 34 34 -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/LookupParameter.cs
r13368 r14711 31 31 /// </summary> 32 32 [Item("LookupParameter", "A parameter whose value is retrieved from or written to a scope.")] 33 [Storable Class("F148DA65-3D7D-41BA-AF1A-5982102E953D")]33 [StorableType("F148DA65-3D7D-41BA-AF1A-5982102E953D")] 34 34 public class LookupParameter<T> : Parameter, IStatefulItem, ILookupParameter<T> where T : class, IItem { 35 35 [Storable] … … 174 174 if (!(var.Value is T)) 175 175 throw new InvalidOperationException( 176 string.Format(" Typemismatch. Variable \"{0}\" does not contain a \"{1}\".",176 string.Format("MemberSelection mismatch. Variable \"{0}\" does not contain a \"{1}\".", 177 177 name, 178 178 typeof(T).GetPrettyName()) … … 186 186 if (!(value is T)) 187 187 throw new InvalidOperationException( 188 string.Format(" Typemismatch. Value is not a \"{0}\".",188 string.Format("MemberSelection mismatch. Value is not a \"{0}\".", 189 189 typeof(T).GetPrettyName()) 190 190 ); -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/OperatorParameter.cs
r13368 r14711 29 29 /// </summary> 30 30 [Item("OperatorParameter", "A parameter which represents an operator.")] 31 [Storable Class("42C284BC-C0A9-4085-BB49-D404F11E7675")]31 [StorableType("42C284BC-C0A9-4085-BB49-D404F11E7675")] 32 32 public class OperatorParameter : OptionalValueParameter<IOperator> { 33 33 [StorableConstructor] -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs
r13368 r14711 32 32 /// </summary> 33 33 [Item("OptionalConstrainedValueParameter", "A parameter whose value has to be chosen from a set of valid values or is null.")] 34 [Storable Class("4C7B6C72-3684-4E0E-9BEC-9F8D20AC6152")]34 [StorableType("4C7B6C72-3684-4E0E-9BEC-9F8D20AC6152")] 35 35 public class OptionalConstrainedValueParameter<T> : Parameter, IConstrainedValueParameter<T> where T : class, IItem { 36 36 public override Image ItemImage { … … 67 67 if ((value != null) && (val == null)) 68 68 throw new InvalidOperationException( 69 string.Format(" Typemismatch. Value is not a \"{0}\".",69 string.Format("MemberSelection mismatch. Value is not a \"{0}\".", 70 70 typeof(T).GetPrettyName()) 71 71 ); -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/OptionalValueParameter.cs
r13368 r14711 31 31 /// </summary> 32 32 [Item("OptionalValueParameter", "A parameter whose value is defined in the parameter itself or is null.")] 33 [Storable Class("F6F3C1FF-02EC-4EEF-9513-9352D06ADB64")]33 [StorableType("F6F3C1FF-02EC-4EEF-9513-9352D06ADB64")] 34 34 public class OptionalValueParameter<T> : Parameter, IValueParameter<T> where T : class, IItem { 35 35 public override Image ItemImage { … … 59 59 if ((value != null) && (val == null)) 60 60 throw new InvalidOperationException( 61 string.Format(" Typemismatch. Value is not a \"{0}\".",61 string.Format("MemberSelection mismatch. Value is not a \"{0}\".", 62 62 typeof(T).GetPrettyName()) 63 63 ); -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/Parameter.cs
r13368 r14711 31 31 /// </summary> 32 32 [Item("Parameter", "A base class for parameters.")] 33 [Storable Class("743FB88F-6E73-4252-9474-AE62E4139027")]33 [StorableType("743FB88F-6E73-4252-9474-AE62E4139027")] 34 34 public abstract class Parameter : NamedItem, IParameter { 35 35 public override Image ItemImage { -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/ScopeParameter.cs
r13368 r14711 31 31 /// </summary> 32 32 [Item("ScopeParameter", "A parameter which represents the current scope.")] 33 [Storable Class("C37045C2-CC31-4AAE-9CE5-5F7A9CE6A2CD")]33 [StorableType("C37045C2-CC31-4AAE-9CE5-5F7A9CE6A2CD")] 34 34 public class ScopeParameter : LookupParameter<IScope> { 35 35 public new IScope ActualValue { -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/ScopeTreeLookupParameter.cs
r13368 r14711 32 32 /// </summary> 33 33 [Item("ScopeTreeLookupParameter", "A generic parameter representing instances of type T which are collected from or written to scope tree.")] 34 [Storable Class("0EC798A0-81EA-47B5-A279-99B06B0EE3BD")]34 [StorableType("0EC798A0-81EA-47B5-A279-99B06B0EE3BD")] 35 35 public class ScopeTreeLookupParameter<T> : LookupParameter<ItemArray<T>>, IScopeTreeLookupParameter<T> where T : class, IItem { 36 36 [Storable] … … 101 101 if ((var.Value != null) && (value == null)) 102 102 throw new InvalidOperationException( 103 string.Format(" Typemismatch. Variable \"{0}\" does not contain a \"{1}\".",103 string.Format("MemberSelection mismatch. Variable \"{0}\" does not contain a \"{1}\".", 104 104 name, 105 105 typeof(T).GetPrettyName()) … … 114 114 if (values == null) 115 115 throw new InvalidOperationException( 116 string.Format(" Typemismatch. Value is not a \"{0}\".",116 string.Format("MemberSelection mismatch. Value is not a \"{0}\".", 117 117 typeof(ItemArray<T>).GetPrettyName()) 118 118 ); -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/ValueLookupParameter.cs
r13368 r14711 31 31 /// </summary> 32 32 [Item("ValueLookupParameter", "A parameter whose value is either defined in the parameter itself or is retrieved from or written to a scope.")] 33 [Storable Class("2D5A166A-1BC1-4FE2-9180-888F766DA331")]33 [StorableType("2D5A166A-1BC1-4FE2-9180-888F766DA331")] 34 34 public class ValueLookupParameter<T> : LookupParameter<T>, IValueLookupParameter<T> where T : class, IItem { 35 35 public override Image ItemImage { … … 59 59 if ((value != null) && (val == null)) 60 60 throw new InvalidOperationException( 61 string.Format(" Typemismatch. Value is not a \"{0}\".",61 string.Format("MemberSelection mismatch. Value is not a \"{0}\".", 62 62 typeof(T).GetPrettyName()) 63 63 ); -
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/ValueParameter.cs
r13368 r14711 31 31 /// </summary> 32 32 [Item("ValueParameter", "A parameter whose value is defined in the parameter itself.")] 33 [Storable Class("90CE0311-5920-44D5-8C4A-3229A779AC6E")]33 [StorableType("90CE0311-5920-44D5-8C4A-3229A779AC6E")] 34 34 public class ValueParameter<T> : OptionalValueParameter<T> where T : class, IItem { 35 35 public override T Value {
Note: See TracChangeset
for help on using the changeset viewer.