Mercurial > hg > ltpda
comparison m-toolbox/classes/@ltpda_uo/ltpda_uo.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 % LTPDA_UO is the abstract ltpda base class for ltpda user object classes. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: LTPDA_UO is the ltpda base class for ltpda user object classes. | |
5 % This class is an abstract class and it is not possible to create | |
6 % an instance of this class. | |
7 % ALL ltpda user object classes inherit this 'abstract' class. | |
8 % | |
9 % SUPER CLASSES: ltpda_obj | |
10 % | |
11 % SUB CLASSES: ltpda_uoh, plist | |
12 % | |
13 % LTPDA_UO PROPERTIES: | |
14 % | |
15 % Protected Properties (read only) | |
16 % UUID - Universally Unique Identifier of 128-bit | |
17 % description - description of the object | |
18 % mdlfile - model xml file of the LTPDAworkbench | |
19 % name - name of the object | |
20 % | |
21 % VERSION: $Id: ltpda_uo.m,v 1.60 2011/09/16 04:59:06 hewitson Exp $ | |
22 % | |
23 % SEE ALSO: ltpda_obj, ltpda_uoh, plist | |
24 % | |
25 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
26 | |
27 classdef (Hidden = true) ltpda_uo < ltpda_obj | |
28 | |
29 | |
30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
31 % Property definition % | |
32 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
33 | |
34 %---------- Public (read/write) Properties ---------- | |
35 properties | |
36 end | |
37 | |
38 %---------- Protected read-only Properties ---------- | |
39 properties (SetAccess = protected) | |
40 name = ''; % name of the object | |
41 description = ''; % description of the object | |
42 mdlfile = ''; % model xml file of the LTPDAworkbench | |
43 UUID = ''; % Universally Unique Identifier of 128-bit | |
44 end | |
45 | |
46 %---------- Private Properties ---------- | |
47 properties (GetAccess = protected, SetAccess = protected) | |
48 end | |
49 | |
50 %---------- Abstract Properties ---------- | |
51 properties (Abstract = true, SetAccess = protected) | |
52 end | |
53 | |
54 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
55 % Check property setting % | |
56 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
57 | |
58 methods | |
59 function set.description(obj, val) | |
60 if isempty(val) | |
61 return; | |
62 end | |
63 if ~ischar(val) | |
64 error('### The value for the property ''description'' should be a string.'); | |
65 end | |
66 obj.description = val; | |
67 end | |
68 function set.mdlfile(obj, val) | |
69 if ~ischar(val) | |
70 error('### The value for the property ''mdlfile'' must be a string'); | |
71 end | |
72 obj.mdlfile = val; | |
73 end | |
74 end | |
75 | |
76 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
77 % Constructor % | |
78 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
79 | |
80 methods | |
81 function obj = ltpda_uo(varargin) | |
82 end | |
83 end | |
84 | |
85 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
86 % Methods (static) % | |
87 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
88 | |
89 methods (Static) | |
90 | |
91 varargout = getBuiltInModels(varargin) | |
92 varargout = retrieve(varargin) | |
93 varargout = update_struct(varargin) | |
94 | |
95 function ii = getInfo(varargin) | |
96 ii = utils.helper.generic_getInfo(varargin{:}, 'ltpda_uo'); | |
97 end | |
98 | |
99 function out = VEROUT() | |
100 out = '$Id: ltpda_uo.m,v 1.60 2011/09/16 04:59:06 hewitson Exp $'; | |
101 end | |
102 | |
103 function out = SETS() | |
104 out = {'Default', ... | |
105 'From MAT File', ... | |
106 'From XML File', ... | |
107 'From Repository', ... | |
108 'From Built-in Model'}; | |
109 end | |
110 | |
111 function out = buildplist(out, set) | |
112 switch lower(set) | |
113 case 'default' | |
114 case 'from repository' | |
115 out = out.append(plist.FROM_REPOSITORY_PLIST); | |
116 case 'from xml file' | |
117 out = out.append(plist.FROM_XML_FILE); | |
118 case 'from mat file' | |
119 out = out.append(plist.FROM_MAT_FILE); | |
120 case 'from built-in model' | |
121 out = out.append(plist.FROM_BUILT_IN); | |
122 end | |
123 end | |
124 | |
125 end | |
126 | |
127 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
128 % Methods (static, private) % | |
129 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
130 | |
131 methods (Static, Access = private) | |
132 sinfo = submitDialog(sinfo, pl) | |
133 pl = convertSinfo2Plist(pl, sinfo) | |
134 end | |
135 | |
136 | |
137 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
138 % Methods (static, protected) % | |
139 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
140 | |
141 methods (Static, Access = protected) | |
142 end | |
143 | |
144 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
145 % Methods (abstract) % | |
146 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
147 | |
148 methods (Abstract) | |
149 varargout = string(varargin) | |
150 end | |
151 | |
152 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
153 % Methods (public) % | |
154 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
155 | |
156 methods | |
157 varargout = save(varargin) | |
158 varargout = bsubmit(varargin); | |
159 varargout = submit(varargin); | |
160 varargout = update(varargin); | |
161 end | |
162 | |
163 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
164 % Methods (public, hidden) % | |
165 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
166 | |
167 methods (Hidden = true) | |
168 varargout = setUUID(varargin) | |
169 end | |
170 | |
171 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
172 % Methods (protected) % | |
173 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
174 | |
175 methods (Access = protected) | |
176 varargout = setPropertyValue(varargin) | |
177 varargout = fromRepository(varargin) | |
178 varargout = fromModel(varargin) | |
179 varargout = fromStruct(varargin) | |
180 varargout = fromDom(varargin) | |
181 varargout = processSetterValues(varargin) | |
182 end | |
183 | |
184 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
185 % Methods (private) % | |
186 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
187 | |
188 methods (Access = protected) | |
189 end | |
190 | |
191 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
192 % Methods (static) % | |
193 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
194 | |
195 methods (Static = true) | |
196 varargout = load(varargin) | |
197 end | |
198 end | |
199 |