Mercurial > hg > ltpda
comparison m-toolbox/classes/@LTPDARepositoryManager/display.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % DISPLAY implement terminal display for the repository manager. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: DISPLAY implement terminal display for the repository | |
5 % manager. | |
6 % | |
7 % CALL: display(rm) | |
8 % rm % without a semicolon | |
9 % | |
10 % <a href="matlab:web(LTPDARepositoryManager.getInfo('display').tohtml, '-helpbrowser')">Parameters Description</a> | |
11 % | |
12 % VERSION: $Id: display.m,v 1.3 2011/04/08 08:56:35 hewitson Exp $ | |
13 % | |
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
15 | |
16 function varargout = display(varargin) | |
17 | |
18 % Check if this is a call for parameters | |
19 if utils.helper.isinfocall(varargin{:}) | |
20 varargout{1} = getInfo(varargin{3}); | |
21 return | |
22 end | |
23 | |
24 rm = varargin{1}; | |
25 rm.manager | |
26 end | |
27 | |
28 %-------------------------------------------------------------------------- | |
29 % Get Info Object | |
30 %-------------------------------------------------------------------------- | |
31 function ii = getInfo(varargin) | |
32 if nargin == 1 && strcmpi(varargin{1}, 'None') | |
33 sets = {}; | |
34 pl = []; | |
35 else | |
36 sets = {'Default'}; | |
37 pl = getDefaultPlist; | |
38 end | |
39 % Build info object | |
40 ii = minfo(mfilename, 'LTPDARepositoryManager', 'ltpda', utils.const.categories.output, '$Id: display.m,v 1.3 2011/04/08 08:56:35 hewitson Exp $', sets, pl); | |
41 ii.setModifier(false); | |
42 ii.setOutmin(0); | |
43 end | |
44 | |
45 %-------------------------------------------------------------------------- | |
46 % Get Default Plist | |
47 %-------------------------------------------------------------------------- | |
48 function pl = getDefaultPlist() | |
49 pl = plist(); | |
50 end |