classdef(Hidden,Sealed) NewModelEventData < event.EventData
    %NEWMODELEVENTDATA Event data containg the enumeration specifying the
    %selected model type
    
    %Copyright 2017 The MathWorks, Inc.
    
    properties
        RequestedModel
        Options
    end
    
    methods
        function this = NewModelEventData(mType,options)
            %Store a ModelTypes enumeration as event data
            import internal.EconModeler.Enumerations.ModelTypes
            if isa(mType,'ModelTypes')
               this.RequestedModel = mType;
            else
                error(message('econ:econModeler:NeedModelTypes'));
            end
            
            if nargin > 1
                validateattributes(options,{'struct'},{'scalar'});
                this.Options = options;
            end
        end
    end
    
end

