classdef ModelBlockPILDataHandler < coder.connectivity.PILDataHandler
% ModelBlockPILDataHandler provides access to get/set the SILPILInterface
% for the ModelBlock workflow
%
% This is an undocumented class. Its methods and properties are
% likely to change without warning from one release to the next.

% Copyright 2019 The MathWorks, Inc.

methods(Access = protected)
function pilData = getPILDataImplementation(~, block)
%Resolve block handle
blockHandle = coder.connectivity.SimulinkInterface.getResolvedBlockHandle(block);
pilData = get_param(blockHandle, 'PILData');
end

function setPILDataImplementation(~, block, data)
set_param(block, 'PILData', data);
end
end
end