Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/24/11 17:08:11 (13 years ago)
Author:
mkofler
Message:

#852: Code refactoring. Created new interfaces and moved operators to respective projects as suggested in A. Beham's review. Work in progress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/NeighborUpdater.cs

    r5445 r5560  
    2424using HeuristicLab.Core;
    2525using HeuristicLab.Data;
    26 using HeuristicLab.Encodings.IntegerVectorEncoding;
    2726using HeuristicLab.Encodings.RealVectorEncoding;
    2827using HeuristicLab.Operators;
     
    4241      get { return (IScopeTreeLookupParameter<RealVector>)Parameters["Point"]; }
    4342    }
    44     public IScopeTreeLookupParameter<IntegerVector> NeighborsParameter {
    45       get { return (IScopeTreeLookupParameter<IntegerVector>)Parameters["Neighbors"]; }
     43    public IScopeTreeLookupParameter<IntArray> NeighborsParameter {
     44      get { return (IScopeTreeLookupParameter<IntArray>)Parameters["Neighbors"]; }
    4645    }
    4746    public IScopeTreeLookupParameter<RealVector> BestNeighborPointParameter {
     
    6059      get { return PointsParameter.ActualValue; }
    6160    }
    62     private ItemArray<IntegerVector> Neighbors {
     61    private ItemArray<IntArray> Neighbors {
    6362      get { return NeighborsParameter.ActualValue; }
    6463    }
     
    8079    private NeighborUpdater(NeighborUpdater original, Cloner cloner) : base(original, cloner) { }
    8180    public NeighborUpdater() {
    82       Parameters.Add(new ScopeTreeLookupParameter<RealVector>("Point", "The position of the particle."));
    83       Parameters.Add(new ScopeTreeLookupParameter<IntegerVector>("Neighbors", "The list of neighbors for each particle."));
     81      Parameters.Add(new ScopeTreeLookupParameter<RealVector>("RealVector", "The position of the particle."));
     82      Parameters.Add(new ScopeTreeLookupParameter<IntArray>("Neighbors", "The list of neighbors for each particle."));
    8483      Parameters.Add(new ScopeTreeLookupParameter<RealVector>("BestNeighborPoint", "The position of the best neighboring particle."));
    8584      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The list of qualities of all particles."));
Note: See TracChangeset for help on using the changeset viewer.