[14727] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 |
|
---|
| 4 | namespace HeuristicLab.Problems.ProgramSynthesis.Push.Configuration {
|
---|
| 5 | using HeuristicLab.Core;
|
---|
| 6 | using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
|
---|
| 7 | using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
|
---|
| 8 |
|
---|
| 9 | public class EnabledExpressionsChangedEventArgs : EventArgs {
|
---|
| 10 | public IEnumerable<string> AddedExpressions { get; private set; }
|
---|
| 11 | public IEnumerable<string> RemovedExpressions { get; private set; }
|
---|
| 12 |
|
---|
| 13 | public EnabledExpressionsChangedEventArgs(IEnumerable<string> addedExpressions, IEnumerable<string> removedExpressions) {
|
---|
| 14 | AddedExpressions = addedExpressions;
|
---|
| 15 | RemovedExpressions = removedExpressions;
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public interface IEnabledExpressionsConfiguration : INamedItem {
|
---|
| 20 | event EventHandler<EnabledExpressionsChangedEventArgs> EnabledExpressionsChanged;
|
---|
| 21 |
|
---|
[15032] | 22 | IReadOnlyList<string> EnabledExpressions { get; }
|
---|
[14727] | 23 |
|
---|
[15032] | 24 | void EnableStack(StackTypes types, bool enableDependencies = false);
|
---|
| 25 | void DisableStack(StackTypes type, bool enableDepenencies = false);
|
---|
| 26 | void SetStack(StackTypes type, bool state, bool setDependencies = false);
|
---|
[14777] | 27 | void EnableExpressionOfStack(StackTypes types);
|
---|
[14905] | 28 | void DisableExpressionsOfStack(StackTypes types);
|
---|
[15032] | 29 | void EnableExpression(string name);
|
---|
| 30 | void DisableExpression(string name);
|
---|
| 31 | void SetExpression(string name, bool state);
|
---|
| 32 | void SetExpression<T>(bool state) where T : Expression;
|
---|
| 33 | void EnableExpression<T>() where T : Expression;
|
---|
| 34 | void DisableExpression<T>() where T : Expression;
|
---|
[14727] | 35 | }
|
---|
| 36 | }
|
---|