Mercurial > hg > ltpda
view m-toolbox/classes/@ssm/display.m @ 44:409a22968d5e default
Add unit tests
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 18:42:11 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
% DISPLAY display ssm object. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % DESCRIPTION: DISPLAY display ssm object. % % <a href="matlab:utils.helper.displayMethodInfo('ssm', 'display')">Parameters Description</a> % % VERSION: $Id: display.m,v 1.11 2011/04/08 08:56:22 hewitson Exp $ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function varargout = display(varargin) utils.helper.msg(utils.const.msg.MNAME, ['running ', mfilename]); %%% Check if this is a call for parameters if utils.helper.isinfocall(varargin{:}) varargout{1} = getInfo(varargin{3}); return end objs = utils.helper.collect_objects(varargin(:), 'ssm'); txt = utils.helper.objdisp(objs); if nargout == 0 for ii=1:length(txt) disp(txt{ii}); end else varargout{1} = txt; end end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Local Functions % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function ii = getInfo(varargin) if nargin == 1 && strcmpi(varargin{1}, 'None') sets = {}; pl = []; else sets = {'Default'}; pl = getDefaultPlist; end % Build info object 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); ii.setOutmin(0); end function plo = getDefaultPlist() plo = plist(); end