Changeset 14714 for branches/PersistenceOverhaul
- Timestamp:
- 03/06/17 10:19:39 (8 years ago)
- Location:
- branches/PersistenceOverhaul
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceOverhaul/HeuristicLab.Common/3.3/TypeEqualityComparer.cs
r12012 r14714 21 21 22 22 using System.Collections.Generic; 23 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 23 24 24 25 namespace HeuristicLab.Common { 26 [StorableType("968BC42A-2453-43B9-92E1-3C52C6CF3AED")] 25 27 public class TypeEqualityComparer<T> : IEqualityComparer<T> { 26 28 -
branches/PersistenceOverhaul/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Grammars/SimpleSymbolicExpressionGrammar.cs
r12422 r14714 25 25 26 26 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 27 [StorableType("6A92B935-5D05-42D8-933C-333C9AB71133")] 27 28 public sealed class SimpleSymbolicExpressionGrammar : SymbolicExpressionGrammar { 28 29 [StorableConstructor] -
branches/PersistenceOverhaul/HeuristicLab.Persistence/4.0/Core/StaticCache.cs
r14713 r14714 58 58 // 59 59 // 60 // "B7313EE2-045F-41C9-AEC9-7B1A8CDBF90F"61 // "D5265599-7380-4A28-AB0D-9F336EF290C5"62 // "6A92B935-5D05-42D8-933C-333C9AB71133"63 // "934A44AA-7E04-4E2D-B640-EDD3DE24894F"60 // 61 // 62 // 63 // 64 64 // "0F24C888-AF34-4318-9472-187B9AA85F3C" 65 65 … … 114 114 // RegisterType(new Guid("7DF325A6-2553-4915-B7C6-D98191107CB7"), typeof(string[])); 115 115 116 RegisterType(new Guid("E451A99B-0CFD-48E6-9BEF-0AE9D1E73628"), typeof(IList)); 116 RegisterType(new Guid("E451A99B-0CFD-48E6-9BEF-0AE9D1E73628"), typeof(IList)); 117 RegisterType(new Guid("B7313EE2-045F-41C9-AEC9-7B1A8CDBF90F"), typeof(IEnumerable)); 118 RegisterType(new Guid("D5265599-7380-4A28-AB0D-9F336EF290C5"), typeof(IEnumerable<>)); 117 119 RegisterType(new Guid("DB2A785C-5803-42C7-A01F-E1FD845A83A1"), typeof(List<>)); 118 120 RegisterType(new Guid("EB98A564-BEDC-458A-9E9B-4BF3CDAFB9BE"), typeof(Stack<>)); -
branches/PersistenceOverhaul/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Creators/MultiSymbolicDataAnalysisExpressionCreator.cs
r12108 r14714 35 35 36 36 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Creators { 37 [StorableType("4F300624-6101-48BB-9BC0-6CE4D2711963")] 37 38 public class MultiSymbolicDataAnalysisExpressionCreator : StochasticMultiBranch<ISymbolicDataAnalysisSolutionCreator>, 38 39 ISymbolicDataAnalysisSolutionCreator, -
branches/PersistenceOverhaul/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers/SymbolicDataAnalysisExpressionCrossover.cs
r12012 r14714 32 32 33 33 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 34 [StorableType("F1795C23-8338-4EDA-98AF-1690569C7AE3")] 34 35 public abstract class SymbolicDataAnalysisExpressionCrossover<T> : SymbolicExpressionTreeCrossover, ISymbolicDataAnalysisExpressionCrossover<T> where T : class, IDataAnalysisProblemData { 35 36 private const string SymbolicDataAnalysisTreeInterpreterParameterName = "SymbolicExpressionTreeInterpreter"; -
branches/PersistenceOverhaul/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers/SymbolicDataAnalysisExpressionDepthConstrainedCrossover.cs
r12422 r14714 32 32 33 33 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 34 [StorableType("86C1312C-1CDA-4B24-92C5-9112E6EAE2EF")] 34 35 [Item("DepthConstrainedCrossover", "An operator which performs subtree swapping within a specific depth range. The range parameter controls the crossover behavior:\n" + 35 36 "- HighLevel (upper 25% of the tree)\n" + -
branches/PersistenceOverhaul/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers/SymbolicDataAnalysisExpressionDeterministicBestCrossover.cs
r12422 r14714 30 30 31 31 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 32 [StorableType("4A26C31E-8D8D-4142-B7A7-2D6E363635B8")] 32 33 [Item("DeterministicBestCrossover", "An operator which performs subtree swapping by choosing the best subtree to be swapped in a certain position:\n" + 33 34 "- Take two parent individuals P0 and P1\n" + -
branches/PersistenceOverhaul/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers/SymbolicDataAnalysisExpressionProbabilisticFunctionalCrossover.cs
r12422 r14714 30 30 31 31 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 32 [StorableType("BCD67FE9-1F9C-4208-8F7C-AF7FFA7D7170")] 32 33 [Item("ProbabilisticFunctionalCrossover", "An operator which performs subtree swapping based on the behavioral similarity between subtrees:\n" + 33 34 "- Take two parent individuals P0 and P1\n" + -
branches/PersistenceOverhaul/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers/SymbolicDataAnalysisExpressionSemanticSimilarityCrossover.cs
r12422 r14714 31 31 32 32 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 33 [StorableType("461F207C-057D-4E95-A803-D66457AE3806")] 33 34 [Item("SemanticSimilarityCrossover", "An operator which performs subtree swapping based on the notion semantic similarity between subtrees\n" + 34 35 "(criteria: mean of the absolute differences between the estimated output values of the two subtrees, falling into a user-defined range)\n" + -
branches/PersistenceOverhaul/HeuristicLab.Problems.Orienteering/3.3/Analyzers/BestOrienteeringSolutionAnalyzer.cs
r14712 r14714 31 31 32 32 namespace HeuristicLab.Problems.Orienteering { 33 [StorableType("934A44AA-7E04-4E2D-B640-EDD3DE24894F")] 33 34 public sealed class BestOrienteeringSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer { 34 35 public bool EnabledByDefault { -
branches/PersistenceOverhaul/HeuristicLab.Tests/HeuristicLab.Persistence-3.3/UseCasesPersistenceNew.cs
r14713 r14714 404 404 405 405 public string Profile(Func<object> GenerateDataFunc) { 406 int nrOfRepetitions = 1;406 int nrOfRepetitions = 30; 407 407 StringBuilder report = new StringBuilder(); 408 408 List<PerformanceData> dataList = new List<PerformanceData>(); … … 2136 2136 var original = XmlParser.Deserialize(fileName); 2137 2137 var ok = true; 2138 foreach (var t in original.GetObjectGraphObjects().Select(o => o.GetType())) { 2139 if ( 2140 t.GetConstructors(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public) 2141 .Any(ctor => StorableConstructorAttribute.IsStorableConstructor(ctor))) { 2142 try { 2143 if (t.IsGenericType) 2144 { 2145 var g = Mapper.StaticCache.GetGuid(t.GetGenericTypeDefinition()); 2146 } 2147 else 2148 { 2149 var g = Mapper.StaticCache.GetGuid(t); 2150 } 2151 } catch (Exception e) { 2152 Console.WriteLine(t.FullName); 2153 ok = false; 2154 } 2155 } 2156 } 2138 // foreach (var t in original.GetObjectGraphObjects().Select(o => o.GetType())) { 2139 // if ( 2140 // t.GetConstructors(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public) 2141 // .Any(ctor => StorableConstructorAttribute.IsStorableConstructor(ctor))) { 2142 // try { 2143 // if (t.IsGenericType) { 2144 // var g = Mapper.StaticCache.GetGuid(t.GetGenericTypeDefinition()); 2145 // } else { 2146 // var g = Mapper.StaticCache.GetGuid(t); 2147 // } 2148 // } catch (Exception e) { 2149 // Console.WriteLine(t.FullName); 2150 // ok = false; 2151 // } 2152 // } 2153 // } 2157 2154 if (ok) { 2158 2155 serializer.Serialize(original, fileName + ".proto");
Note: See TracChangeset
for help on using the changeset viewer.