Home > classes > @provenance > display.m

display

PURPOSE ^

DISPLAY overload terminal display for provenance objects.

SYNOPSIS ^

function txt = display(ps)

DESCRIPTION ^

 DISPLAY overload terminal display for provenance objects.

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

 DESCRIPTION: DISPLAY overload terminal display for provenance objects.

 VERSION: $Id: display.m,v 1.6 2007/07/30 12:18:28 ingo Exp $

 HISTORY: 07-05-2007 M Hewitson
             Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function txt = display(ps)
0002 % DISPLAY overload terminal display for provenance objects.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: DISPLAY overload terminal display for provenance objects.
0007 %
0008 % VERSION: $Id: display.m,v 1.6 2007/07/30 12:18:28 ingo Exp $
0009 %
0010 % HISTORY: 07-05-2007 M Hewitson
0011 %             Creation
0012 %
0013 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0014 
0015 txt = {};
0016 
0017 ps = reshape(ps, numel(ps), 1);
0018 
0019 for i=1:length(ps)
0020   p = ps(i);
0021   banner = sprintf('-------- provenance %02d ------------', i);
0022   txt{end+1} = banner;
0023 
0024   txt{end+1} = ' ';
0025 
0026   txt{end+1} = sprintf('     creator:  %s', get(p, 'creator'));
0027   txt{end+1} = sprintf('     created:  %s', char(get(p, 'created')));
0028   txt{end+1} = sprintf('          ip:  %s', get(p, 'ip'));
0029   txt{end+1} = sprintf('    hostname:  %s', get(p, 'hostname'));
0030   txt{end+1} = sprintf('          os:  %s', get(p, 'os'));
0031   txt{end+1} = sprintf('  MATLAB ver:  %s', get(p, 'matlab_version'));
0032   txt{end+1} = sprintf('Sig Proc ver:  %s', get(p, 'sigproc_version'));
0033   txt{end+1} = sprintf('   LTPDA ver:  %s', get(p, 'ltpda_version'));
0034 
0035   banner_end(1:length(banner)) = '-';
0036   txt{end+1} = banner_end;
0037 
0038   txt{end+1} = ' ';
0039   txt{end+1} = ' ';
0040 end
0041 
0042 if nargout == 0
0043   for ii=1:length(txt)
0044     disp(txt{ii});
0045   end
0046 end
0047 
0048 % END

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003