Changeset 16728 for branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure
- Timestamp:
- 03/31/19 14:40:15 (6 years ago)
- Location:
- branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Algorithms/ContextAlgorithm.cs
r15718 r16728 24 24 using System.Linq; 25 25 using System.Threading; 26 using HEAL.Attic; 26 27 using HeuristicLab.Analysis; 27 28 using HeuristicLab.Common; … … 30 31 using HeuristicLab.Optimization; 31 32 using HeuristicLab.Parameters; 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;33 33 34 34 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 35 35 [Item("Context-based Algorithm", "Algorithms that make use of contexts to facilitate applying operators.")] 36 [Storable Class]36 [StorableType("F7679602-28B2-495C-AF6C-370EFC7BE38A")] 37 37 public abstract class ContextAlgorithm<TContext, TEncoding> : BasicAlgorithm 38 38 where TContext : class, IContext, new() … … 110 110 111 111 [StorableConstructor] 112 protected ContextAlgorithm( bool deserializing) : base(deserializing) { }112 protected ContextAlgorithm(StorableConstructorFlag _) : base(_) { } 113 113 protected ContextAlgorithm(ContextAlgorithm<TContext, TEncoding> original, Cloner cloner) 114 114 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Algorithms/StochasticAlgorithm.cs
r15572 r16728 21 21 22 22 using System.Threading; 23 using HEAL.Attic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 26 27 using HeuristicLab.Optimization; 27 28 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;29 29 using HeuristicLab.Random; 30 30 31 31 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 32 32 [Item("Stochastic Algorithm", "Stochastic context-based algorithms to facilitate applying operators.")] 33 [Storable Class]33 [StorableType("749A9442-BCE6-45A1-8911-159217199013")] 34 34 public abstract class StochasticAlgorithm<TContext, TEncoding> : ContextAlgorithm<TContext, TEncoding> 35 35 where TContext : class, IStochasticContext, new() … … 57 57 58 58 [StorableConstructor] 59 protected StochasticAlgorithm( bool deserializing) : base(deserializing) { }59 protected StochasticAlgorithm(StorableConstructorFlag _) : base(_) { } 60 60 protected StochasticAlgorithm(StochasticAlgorithm<TContext, TEncoding> original, Cloner cloner) 61 61 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Contexts/BasicContext.cs
r15700 r16728 23 23 using System.Collections.Generic; 24 24 using System.Threading; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; 27 28 using HeuristicLab.Data; 28 29 using HeuristicLab.Parameters; 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;30 30 31 31 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 32 32 [Item("Basic Context", "A base class for algorithms' contexts.")] 33 [Storable Class]33 [StorableType("633CC9F2-35B9-4193-A022-0D768532937A")] 34 34 public class BasicContext : ParameterizedNamedItem, IContext { 35 35 … … 77 77 78 78 [StorableConstructor] 79 protected BasicContext( bool deserializing) : base(deserializing) { }79 protected BasicContext(StorableConstructorFlag _) : base(_) { } 80 80 protected BasicContext(BasicContext original, Cloner cloner) 81 81 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Contexts/PopulationContext.cs
r15616 r16728 22 22 using System.Collections.Generic; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;27 27 28 28 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 29 29 [Item("Population Context", "A context for population-based algorithms.")] 30 [Storable Class]30 [StorableType("2FF3BB92-80E9-4463-B05A-5D36B76873A6")] 31 31 public abstract class PopulationContext<TSolutionScope> : StochasticContext 32 32 where TSolutionScope: class, IScope { … … 56 56 57 57 [StorableConstructor] 58 protected PopulationContext( bool deserializing) : base(deserializing) { }58 protected PopulationContext(StorableConstructorFlag _) : base(_) { } 59 59 protected PopulationContext(PopulationContext<TSolutionScope> original, Cloner cloner) 60 60 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Contexts/SingleSolutionContext.cs
r15616 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;25 25 26 26 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 27 27 [Item("Single Solution Context", "A context for single solution algorithms.")] 28 [Storable Class]28 [StorableType("1AE4E4ED-21C5-48E7-833C-58D813557026")] 29 29 public abstract class SingleSolutionContext<TSolutionScope> : StochasticContext 30 30 where TSolutionScope: class, IScope { … … 44 44 45 45 [StorableConstructor] 46 protected SingleSolutionContext( bool deserializing) : base(deserializing) { }46 protected SingleSolutionContext(StorableConstructorFlag _) : base(_) { } 47 47 protected SingleSolutionContext(SingleSolutionContext<TSolutionScope> original, Cloner cloner) 48 48 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Contexts/StochasticContext.cs
r15616 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;26 26 27 27 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 28 28 [Item("Stochastic Context", "A base class for stochastic algorithms' contexts.")] 29 [Storable Class]29 [StorableType("9A9B3147-4D77-45E7-9A79-B6393666AB2E")] 30 30 public class StochasticContext : BasicContext, IStochasticContext { 31 31 … … 38 38 39 39 [StorableConstructor] 40 protected StochasticContext( bool deserializing) : base(deserializing) { }40 protected StochasticContext(StorableConstructorFlag _) : base(_) { } 41 41 protected StochasticContext(StochasticContext original, Cloner cloner) 42 42 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Interfaces.cs
r15700 r16728 21 21 22 22 using System; 23 using HEAL.Attic; 23 24 using HeuristicLab.Core; 24 25 25 26 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 27 [StorableType("2bab7669-028a-4ba8-9c63-60853e15ad47")] 26 28 public interface ISingleObjectiveSolutionScope<TSolution> : IScope { 27 29 TSolution Solution { get; set; } 28 30 double Fitness { get; set; } 29 31 } 30 32 [StorableType("0ae52e60-5ea1-428f-99ca-b7b84a79857d")] 31 33 public interface IContext : IExecutionContext { 32 34 new IExecutionContext Parent { get; set; } … … 37 39 event EventHandler BestQualityChanged; 38 40 } 39 41 [StorableType("ab766d45-2dab-4280-9f4e-1531fe9a91cf")] 40 42 public interface IStochasticContext : IContext { 41 43 IRandom Random { get; set; } -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/SingleObjectiveSolutionScope.cs
r15572 r16728 21 21 22 22 using System.Drawing; 23 using HEAL.Attic; 23 24 using HeuristicLab.Collections; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 27 using HeuristicLab.Data; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 28 29 29 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 30 30 [Item("Solution Scope", "Scope for an individual/solution of a single-objective single-encoded problem.")] 31 [Storable Class]31 [StorableType("C3F4010D-8B4F-4F0E-B99C-1B78AED8F114")] 32 32 public sealed class SingleObjectiveSolutionScope<T> : NamedItem, ISingleObjectiveSolutionScope<T> where T : class, IItem { 33 33 public new static Image StaticItemImage { … … 73 73 74 74 [StorableConstructor] 75 private SingleObjectiveSolutionScope( bool deserializing) : base(deserializing) { }75 private SingleObjectiveSolutionScope(StorableConstructorFlag _) : base(_) { } 76 76 private SingleObjectiveSolutionScope(SingleObjectiveSolutionScope<T> original, Cloner cloner) 77 77 : base(original, cloner) {
Note: See TracChangeset
for help on using the changeset viewer.