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/GQAPSolutionCreator.cs

    r7373 r7419  
    3131  [Item("GQAPSolutionCreator", "Base class for solution creators of the Generalized Quadratic Assignment Problem.")]
    3232  [StorableClass]
    33   public abstract class GQAPSolutionCreator : SingleSuccessorOperator, IGQAPSolutionCreator {
     33  public abstract class GQAPSolutionCreator : SingleSuccessorOperator, IDemandsAwareGQAPOperator, ICapacitiesAwareGQAPOperator, IGQAPSolutionCreator {
     34
     35    #region Parameter Descriptions
     36    public static readonly string AssignmentDescription = "The vector that encodes the assignment.";
     37    #endregion
    3438
    3539    public ILookupParameter<IntegerVector> AssignmentParameter {
    3640      get { return (ILookupParameter<IntegerVector>)Parameters["Assignment"]; }
    3741    }
     42    public ILookupParameter<DoubleArray> DemandsParameter {
     43      get { return (ILookupParameter<DoubleArray>)Parameters["Demands"]; }
     44    }
    3845    public ILookupParameter<DoubleArray> CapacitiesParameter {
    3946      get { return (ILookupParameter<DoubleArray>)Parameters["Capacities"]; }
    40     }
    41     public ILookupParameter<DoubleArray> DemandsParameter {
    42       get { return (ILookupParameter<DoubleArray>)Parameters["Demands"]; }
    4347    }
    4448
     
    4953    public GQAPSolutionCreator()
    5054      : base() {
    51       Parameters.Add(new LookupParameter<IntegerVector>("Assignment", "Creates an assignment for the Generalized Quadratic Assignment Problem."));
    52       Parameters.Add(new LookupParameter<DoubleArray>("Capacities", "The capacities vector describes the available space at the locations."));
    53       Parameters.Add(new LookupParameter<DoubleArray>("Demands", "The demands vector describes the space requirements of the equipments."));
     55      Parameters.Add(new LookupParameter<IntegerVector>("Assignment", AssignmentDescription));
     56      Parameters.Add(new LookupParameter<DoubleArray>("Demands", GeneralizedQuadraticAssignmentProblem.DemandsDescription));
     57      Parameters.Add(new LookupParameter<DoubleArray>("Capacities", GeneralizedQuadraticAssignmentProblem.CapacitiesDescription));
    5458    }
    5559
Note: See TracChangeset for help on using the changeset viewer.