- Timestamp:
- 05/04/17 17:19:35 (8 years ago)
- Location:
- branches/PersistenceReintegration/HeuristicLab.Operators/3.3
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/AlgorithmOperator.cs
r14185 r14927 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Operators { … … 30 30 /// </summary> 31 31 [Item("AlgorithmOperator", "An operator which represents an algorithm represented as an operator graph.")] 32 [Storable Class]32 [StorableType("07e75599-2179-4973-a599-9e5525c75ebb")] 33 33 public abstract class AlgorithmOperator : SingleSuccessorOperator, IOperatorGraphOperator { 34 34 public static new Image StaticItemImage { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/Assigner.cs
r14185 r14927 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Operators { … … 30 30 /// </summary> 31 31 [Item("Assigner", "An operator which clones and assigns the value of one parameter to another parameter.")] 32 [Storable Class]32 [StorableType("ea35e78e-2263-4ed1-8103-efde23bcd973")] 33 33 public sealed class Assigner : SingleSuccessorOperator { 34 34 public LookupParameter<IItem> LeftSideParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/CheckedMultiOperator.cs
r14185 r14927 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Operators { … … 32 32 /// </summary> 33 33 [Item("CheckedMultiOperator", "A base class for operators which apply arbitrary many other operators of a specific type that can be checked or unchecked.")] 34 [Storable Class]34 [StorableType("78b17e17-c176-4a6a-9143-96f3498302e7")] 35 35 public abstract class CheckedMultiOperator<T> : MultiOperator<T>, ICheckedMultiOperator<T> where T : class, IOperator { 36 36 /// <summary> -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/CombinedOperator.cs
r14185 r14927 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;24 using HeuristicLab.Persistence; 25 25 26 26 namespace HeuristicLab.Operators { … … 29 29 /// </summary> 30 30 [Item("CombinedOperator", "An operator which contains an operator graph.")] 31 [Storable Class]31 [StorableType("997fbb42-4c59-455c-86fd-b498bca04fd3")] 32 32 public sealed class CombinedOperator : AlgorithmOperator, IParameterizedItem, IStorableContent { 33 33 public string Filename { get; set; } -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/Comparator.cs
r14185 r14927 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Operators { … … 32 32 /// </summary> 33 33 [Item("Comparator", "An operator which compares two items.")] 34 [Storable Class]34 [StorableType("caae008a-ce1f-4528-8493-70d9b22c13c7")] 35 35 public sealed class Comparator : SingleSuccessorOperator { 36 36 public LookupParameter<IItem> LeftSideParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/ConditionalBranch.cs
r14185 r14927 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Operators { … … 31 31 /// </summary> 32 32 [Item("ConditionalBranch", "A branch of two operators whose executions depend on a boolean condition. If the boolean condition is not present, the false branch is executed.")] 33 [Storable Class]33 [StorableType("c5596a64-16a5-40c8-a083-7b5202df082b")] 34 34 public class ConditionalBranch : SingleSuccessorOperator { 35 35 public LookupParameter<BoolValue> ConditionParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/DataReducer.cs
r14185 r14927 27 27 using HeuristicLab.Data; 28 28 using HeuristicLab.Parameters; 29 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;29 using HeuristicLab.Persistence; 30 30 31 31 namespace HeuristicLab.Operators { 32 32 [Item("DataReducer", "An operator to reduce values of sub scopes.")] 33 [Storable Class]33 [StorableType("da54e38d-731d-483f-b184-fda5d9f3383d")] 34 34 public sealed class DataReducer : SingleSuccessorOperator { 35 35 #region Parameter Properties -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/DoubleCounter.cs
r14185 r14927 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Operators { … … 31 31 /// </summary> 32 32 [Item("DoubleCounter", "An operator which increments a double variable.")] 33 [Storable Class]33 [StorableType("dbe9529c-0640-4436-86b7-8dca3b70ffad")] 34 34 public sealed class DoubleCounter : SingleSuccessorOperator { 35 35 public LookupParameter<DoubleValue> ValueParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/EmptyOperator.cs
r14185 r14927 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;24 using HeuristicLab.Persistence; 25 25 26 26 namespace HeuristicLab.Operators { … … 29 29 /// </summary> 30 30 [Item("EmptyOperator", "An operator which represents an empty statement.")] 31 [Storable Class]31 [StorableType("cc420082-9104-4207-ae96-aeea04ba13ff")] 32 32 public sealed class EmptyOperator : SingleSuccessorOperator { 33 33 [StorableConstructor] -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/InstrumentedOperator.cs
r14185 r14927 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Parameters; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Operators { 30 30 [Item("InstrumentedOperator", "A operator that can execute pre- and post actions.")] 31 [Storable Class]31 [StorableType("0a847032-912d-48bc-9e8c-01bdae161027")] 32 32 public abstract class InstrumentedOperator : SingleSuccessorOperator, IInstrumentedOperator { 33 33 private const string BeforeExecutionOperatorsParameterName = "BeforeExecutionOperators"; -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/IntCounter.cs
r14185 r14927 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Operators { … … 31 31 /// </summary> 32 32 [Item("IntCounter", "An operator which increments an integer variable.")] 33 [Storable Class]33 [StorableType("000de522-3c36-47d5-b508-a557283c314f")] 34 34 public sealed class IntCounter : SingleSuccessorOperator { 35 35 -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/LocalRandomCreator.cs
r14185 r14927 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Operators { 28 28 [Item("LocalRandomCreator", "Creates a local pseudo random number generator from a global random number generator.")] 29 [Storable Class]29 [StorableType("979a9907-d20a-4b81-84aa-d0c9c617d5ad")] 30 30 public sealed class LocalRandomCreator : SingleSuccessorOperator { 31 31 #region Parameter Properties -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/MultiOperator.cs
r14185 r14927 26 26 using HeuristicLab.Core; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Operators { … … 33 33 /// </summary> 34 34 [Item("MultiOperator", "A base class for operators which apply arbitrary many other operators of a specific type.")] 35 [Storable Class]35 [StorableType("74649f75-ebe5-4d50-b2f9-c5339988b78d")] 36 36 public abstract class MultiOperator<T> : InstrumentedOperator, IMultiOperator<T> where T : class, IOperator { 37 37 private List<IValueParameter<T>> operatorParameters; -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/Operator.InstrumentedOperatorWrapper.cs
r14185 r14927 27 27 using HeuristicLab.Common; 28 28 using HeuristicLab.Core; 29 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;29 using HeuristicLab.Persistence; 30 30 using HeuristicLab.PluginInfrastructure; 31 31 using ExecutionContext = HeuristicLab.Core.ExecutionContext; … … 38 38 } 39 39 40 [Storable Class]40 [StorableType("161c4892-a282-41cb-88b1-166b4dc56c08")] 41 41 [NonDiscoverableType] 42 42 private class InstrumentedOperatorWrapper : Operator { … … 75 75 IOperation next = instrumentedOperator.InstrumentedApply(); 76 76 return next; 77 } 78 finally { 77 } finally { 79 78 foreach (ILookupParameter param in instrumentedOperator.Parameters.OfType<ILookupParameter>()) 80 79 param.ExecutionContext = null; -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/Operator.cs
r14185 r14927 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Operators { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/Placeholder.cs
r14185 r14927 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Operators { … … 30 30 /// </summary> 31 31 [Item("Placeholder", "An operator which acts as a placeholder for another operator retrieved from the scope or a parent execution context.")] 32 [Storable Class]32 [StorableType("8d623560-f0a1-4fe5-af3e-f0c162c243fe")] 33 33 public sealed class Placeholder : SingleSuccessorOperator { 34 34 public LookupParameter<IOperator> OperatorParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/ReductionOperation.cs
r14185 r14927 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Data; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Operators { … … 40 40 41 41 [Item("ReductionOperation", "Represents a certain type of reduction operation.")] 42 [Storable Class]42 [StorableType("a9793970-cc7d-40c6-93f8-d46fcff7ead7")] 43 43 public class ReductionOperation : ValueTypeValue<ReductionOperations> { 44 44 public static new Image StaticItemImage { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/ScopeCleaner.cs
r14185 r14927 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Operators { … … 30 30 /// </summary> 31 31 [Item("ScopeCleaner", "An operator which removes all variables and sub-scopes from the current scope.")] 32 [Storable Class]32 [StorableType("c066eaf4-df95-4036-8509-5bab8ce7058d")] 33 33 public sealed class ScopeCleaner : SingleSuccessorOperator { 34 34 private ScopeParameter CurrentScopeParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/SingleSuccessorOperator.cs
r14185 r14927 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Operators { … … 30 30 /// </summary> 31 31 [Item("SingleSuccessorOperator", "A base class for operators which have only one successor.")] 32 [Storable Class]32 [StorableType("878f58a8-bb98-4df7-b492-71c406ea6e97")] 33 33 public abstract class SingleSuccessorOperator : Operator { 34 34 protected OperatorParameter SuccessorParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/StochasticBranch.cs
r14185 r14927 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Operators { … … 31 31 /// </summary> 32 32 [Item("StochasticBranch", "A branch of two operators which are executed with a specified probability.")] 33 [Storable Class]33 [StorableType("d73084e8-8638-4a2c-b5a2-d6ad486d563f")] 34 34 public class StochasticBranch : SingleSuccessorOperator { 35 35 public LookupParameter<IRandom> RandomParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/StochasticMultiBranch.cs
r14185 r14927 28 28 using HeuristicLab.Data; 29 29 using HeuristicLab.Parameters; 30 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;30 using HeuristicLab.Persistence; 31 31 32 32 namespace HeuristicLab.Operators { … … 35 35 /// </summary> 36 36 [Item("StochasticMultiBranch", "Selects one of its branches (if there are any) given a list of relative probabilities.")] 37 [Storable Class]37 [StorableType("b49ef1d0-748c-4542-8024-bc186027ddb3")] 38 38 public abstract class StochasticMultiBranch<T> : CheckedMultiOperator<T> where T : class, IOperator { 39 39 /// <summary> … … 176 176 /// </summary> 177 177 [Item("StochasticMultiBranch", "Selects one of its branches (if there are any) given a list of relative probabilities.")] 178 [Storable Class]178 [StorableType("f1ef6508-c113-4613-a501-18d6c6e70652")] 179 179 public class StochasticMultiBranch : StochasticMultiBranch<IOperator> { 180 180 [StorableConstructor] -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/SubScopesCloner.cs
r14185 r14927 25 25 using System.Text; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 using HeuristicLab.Common; 29 29 using HeuristicLab.Parameters; … … 35 35 /// </summary> 36 36 [Item("SubScopesCloner", "An operator which creates multiple copies of the subscopes of the current scope.")] 37 [Storable Class]37 [StorableType("d185bb53-c47a-4cd9-935e-7b356551db82")] 38 38 public class SubScopesCloner : SingleSuccessorOperator { 39 39 private ScopeParameter CurrentScopeParameter { … … 49 49 public IntValue NumberOfCopies { 50 50 get { return NumberOfCopiesParameter.Value; } 51 set { NumberOfCopiesParameter.Value = value; 51 set { NumberOfCopiesParameter.Value = value; } 52 52 } 53 53 … … 59 59 } 60 60 public SubScopesCloner() 61 : base() { 61 : base() { 62 62 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope whose sub-scopes should be cloned.")); 63 63 Parameters.Add(new ValueParameter<IntValue>("NumberOfCopies", "The number of copies that should be created.", new IntValue(1))); … … 77 77 } 78 78 79 79 return base.Apply(); 80 80 } 81 81 } -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/SubScopesCounter.cs
r14185 r14927 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Operators { 29 29 [Item("SubScopesCounter", "Counts the number of direct sub-scopes and increments or assigns it to the value given in the parameter.")] 30 [Storable Class]30 [StorableType("03df3f43-096c-4fd8-a87c-5059087a113d")] 31 31 public class SubScopesCounter : SingleSuccessorOperator { 32 32 -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/SubScopesCreator.cs
r14185 r14927 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Operators { … … 31 31 /// </summary> 32 32 [Item("SubScopesCreator", "An operator which adds new and empty sub-scopes to the current scope.")] 33 [Storable Class]33 [StorableType("c23e0f1c-45a4-4cfd-a3bf-cd72d5c8fbb8")] 34 34 public class SubScopesCreator : SingleSuccessorOperator { 35 35 public ValueLookupParameter<IntValue> NumberOfSubScopesParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/SubScopesMixer.cs
r14185 r14927 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Operators { … … 32 32 /// </summary> 33 33 [Item("SubScopesMixer", "Changes the order of the sub-scopes by repartitioning the sub-scopes such that each new partition contains one scope from each old partition.")] 34 [Storable Class]34 [StorableType("458ee223-13d1-4d2e-bc0a-7fca375dc201")] 35 35 public class SubScopesMixer : SingleSuccessorOperator { 36 36 public ValueParameter<IntValue> PartitionsParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/SubScopesProcessor.cs
r14185 r14927 27 27 using HeuristicLab.Data; 28 28 using HeuristicLab.Parameters; 29 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;29 using HeuristicLab.Persistence; 30 30 31 31 namespace HeuristicLab.Operators { … … 34 34 /// </summary> 35 35 [Item("SubScopesProcessor", "An operator which contains multiple operators of which each is applied on one sub-scope at the given depth of the current scope. The first operator is applied on the first sub-scope, the second on the second, and so on.")] 36 [Storable Class]36 [StorableType("008704a4-39ea-4a00-b390-a7fd5f67e6ee")] 37 37 public sealed class SubScopesProcessor : MultiOperator<IOperator> { 38 38 public ValueLookupParameter<BoolValue> ParallelParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/SubScopesRemover.cs
r14185 r14927 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Operators { … … 31 31 /// </summary> 32 32 [Item("SubScopesRemover", "An operator which removes all sub-scopes or one specified sub-scope from the current scope.")] 33 [Storable Class]33 [StorableType("2497cf78-e157-4c60-bd1b-def9a8dbe479")] 34 34 public sealed class SubScopesRemover : SingleSuccessorOperator { 35 35 private ValueParameter<BoolValue> RemoveAllSubScopesParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/SubScopesSorter.cs
r14185 r14927 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Operators { … … 31 31 /// </summary> 32 32 [Item("SubScopesSorter", "An operator which sorts the sub-scopes of the current scope.")] 33 [Storable Class]33 [StorableType("e6c6d09c-f14f-4d36-bc05-04e1a7554ba4")] 34 34 public sealed class SubScopesSorter : SingleSuccessorOperator { 35 35 private bool descending; -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/UniformSubScopesProcessor.cs
r14185 r14927 26 26 using HeuristicLab.Data; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Operators { … … 33 33 /// </summary> 34 34 [Item("UniformSubScopesProcessor", "An operator which applies a specified operator on all sub-scopes at the given depth of the current scope.")] 35 [Storable Class]35 [StorableType("196e80f9-3b97-45a4-a9a0-60860e50cb65")] 36 36 public sealed class UniformSubScopesProcessor : SingleSuccessorOperator { 37 37 private OperatorParameter OperatorParameter { -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/ValuesCollector.cs
r14185 r14927 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Operators { … … 30 30 /// </summary> 31 31 [Item("ValuesCollector", "An operator which collects the actual values of parameters.")] 32 [Storable Class]32 [StorableType("7f3f4ade-2d1b-488f-827f-a4c6ca5fedd8")] 33 33 public abstract class ValuesCollector : SingleSuccessorOperator, IOperator { 34 34 [Storable] -
branches/PersistenceReintegration/HeuristicLab.Operators/3.3/VariableCreator.cs
r14185 r14927 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Operators { … … 30 30 /// </summary> 31 31 [Item("VariableCreator", "An operator which collects the actual values of parameters and clones them into the current scope.")] 32 [Storable Class]32 [StorableType("5dd07109-5486-4dce-b3db-58851bdfd6f9")] 33 33 public class VariableCreator : ValuesCollector { 34 34 protected ScopeParameter CurrentScopeParameter {
Note: See TracChangeset
for help on using the changeset viewer.