Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9178


Ignore:
Timestamp:
01/22/13 16:46:49 (12 years ago)
Author:
mkommend
Message:

#1996: Corrected OperatorGraph.Iterate to include AlgorithmOperators.

Location:
trunk/sources
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/HeuristicLab.Core-3.3.csproj

    r9151 r9178  
    152152    <Compile Include="Interfaces\IMultiOperator.cs" />
    153153    <Compile Include="Interfaces\IFixedValueParameter.cs" />
     154    <Compile Include="Interfaces\IOperatorGraphOperator.cs" />
    154155    <Compile Include="Interfaces\IStatefulItem.cs" />
    155156    <Compile Include="OperatorExecutionException.cs" />
  • trunk/sources/HeuristicLab.Core/3.3/OperatorGraph.cs

    r9075 r9178  
    263263        visited.Add(current);
    264264
     265        IOperatorGraphOperator operatorGraphOperator = current as IOperatorGraphOperator;
     266        if (operatorGraphOperator != null) open.Push(operatorGraphOperator.OperatorGraph.InitialOperator);
     267
    265268        foreach (var parameter in current.Parameters.OfType<IValueParameter>()) {
    266269          if (!typeof(IOperator).IsAssignableFrom(parameter.DataType)) continue;
  • trunk/sources/HeuristicLab.Operators/3.3/AlgorithmOperator.cs

    r7259 r9178  
    3131  [Item("AlgorithmOperator", "An operator which represents an algorithm represented as an operator graph.")]
    3232  [StorableClass]
    33   public abstract class AlgorithmOperator : SingleSuccessorOperator {
     33  public abstract class AlgorithmOperator : SingleSuccessorOperator, IOperatorGraphOperator {
    3434    public static new Image StaticItemImage {
    3535      get { return HeuristicLab.Common.Resources.VSImageLibrary.Module; }
Note: See TracChangeset for help on using the changeset viewer.