function schema
% Defines properties for @system class (user visible).
% 
%   Snapshot of fixed model, used by @design class.

%   Author(s): P. Gahinet
%   Copyright 1986-2015 The MathWorks, Inc.
c = schema.class(findpackage('sisodata'),'system');
c.Handle = 'off';

% Model name
schema.prop(c,'Name','ustring');     
% Model value (LTI or double)
p = schema.prop(c,'Value','MATLAB array');
p.SetFunction = @LocalSetValue;
% Variable is the name of the variable used to specify the
% component value (e.g., Gservo)
p = schema.prop(c,'Variable','ustring');     
p.Visible = 'off';

% Version
p = schema.prop(c,'Version','double');  
p.AccessFlags.PublicGet = 'off';
p.AccessFlags.PublicSet = 'off';
p.FactoryValue = 1.0;


function v = LocalSetValue(this,v)
% Checks incoming model value
if ~(isa(v,'double') || isa(v,'DynamicSystem'))
   ctrlMsgUtils.error('Control:compDesignTask:FixedModelData')
end
