function createDataset(this, model)
    %% CREATEDATASET function creates a dataset given a model name
    % It checks if the model is a valid SimulinkModel and initializes a simulink event listener
    % which will listen to simulation start event
    
    %   Copyright 2016-2020 The MathWorks, Inc.
    
    datasetObj  = fxptds.FPTDataset(model);
    this.ModelDatasetMap.insert(model, datasetObj);
    
    % get all loaded models and verify that the model given is valid
    this.updateModelHandleMap(model);
    
end
