Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@models/mainFnc.m @ 43:bc767aaa99a8
CVS Update
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 11:09:25 +0100 |
parents | f0afece42f48 |
children |
comparison
equal
deleted
inserted
replaced
0:f0afece42f48 | 43:bc767aaa99a8 |
---|---|
18 % getModelDescription - a function handle to the getModelDescription function | 18 % getModelDescription - a function handle to the getModelDescription function |
19 % getModelDocumentation - a function handle to the getModelDocumentation function | 19 % getModelDocumentation - a function handle to the getModelDocumentation function |
20 % getVersion - a function handle to the getVersion function | 20 % getVersion - a function handle to the getVersion function |
21 % versionTable - a function handle to the versionTable function | 21 % versionTable - a function handle to the versionTable function |
22 % | 22 % |
23 % VERSION: $Id: mainFnc.m,v 1.3 2011/04/29 14:25:14 hewitson Exp $ | 23 % VERSION: $Id: mainFnc.m,v 1.4 2011/12/02 09:03:20 hewitson Exp $ |
24 % | 24 % |
25 % | 25 % |
26 function varargout = mainFnc(inputs, modelFilename, getModelDescription, getModelDocumentation, getVersion, versionTable) | 26 function varargout = mainFnc(inputs, modelFilename, getModelDescription, getModelDocumentation, getVersion, versionTable) |
27 | 27 |
28 % Process inputs | 28 % Process inputs |
37 varargout{1} = {info}; | 37 varargout{1} = {info}; |
38 return; | 38 return; |
39 end | 39 end |
40 | 40 |
41 % Build the object | 41 % Build the object |
42 hpl = copy(pl, 1); | |
43 out = fcn(pl); | 42 out = fcn(pl); |
44 | 43 |
45 % Set the method version string in the minfo object | 44 % Set the method version string in the minfo object |
46 if ~isempty(constructorInfo) && utils.helper.isSubclassOf(class(out), 'ltpda_uoh') | 45 if ~isempty(constructorInfo) && utils.helper.isSubclassOf(class(out), 'ltpda_uoh') |
47 % If this is a user-call via a constructor, then we add history | 46 % If this is a user-call via a constructor, then we add history |
48 out = addHistoryStep(out, constructorInfo, hpl); | 47 out = addHistoryStep(out, constructorInfo, pl); |
49 end | 48 end |
50 | 49 |
51 if nargout > 0 | 50 if nargout > 0 |
52 varargout{1} = {out, pl}; | 51 varargout{1} = {out, pl}; |
53 else | 52 else |