Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/09 02:09:35 (15 years ago)
Author:
swagner
Message:

Refactoring of the operator architecture (#95)

Location:
branches/Operator Architecture Refactoring/HeuristicLab.Core/3.2/Interfaces
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/Operator Architecture Refactoring/HeuristicLab.Core/3.2/Interfaces/IEnvironment.cs

    r1994 r2027  
    2727  public interface IEnvironment : IItem {
    2828    string TranslateName(string name);
     29
     30    void AddAlias(string oldName, string newName);
     31    void RemoveAlias(string name);
    2932  }
    3033}
  • branches/Operator Architecture Refactoring/HeuristicLab.Core/3.2/Interfaces/IOperator.cs

    r1994 r2027  
    4949
    5050    /// <summary>
     51    /// Gets a list of all sub operators.
     52    /// </summary>
     53    IList<IOperator> SubOperators { get; }
     54    /// <summary>
    5155    /// Gets a collection of all variable (parameter) infos.
    5256    /// </summary>
    5357    ICollection<IParameter> Parameters { get; }
     58
     59    /// <summary>
     60    /// Adds the given sub operator to the current instance.
     61    /// </summary>
     62    /// <param name="op">The operator to add.</param>
     63    void AddSubOperator(IOperator op);
     64    /// <summary>
     65    /// Adds the given sub operator at a the specified <paramref name="index"/>.
     66    /// </summary>
     67    /// <param name="op">The operator to add.</param>
     68    /// <param name="index">The position where to add the operator.</param>
     69    void AddSubOperator(IOperator op, int index);
     70    /// <summary>
     71    /// Removes a sub operator at the specified <paramref name="index"/>.
     72    /// </summary>
     73    /// <param name="index">The position where to delete the operator.</param>
     74    void RemoveSubOperator(int index);
    5475
    5576    /// <summary>
     
    7596    /// <param name="scope">The scope where to execute the current instance.</param>
    7697    /// <returns>The next operation.</returns>
    77     IOperation Execute(IEnvironment environment, IScope scope);
     98    IOperation Execute(IEnvironment env, IScope scope);
    7899    /// <summary>
    79100    /// Aborts the current operator.
     
    88109    /// Occurs when the breakpoint flag of the current instance was changed.
    89110    /// </summary>
    90     event EventHandler BreakpointChanged;
     111    event EventHandler BreakpointChanged;
     112    /// <summary>
     113    /// Occurs when a sub operator has been added.
     114    /// </summary>
     115    event EventHandler<OperatorIndexEventArgs> SubOperatorAdded;
     116    /// <summary>
     117    /// Occurs when a sub operator has been deleted.
     118    /// </summary>
     119    event EventHandler<OperatorIndexEventArgs> SubOperatorRemoved;
    91120    /// <summary>
    92121    /// Occurs when a variable info has been added.
  • branches/Operator Architecture Refactoring/HeuristicLab.Core/3.2/Interfaces/IScope.cs

    r1994 r2027  
    2929  /// Interface for a hierarchical container of variables (containing variables and subscopes).
    3030  /// </summary>
    31   public interface IScope : IItem {
     31  public interface IScope : IItem, IVariablesContainer {
    3232    /// <summary>
    3333    /// Gets the name of the current instance.
     
    3535    string Name { get; }
    3636
    37     /// <summary>
    38     /// Gets the varibles of the current scope.
    39     /// </summary>
    40     ICollection<IVariable> Variables { get; }
    4137    /// <summary>
    4238    /// Gets all subscopes in the current scope.
     
    5046    void SetParent(IScope scope);
    5147
    52     /// <summary>
    53     /// Gets a variable with the given <paramref name="name"/>.
    54     /// </summary>
    55     /// <param name="name">The name of the variable.</param>
    56     /// <returns>The variable with the specified name.</returns>
    57     IVariable GetVariable(string name);
    58     /// <summary>
    59     /// Adds the specified variable to the curent instance.
    60     /// </summary>
    61     /// <param name="variable">The variable to add.</param>
    62     void AddVariable(IVariable variable);
    63     /// <summary>
    64     /// Deletes a variable with the specified <paramref name="name"/> from the current instance.
    65     /// </summary>
    66     /// <param name="name">The name of the variable to delete.</param>
    67     void RemoveVariable(string name);
    68    
    6948    /// <inheritdoc cref="GetVariableValue(string, bool)"/>
    7049    /// <typeparam name="T">The type of the value that is searched.</typeparam>
     
    125104
    126105    /// <summary>
    127     /// Occurs when a variable has been added to the current instance.
    128     /// </summary>
    129     event EventHandler<VariableEventArgs> VariableAdded;
    130     /// <summary>
    131     /// Occurs when a variable has been deleted from the current instance.
    132     /// </summary>
    133     event EventHandler<VariableEventArgs> VariableRemoved;
    134     /// <summary>
    135106    /// Occurs when a sub scope has been added to the current instance.
    136107    /// </summary>
Note: See TracChangeset for help on using the changeset viewer.