Free cookie consent management tool by TermsFeed Policy Generator

Opened 8 years ago

Closed 6 years ago

#2553 closed feature request (done)

Provide access to script's compiled instance as dynamic object

Reported by: abeham Owned by: jkarder
Priority: medium Milestone: HeuristicLab 3.3.15
Component: Problems.ExternalEvaluation Version: 3.3.13
Keywords: Cc:


If the user adds additional methods to the class that she creates this would make those methods accessible from other operators. For example:

public dynamic Instance {
  get { return CompiledInstance; } // often CompiledInstance is a property that returns the compiled instance or compiles it if it hasn't been already

would then allow to write the following exemplary code in an operator

var myResult = (double)ScriptParameter.ActualValue.Instance.MyMethod(5, false);

I would do this in general for all scripts, but at least for the OptimizationSupportScript in the external evaluation plugin.

Feature request:!topic/heuristiclab/DlxjktBsgrA

Change History (6)

comment:1 Changed 7 years ago by mkommend

  • Milestone changed from HeuristicLab 3.3.14 to HeuristicLab 3.3.15

comment:2 Changed 6 years ago by mkommend

  • Owner set to jkarder
  • Status changed from new to assigned

comment:3 Changed 6 years ago by jkarder

r15120: added properties to access compiled instances of scripts

comment:4 Changed 6 years ago by jkarder

  • Owner changed from jkarder to abeham
  • Status changed from assigned to reviewing

comment:5 Changed 6 years ago by abeham

  • Owner changed from abeham to jkarder
  • Status changed from reviewing to readytorelease


comment:6 Changed 6 years ago by jkarder

  • Resolution set to done
  • Status changed from readytorelease to closed

r15260: merged r15120 into stable

Note: See TracTickets for help on using tickets.