Home > classes > @ssm > display.m

display

PURPOSE ^

DISPLAY display ssm object.

SYNOPSIS ^

function varargout = display(varargin)

DESCRIPTION ^

 DISPLAY display ssm object.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: DISPLAY display ssm object.

 MFILE INFO: Get information about this methods by calling
              >> ssm.getInfo('display')

              Get information about a specified set by calling:
              >> ssm.getInfo('display', 'Default')

 VERSION:     $Id: display.m,v 1.1 2008/08/06 18:35:26 ingo Exp $

 HISTORY:     30012007 Diepholz
                 Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 % DISPLAY display ssm object.
0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0003 %
0004 % DESCRIPTION: DISPLAY display ssm object.
0005 %
0006 % MFILE INFO: Get information about this methods by calling
0007 %              >> ssm.getInfo('display')
0008 %
0009 %              Get information about a specified set by calling:
0010 %              >> ssm.getInfo('display', 'Default')
0011 %
0012 % VERSION:     $Id: display.m,v 1.1 2008/08/06 18:35:26 ingo Exp $
0013 %
0014 % HISTORY:     30012007 Diepholz
0015 %                 Creation
0016 %
0017 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0018 
0019 function varargout = display(varargin)
0020 utils.helper.msg(utils.const.msg.MNAME, ['running ', mfilename]);
0021 %%% Check if this is a call for parameters
0022 if utils.helper.isinfocall(varargin{:})
0023   varargout{1} = getInfo(varargin{3});
0024   return
0025 end
0026 objs = utils.helper.collect_objects(varargin(:), 'ssm');
0027 txt = utils.helper.objdisp(objs);
0028 if nargout == 0
0029   for ii=1:length(txt)
0030     disp(txt{ii});
0031   end
0032 else
0033   varargout{1} = txt;
0034 end
0035 end
0036 
0037 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0038 %                               Local Functions                               %
0039 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0040 
0041 function ii = getInfo(varargin)
0042   if nargin == 1 && strcmpi(varargin{1}, 'None')
0043     sets = {};
0044     pl   = [];
0045   else
0046     sets = {'Default'};
0047     pl   = getDefaultPlist;
0048   end
0049   % Build info object
0050   ii = minfo(mfilename, 'ssm', '', 'Output', '$Id: display.m,v 1.1 2008/08/06 18:35:26 ingo Exp $', sets, pl);
0051 end
0052 
0053 function plo = getDefaultPlist()
0054   plo = plist();
0055 end
0056 
0057

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003