Home > classes > @provenance > display.m

display

PURPOSE ^

DISPLAY overload terminal display for provenance objects.

SYNOPSIS ^

function varargout = display(varargin)

DESCRIPTION ^

 DISPLAY overload terminal display for provenance objects.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: DISPLAY overload terminal display for provenance objects.

 M-FILE INFO: Get information about this methods by calling
              >> provenance.getInfo('display')

              Get information about a specified set-plist by calling:
              >> provenance.getInfo('display', 'set')

 VERSION:     $Id: display.m,v 1.12 2008/09/04 15:29:31 ingo Exp $

 HISTORY: 07-05-2007 M Hewitson
             Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 % DISPLAY overload terminal display for provenance objects.
0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0003 %
0004 % DESCRIPTION: DISPLAY overload terminal display for provenance objects.
0005 %
0006 % M-FILE INFO: Get information about this methods by calling
0007 %              >> provenance.getInfo('display')
0008 %
0009 %              Get information about a specified set-plist by calling:
0010 %              >> provenance.getInfo('display', 'set')
0011 %
0012 % VERSION:     $Id: display.m,v 1.12 2008/09/04 15:29:31 ingo Exp $
0013 %
0014 % HISTORY: 07-05-2007 M Hewitson
0015 %             Creation
0016 %
0017 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0018 
0019 function varargout = display(varargin)
0020 
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 
0027   % Get minfo objects
0028   objs = utils.helper.collect_objects(varargin(:), 'provenance');
0029 
0030   % get display text
0031   txt = utils.helper.objdisp(objs);
0032 
0033   % display the objects
0034   if nargout > 0
0035     varargout{1} = txt;
0036   elseif nargout == 0;
0037     for j=1:numel(txt)
0038       disp(txt{j});
0039     end
0040   end
0041 
0042 end
0043 
0044 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0045 %                               Local Functions                               %
0046 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0047 
0048 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0049 %
0050 % FUNCTION:    getInfo
0051 %
0052 % DESCRIPTION: Get Info Object
0053 %
0054 % HISTORY:     11-07-07 M Hewitson
0055 %                Creation.
0056 %
0057 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0058 
0059 function ii = getInfo(varargin)
0060   if nargin == 1 && strcmpi(varargin{1}, 'None')
0061     sets = {};
0062     pl   = [];
0063   else
0064     sets = {'Default'};
0065     pl   = getDefaultPlist;
0066   end
0067   % Build info object
0068   ii = minfo(mfilename, 'provenance', '', utils.const.categories.output, '$Id: display.m,v 1.12 2008/09/04 15:29:31 ingo Exp $', sets, pl);
0069 end
0070 
0071 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0072 %
0073 % FUNCTION:    getDefaultPlist
0074 %
0075 % DESCRIPTION: Get Default Plist
0076 %
0077 % HISTORY:     11-07-07 M Hewitson
0078 %                Creation.
0079 %
0080 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0081 
0082 function plo = getDefaultPlist()
0083   plo = plist();
0084 end
0085

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