function schema()
% Class constructor function.

%   Copyright 1994-2000 The MathWorks, Inc.
%   $Revision: 1.2 $ $Date: 2000/08/08 17:02:42 $

% Specify name of class to be created:
userClass = 'UserDefined.Parameter';

% Specify name of class from which user class is derived:
deriveFromClass = 'Simulink.Parameter';

% Call generalized constructor function for
% user-defined enumerations used by this class
create_user_enumtype('colors', {'red', 'green', 'blue'});

% Specify new properties to include in user class:
addProperties = {
                  'UserMATLABArray1', 'MATLAB array',  []; ...
                  'UserMATLABArray2', 'MATLAB array',  ''; ...
                  'UserDouble',       'double',        0; ...
                  'UserInt32',        'int32',         0; ...
                  'UserOnOff',        'on/off',        'off'; ...
                  'UserString',       'string',        ''; ...
                  'UserColorEnum',    'colors',        'red'; ...
                };
	      
% Call generalized class creation function (built-in)
create_user_class(userClass, deriveFromClass, addProperties);
