Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/08 14:09:26 (16 years ago)
Author:
gkronber
Message:

GPOperatorGroup adds a variable "Tickets" to all functions in the library (ticket #127)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/GPOperatorGroup.cs

    r155 r178  
    9494        op.AddVariable(new Variable(GPOperatorLibrary.ALLOWED_SUBOPERATORS, new ItemList()));
    9595      }
     96      if(op.GetVariable(GPOperatorLibrary.TICKETS) == null) {
     97        op.AddVariable(new Variable(GPOperatorLibrary.TICKETS, new DoubleData(1.0)));
     98      }
    9699
    97100      RecalculateAllowedSuboperators();
     
    281284    public override void RemoveOperator(IOperator op) {
    282285      base.RemoveOperator(op);
    283 
    284286      op.RemoveVariable(GPOperatorLibrary.MANIPULATION);
    285287      op.RemoveVariable(GPOperatorLibrary.INITIALIZATION);
     
    288290      op.RemoveVariable(GPOperatorLibrary.MIN_TREE_HEIGHT);
    289291      op.RemoveVariable(GPOperatorLibrary.ALLOWED_SUBOPERATORS);
     292      op.RemoveVariable(GPOperatorLibrary.TICKETS);
    290293
    291294      OnOperatorRemoved(op);
Note: See TracChangeset for help on using the changeset viewer.