classdef(Hidden,Sealed) TimeSeriesEventData < event.EventData
    %IMESERIESEVENTDATA Event data containing a time series object
    
    %Copyright 2017 The MathWorks, Inc.
    
    properties
        TimeSeries
    end
    
    methods
        function this = TimeSeriesEventData(timeSeries)
            %Store one or more time series objects as event data
            import internal.EconModeler.EconComponents.AbstractTimeSeries
             if isa(timeSeries,'AbstractTimeSeries')|| isempty(timeSeries)
                this.TimeSeries = timeSeries;
             else
                error(message('econ:econModeler:NeedTimeSeries'));
             end
        end
        
    end
    
end

