Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12616


Ignore:
Timestamp:
07/06/15 18:16:55 (7 years ago)
Author:
abeham
Message:

#2409: Added IProgrammableItem interface, implemented the interface in ProgrammableOperator, Script, and the *ProgrammableProblems

Location:
trunk/sources
Files:
1 added
5 edited

Legend:

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

    r11623 r12616  
    166166    <Compile Include="Interfaces\IFixedValueParameter.cs" />
    167167    <Compile Include="Interfaces\IOperatorGraphOperator.cs" />
     168    <Compile Include="Interfaces\IProgrammableItem.cs" />
    168169    <Compile Include="Interfaces\IStatefulItem.cs" />
    169170    <Compile Include="OperatorExecutionException.cs" />
  • trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperator.cs

    r12012 r12616  
    4242  [Item("ProgrammableOperator", "An operator that can be programmed for arbitrary needs.")]
    4343  [StorableClass]
    44   public class ProgrammableOperator : Operator, IParameterizedNamedItem, IStorableContent {
     44  public class ProgrammableOperator : Operator, IParameterizedNamedItem, IStorableContent, IProgrammableItem {
    4545
    4646    #region Fields & Properties
     
    280280            assemblies.Add(a, false);
    281281          }
    282         }
    283         catch (NotSupportedException) {
     282        } catch (NotSupportedException) {
    284283          // NotSupportedException is thrown while accessing
    285284          // the Location property of the anonymously hosted
  • trunk/sources/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs

    r12504 r12616  
    3333  [Creatable(CreatableAttribute.Categories.Problems, Priority = 120)]
    3434  [StorableClass]
    35   public sealed class MultiObjectiveProgrammableProblem : MultiObjectiveBasicProblem<IEncoding> {
     35  public sealed class MultiObjectiveProgrammableProblem : MultiObjectiveBasicProblem<IEncoding>, IProgrammableItem {
    3636    public static new Image StaticItemImage {
    3737      get { return VSImageLibrary.Script; }
  • trunk/sources/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs

    r12504 r12616  
    3535  [Creatable(CreatableAttribute.Categories.Problems, Priority = 100)]
    3636  [StorableClass]
    37   public sealed class SingleObjectiveProgrammableProblem : SingleObjectiveBasicProblem<IEncoding> {
     37  public sealed class SingleObjectiveProgrammableProblem : SingleObjectiveBasicProblem<IEncoding>, IProgrammableItem {
    3838    public static new Image StaticItemImage {
    3939      get { return VSImageLibrary.Script; }
  • trunk/sources/HeuristicLab.Scripting/3.3/Script.cs

    r12012 r12616  
    3737namespace HeuristicLab.Scripting {
    3838  [StorableClass]
    39   public class Script : NamedItem {
     39  public class Script : NamedItem, IProgrammableItem {
    4040    protected virtual string CodeTemplate {
    4141      get { return string.Empty; }
Note: See TracChangeset for help on using the changeset viewer.