Opened 9 years ago
Closed 7 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: |
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 8 years ago by mkommend
- Milestone changed from HeuristicLab 3.3.14 to HeuristicLab 3.3.15
comment:2 Changed 7 years ago by mkommend
- Owner set to jkarder
- Status changed from new to assigned
comment:3 Changed 7 years ago by jkarder
comment:4 Changed 7 years ago by jkarder
- Owner changed from jkarder to abeham
- Status changed from assigned to reviewing
comment:5 Changed 7 years ago by abeham
- Owner changed from abeham to jkarder
- Status changed from reviewing to readytorelease
ok
comment:6 Changed 7 years ago by jkarder
- Resolution set to done
- Status changed from readytorelease to closed
Note: See
TracTickets for help on using
tickets.
r15120: added properties to access compiled instances of scripts