classdef InvalidateNodesStrategy < fxptds.WorkflowTopology.Strategy
    %% INVALIDATENODESSTRATEGY class

    % Copyright 2021 The MathWorks, Inc.

    % Access is protected and extended to Facade and to the test class
    methods (Access = {?fxptds.WorkflowTopology.Strategy, ?fxptds.WorkflowTopology.Facade, ?WorkflowTopologyTestCase})
        function execute(this)

            targetName = this.FPTRunID;

            % invalidate the target name and all
            % dependent nodes
            nodesToInvalidate = this.getNodesToInvalidate(targetName);
            this.invalidateNodes(nodesToInvalidate);
        end

    end

end

