comparison m-toolbox/classes/+utils/@models/getInfo.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 % GETINFO Get Info Object
2 %
3 % CALL: utils.models.getInfo(modelname, @getModelDescription, @versionTable, version, @getFileVersion)
4 %
5 %
6 function ii = getInfo(varargin)
7 modelname = varargin{1};
8 getVersion = varargin{5};
9 pls = utils.models.getDefaultPlist(varargin{2:end});
10 % Build info object
11 parts = regexp(modelname, '_', 'split');
12 ii = minfo(modelname, parts{1}, 'ltpda', utils.const.categories.constructor, getVersion(), {}, pls);
13 ii.setDescription(utils.models.getDescription(varargin{2:end}));
14 fcn = utils.models.functionForVersion(varargin{2:end});
15 ii.addChildren(fcn('info'));
16 end