Opened 19 months ago

Closed 6 days 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:

Description

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: https://groups.google.com/forum/#!topic/heuristiclab/DlxjktBsgrA

Change History (6)

comment:1 Changed 12 months ago by mkommend

  • Milestone changed from HeuristicLab 3.3.14 to HeuristicLab 3.3.15

comment:2 Changed 4 weeks ago by mkommend

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

comment:3 Changed 3 weeks ago by jkarder

r15120: added properties to access compiled instances of scripts

comment:4 Changed 3 weeks ago by jkarder

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

comment:5 Changed 2 weeks ago by abeham

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

ok

comment:6 Changed 6 days 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.