view m-toolbox/classes/@ssm/display.m @ 30:317b5f447f3e
database-connection-manager
Update workspaceBrowser
author |
Daniele Nicolodi <nicolodi@science.unitn.it> |
date |
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05) |
parents |
f0afece42f48 |
children |
|
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