Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/15 17:22:41 (9 years ago)
Author:
mkommend
Message:

#2521: Fixed all problems.

Location:
branches/ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.3/Interfaces/ILinearLinkageCreator.cs

    r12285 r13372  
    2525
    2626namespace HeuristicLab.Encodings.LinearLinkageEncoding {
    27   public interface ILinearLinkageCreator : ISolutionCreator, ILinearLinkageOperator {
     27  public interface ILinearLinkageCreator : ISolutionCreator<LinearLinkage>, ILinearLinkageOperator {
    2828    IValueLookupParameter<IntValue> LengthParameter { get; }
    2929    ILookupParameter<LinearLinkage> LLEParameter { get; }
  • branches/ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.3/LinearLinkage.cs

    r12701 r13372  
    2626using HeuristicLab.Core;
    2727using HeuristicLab.Data;
     28using HeuristicLab.Optimization;
    2829using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2930
     
    3132  [Item("LinearLinkage", "Represents an LLE grouping of items.")]
    3233  [StorableClass]
    33   public sealed class LinearLinkage : IntArray {
     34  public sealed class LinearLinkage : IntArray, ISolution {
    3435
    3536    [StorableConstructor]
  • branches/ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.3/LinearLinkageEncoding.cs

    r12650 r13372  
    3434  [Item("Linear Linkage Encoding", "Describes a linear linkage (LLE) encoding.")]
    3535  [StorableClass]
    36   public sealed class LinearLinkageEncoding : Encoding<ILinearLinkageCreator> {
     36  public sealed class LinearLinkageEncoding : Encoding<LinearLinkage> {
    3737    #region encoding parameters
    3838    [Storable]
     
    166166    }
    167167    #endregion
    168   }
    169168
    170   public static class IndividualExtensionMethods {
    171     public static LinearLinkage LinearLinkage(this Individual individual) {
    172       var encoding = individual.GetEncoding<LinearLinkageEncoding>();
    173       return individual.LinearLinkage(encoding.Name);
    174     }
    175     public static LinearLinkage LinearLinkage(this Individual individual, string name) {
    176       return (LinearLinkage)individual[name];
    177     }
    178169  }
    179170}
Note: See TracChangeset for help on using the changeset viewer.