www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conbase/getInputRoles.m

    function roles = getInputRoles(con)
%GETINPUTROLES Get the list of role that each input active factor plays
%
%  ROLES = GETINPUTROLES(CON)
%
%  ROLES will be a cell-str of size [1, nActiveFactors( con )].
%
%  The role for an input is any special quality that it has over the other
%  inputs. For example, in a table constraint we distinguish between the input
%  and out to the table.
%
%  Sub-classes whose active inputs have special roles should overload this
%  method.
%
%  See also CONBASE.

%  Copyright 2004-2005 The MathWorks, Inc.


roles = cell(1, nActiveFactors( con ));
for n = 1:nActiveFactors( con )
    roles{n} = sprintf('Input %d', n);
end

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|