Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/27/12 13:24:36 (12 years ago)
Author:
abeham
Message:

#1614

  • reworked parameterization (one interface for every parameter resp. parameter group)
  • unified parameter descriptions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/GQAPManipulator.cs

    r7418 r7419  
    3131  [Item("GQAPManipulator", "A base class for operators that manipulate assignment vectors of the GeneralizedQuadraticAssignment problems.")]
    3232  [StorableClass]
    33   public abstract class GQAPManipulator : SingleSuccessorOperator, IGQAPManipulator, IStochasticOperator {
     33  public abstract class GQAPManipulator : SingleSuccessorOperator, IAssignmentAwareGQAPOperator, IManipulator, IStochasticOperator {
    3434    public override bool CanChangeName {
    3535      get { return false; }
    3636    }
     37
     38    public ILookupParameter<IntegerVector> AssignmentParameter {
     39      get { return (ILookupParameter<IntegerVector>)Parameters["Assignment"]; }
     40    }
    3741    public ILookupParameter<IRandom> RandomParameter {
    3842      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    39     }
    40     public ILookupParameter<IntegerVector> AssignmentParameter {
    41       get { return (ILookupParameter<IntegerVector>)Parameters["IntegerVector"]; }
    4243    }
    4344
     
    4748    protected GQAPManipulator()
    4849      : base() {
     50      Parameters.Add(new LookupParameter<IntegerVector>("Assignment", GQAPSolutionCreator.AssignmentDescription));
    4951      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators."));
    50       Parameters.Add(new LookupParameter<IntegerVector>("IntegerVector", "The assignment vector which should be manipulated."));
    5152    }
    5253
Note: See TracChangeset for help on using the changeset viewer.