function tsoutInd = getts(h,tsList)

%% Searches a transaction object for actions on a specified timeseries
%% or cell array or time series. Returns a logical array (tsoutInd) 
%% representing the occurance of changes to each timeseries in the
%% transaction
if isa(tsList,'tsdata.timeseries')
    tsoutInd = localfindts(h,tsList);
elseif iscell(tsList)
    tsoutInd = false([length(tsList) 1]);
    for k=1:length(tsList)
        tsoutInd(k) = localfindts(h,tsList{k});
    end
end

function I = localfindts(this,ts)

I = false;
if ~isempty(find(this.tsTransaction,'Object',ts)) || ...
        ~isempty(find(this.metaTransaction,'Object',ts.timeInfo))
    I = true;
end
