comparison m-toolbox/classes/+utils/@models/built_in_model_template.m @ 45:a59cdb8aaf31 database-connection-manager

Merge
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Tue, 06 Dec 2011 19:07:22 +0100
parents bc767aaa99a8
children
comparison
equal deleted inserted replaced
42:f90d4f666cc7 45:a59cdb8aaf31
18 % 18 %
19 % 19 %
20 % REFERENCES: 20 % REFERENCES:
21 % 21 %
22 % 22 %
23 % VERSION: $Id: built_in_model_template.m,v 1.1 2011/04/29 07:05:54 hewitson Exp $ 23 % VERSION: $Id: built_in_model_template.m,v 1.2 2011/12/02 09:15:11 hewitson Exp $
24 % 24 %
25 % HISTORY: 25 % HISTORY:
26 % 26 %
27 % 27 %
28 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 28 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
97 error('unknown inputs'); 97 error('unknown inputs');
98 end 98 end
99 return; 99 return;
100 end 100 end
101 101
102 % build model 102 %--- Input plist
103 pl = varargin{1}; 103 % Changes to this plist will be captured in the history
104 104 historyPlist = varargin{1};
105 % This can be locally modified without the changes being reflected in the history
106 localPlist = copy(historyPlist, 1);
107
105 % Get parameters 108 % Get parameters
106 p = pl.find('My Parameter'); 109 p = localPlist.find('My Parameter');
107 110
108 % Build the model object the way you want 111 % Build the model object the way you want
109 112
110 obj = <CLASS>(); 113 obj = <CLASS>();
111 114
122 %-------------------------------------------------------------------------- 125 %--------------------------------------------------------------------------
123 % Get Version 126 % Get Version
124 %-------------------------------------------------------------------------- 127 %--------------------------------------------------------------------------
125 function v = getVersion 128 function v = getVersion
126 129
127 v = '$Id: built_in_model_template.m,v 1.1 2011/04/29 07:05:54 hewitson Exp $'; 130 v = '$Id: built_in_model_template.m,v 1.2 2011/12/02 09:15:11 hewitson Exp $';
128 131
129 end 132 end