Mercurial > hg > ltpda
comparison m-toolbox/classes/@ssm/display.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 % DISPLAY display ssm object. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: DISPLAY display ssm object. | |
5 % | |
6 % <a href="matlab:utils.helper.displayMethodInfo('ssm', 'display')">Parameters Description</a> | |
7 % | |
8 % VERSION: $Id: display.m,v 1.11 2011/04/08 08:56:22 hewitson Exp $ | |
9 % | |
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
11 | |
12 function varargout = display(varargin) | |
13 utils.helper.msg(utils.const.msg.MNAME, ['running ', mfilename]); | |
14 %%% Check if this is a call for parameters | |
15 if utils.helper.isinfocall(varargin{:}) | |
16 varargout{1} = getInfo(varargin{3}); | |
17 return | |
18 end | |
19 objs = utils.helper.collect_objects(varargin(:), 'ssm'); | |
20 txt = utils.helper.objdisp(objs); | |
21 if nargout == 0 | |
22 for ii=1:length(txt) | |
23 disp(txt{ii}); | |
24 end | |
25 else | |
26 varargout{1} = txt; | |
27 end | |
28 end | |
29 | |
30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
31 % Local Functions % | |
32 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
33 | |
34 function ii = getInfo(varargin) | |
35 if nargin == 1 && strcmpi(varargin{1}, 'None') | |
36 sets = {}; | |
37 pl = []; | |
38 else | |
39 sets = {'Default'}; | |
40 pl = getDefaultPlist; | |
41 end | |
42 % Build info object | |
43 ii = minfo(mfilename, 'ssm', 'ltpda', utils.const.categories.output, '$Id: display.m,v 1.11 2011/04/08 08:56:22 hewitson Exp $', sets, pl); | |
44 ii.setOutmin(0); | |
45 end | |
46 | |
47 function plo = getDefaultPlist() | |
48 plo = plist(); | |
49 end | |
50 | |
51 |