classdef(Abstract) PrecisionExtractionStrategy < handle
    %% PRECISIONEXTRACTIONSTRATEGY class
    % This is a parent class for all precision extraction strategy classes.
    % This class hierarchy implements a chain of responsibility pattern
    % chaining together all the strategies needed to extract precision information
    % from a result.
    
    % Copyright 2018 The MathWorks, Inc.
    
    properties(SetAccess = private)
        nextStrategy % the next strategy in the chain
    end
    
    methods(Sealed)
        function setNextStrategy(this, nextStrategy)
            % API to set the next strategy
            this.nextStrategy = nextStrategy;
            
        end
        
    end
    
    methods(Abstract)
        % API to get the data through the chain
        [data, isWholeNumber] = getData(this, member);
    end
    
end

