Mercurial > hg > ltpda
comparison testing/utp_1.1/utps/ssm/utp_ssm_model_DFACS.m @ 44:409a22968d5e default
Add unit tests
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 18:42:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
43:bc767aaa99a8 | 44:409a22968d5e |
---|---|
1 % UTP_SSM_MODEL_DFACS a set of UTPs for the DFACS SSM built-in model. | |
2 % | |
3 % M Hewitson 26-07-10 | |
4 % | |
5 % $Id: utp_ssm_model_DFACS.m,v 1.2 2010/07/27 07:13:59 hewitson Exp $ | |
6 % | |
7 | |
8 % <MethodDescription> | |
9 % | |
10 % The built-in model 'DFACS' represents different incarnations of the controllers | |
11 % for LPF. | |
12 % | |
13 % </MethodDescription> | |
14 | |
15 function results = utp_ssm_model_DFACS(varargin) | |
16 | |
17 % Check the inputs | |
18 if nargin == 0 | |
19 | |
20 % Some keywords | |
21 class = 'ssm'; | |
22 model = 'DFACS'; | |
23 | |
24 results = []; | |
25 disp('******************************************************'); | |
26 disp(['**** Running UTPs for ' class '/' model]); | |
27 disp('******************************************************'); | |
28 | |
29 % Run the tests | |
30 results = [results utp_901(class, model, plist)]; % check model name | |
31 results = [results utp_902(class, model, plist)]; % check model description | |
32 results = [results utp_903(class, model, plist)]; % check model responds to 'DIM' | |
33 | |
34 % results = [results utp_920(class, model, plist)]; % check model bode response | |
35 | |
36 disp('Done.'); | |
37 disp('******************************************************'); | |
38 | |
39 elseif nargin == 1 % Check for UTP functions | |
40 if strcmp(varargin{1}, 'isutp') | |
41 results = 1; | |
42 else | |
43 results = 0; | |
44 end | |
45 else | |
46 error('### Incorrect inputs') | |
47 end | |
48 | |
49 | |
50 | |
51 | |
52 | |
53 end |