Mercurial > hg > ltpda
comparison m-toolbox/classes/@LTPDAworkbench/minfo2algo.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % MINFO2ALGO converts an minfo object to an LTPDAalgorithm suitable to pass | |
2 % to a mpipeline object. | |
3 % | |
4 function a = minfo2algo(ii) | |
5 | |
6 a = mpipeline.jltpda.LTPDAalgorithm; | |
7 a.setMname(ii.mname); | |
8 a.setMcategory(ii.mcategory); | |
9 a.setMclass(ii.mclass); | |
10 a.setMinInputs(ii.argsmin); | |
11 a.setMaxInputs(ii.argsmax); | |
12 a.setMinOutputs(ii.outmin); | |
13 a.setMaxOutputs(ii.outmax); | |
14 if strcmp(ii.mclass, ii.mname) | |
15 process = helpUtils.helpProcess(1, 1, {ii.mclass}); | |
16 process.getHelpText; | |
17 a.setHelpTxt(process.helpStr); | |
18 else | |
19 process = helpUtils.helpProcess(1, 1, {[ii.mclass '.' ii.mname]}); | |
20 process.getHelpText; | |
21 a.setHelpTxt(process.helpStr); | |
22 end | |
23 % get default plist for this method | |
24 for pp = 1:numel(ii.sets) | |
25 set = ii.sets{pp}; | |
26 mpl = ii.plists(pp); | |
27 % build java plist | |
28 jpl = LTPDAworkbench.mpl2jpl(mpl); | |
29 a.addSetPlist(set,jpl); | |
30 end | |
31 | |
32 end |