Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/31/10 14:03:12 (14 years ago)
Author:
svonolfe
Message:

Renamed operators, added comments according to code review (#1039)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/AlbaLambdaInterchangeMoveGenerator.cs

    r4341 r4346  
    3030
    3131namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba {
    32   [Item("LambdaInterchangeMoveGenerator", "Generates lambda interchange moves from a given VRP encoding.")]
     32  [Item("AlbaLambdaInterchangeMoveGenerator", "Generates lambda interchange moves from a given VRP encoding.  It is implemented as described in Alba, E. and Dorronsoro, B. (2004). Solving the Vehicle Routing Problem by Using Cellular Genetic Algorithms.")]
    3333  [StorableClass]
    34   public abstract class LambdaInterchangeMoveGenerator : AlbaMoveOperator, IExhaustiveMoveGenerator, IAlbaLambdaInterchangeMoveOperator {
     34  public abstract class AlbaLambdaInterchangeMoveGenerator : AlbaMoveOperator, IExhaustiveMoveGenerator, IAlbaLambdaInterchangeMoveOperator {
    3535    #region IAlbaLambdaInterchangeMoveOperator Members
    3636
    37     public ILookupParameter<LambdaInterchangeMove> LambdaInterchangeMoveParameter {
    38       get { return (ILookupParameter<LambdaInterchangeMove>)Parameters["LambdaInterchangeMove"]; }
     37    public ILookupParameter<AlbaLambdaInterchangeMove> LambdaInterchangeMoveParameter {
     38      get { return (ILookupParameter<AlbaLambdaInterchangeMove>)Parameters["AlbaLambdaInterchangeMove"]; }
    3939    }
    4040
     
    5050
    5151    [StorableConstructor]
    52     protected LambdaInterchangeMoveGenerator(bool deserializing) : base(deserializing) { }
     52    protected AlbaLambdaInterchangeMoveGenerator(bool deserializing) : base(deserializing) { }
    5353
    54     public LambdaInterchangeMoveGenerator()
     54    public AlbaLambdaInterchangeMoveGenerator()
    5555      : base() {
    56         Parameters.Add(new LookupParameter<LambdaInterchangeMove>("LambdaInterchangeMove", "The moves that should be generated in subscopes."));
     56        Parameters.Add(new LookupParameter<AlbaLambdaInterchangeMove>("AlbaLambdaInterchangeMove", "The moves that should be generated in subscopes."));
    5757        Parameters.Add(new ScopeParameter("CurrentScope", "The current scope where the moves should be added as subscopes."));
    5858        Parameters.Add(new ValueParameter<IntValue>("Lambda", "The lambda value.", new IntValue(1)));
    5959    }
    6060
    61     protected abstract LambdaInterchangeMove[] GenerateMoves(AlbaEncoding individual, int lambda);
     61    protected abstract AlbaLambdaInterchangeMove[] GenerateMoves(AlbaEncoding individual, int lambda);
    6262
    6363    public override IOperation Apply() {
     
    6565
    6666      AlbaEncoding individual = VRPToursParameter.ActualValue as AlbaEncoding;
    67       LambdaInterchangeMove[] moves = GenerateMoves(individual, LambdaParameter.Value.Value);
     67      AlbaLambdaInterchangeMove[] moves = GenerateMoves(individual, LambdaParameter.Value.Value);
    6868      Scope[] moveScopes = new Scope[moves.Length];
    6969      for (int i = 0; i < moveScopes.Length; i++) {
Note: See TracChangeset for help on using the changeset viewer.