[Matlab] Switch to explicit class specific hndl functions. Deprecate generic hndl functions

This commit is contained in:
Bryan W. Weber 2014-07-18 14:34:54 +00:00
parent 519bf12faa
commit 0c1688a361
9 changed files with 17 additions and 4 deletions

View file

@ -5,8 +5,8 @@ if nargin == 3
error(['Flow devices can only be installed between reactors or' ...
' reservoirs'])
end
i = hndl(upstream);
j = hndl(downstream);
i = reactor_hndl(upstream);
j = reactor_hndl(downstream);
ok = flowdevicemethods(2, f.index, i, j);
if ok < 0
error(geterr)

View file

@ -32,7 +32,7 @@ if ~isa(r, 'XML_Node')
end
k.owner = 1;
ixml = hndl(r);
ixml = xml_hndl(r);
% get the integer indices used to find the stored objects
% representing the phases participating in the mechanism.

View file

@ -1,2 +1,4 @@
function i = hndl(k)
warning('This function is deprecated in favor of kinetics_hndl.m')
i = k.id;

View file

@ -1,2 +1,4 @@
function i = hndl(r)
warning('This function is deprecated in favor of reactor_hndl.m')
i = r.index;

View file

@ -8,7 +8,7 @@ if nargin == 1
return
elseif isa(r, 'XML_Node')
t.owner = 1;
hr = hndl(r);
hr = xml_hndl(r);
t.tp_id = thermo_get(hr, 0);
if t.tp_id < 0
error(geterr);

View file

@ -1,2 +1,4 @@
function i = hndl(p)
warning('This function is deprecated in favor of thermo_hndl.m')
i = p.tp_id;

View file

@ -1,2 +1,4 @@
function n = hndl(a)
warning('This function is deprecated in favor of trans_hndl')
n = a.id;

View file

@ -1,2 +1,4 @@
function i = hndl(x)
warning('This function is deprecated in favor of xml_hndl.m')
i = x.id;

View file

@ -0,0 +1,3 @@
function i = xml_hndl(x)
i = x.id;