Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/08 23:33:45 (16 years ago)
Author:
gkronber
Message:

removed the 'AllowedSubOperators' variable for functions because the original intention was to cache the list of allowed sub-functions which is actually determined by a tree of constraints. However the original idea was never fully implemented so up to now any function in the library was allowed for any other function as long as it was not a terminal (also defined by constraints on the arity). The 'AllowedSubOperators' variable is not necessary at all when we defined the set via constraints. The SubOperatorsConstraintView allows draging of functions from the library into the constraint.

Next step: automatic adaption of SubOperatorsConstraints of functions in the library when new functions are added or existing entries removed.
(ticket #225)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Constraints/SubOperatorsConstraintAnalyser.cs

    r430 r431  
    3737
    3838    public IList<IOperator> GetAllowedOperators(IOperator op, int childIndex) {
    39 
    4039      AndConstraint andConstraint = new AndConstraint();
    4140      foreach(IConstraint constraint in op.Constraints) {
    4241        andConstraint.Clauses.Add(constraint);
    4342      }
    44 
     43     
    4544      GetAllowedOperatorsVisitor visitor = new GetAllowedOperatorsVisitor(allPossibleOperators, childIndex);
    4645      andConstraint.Accept(visitor);
    47 
    4846      return visitor.AllowedOperators;
    4947    }
Note: See TracChangeset for help on using the changeset viewer.