﻿% COMPILER GENERATED CODE
% THIS WILL BE OVERWRITTEN AT EACH GENERATION
% EDIT AT YOUR OWN RISK

classdef FrameworkFactory
    methods (Static)
        function [outputData, outputMeta] = CreateNewOutput(mapper) % Mapper
            outputData = mapper.Unmapper.FillOutputData();
            outputMeta = mapper.Unmapper.FillOutputMeta();
        end
        function mappingHelper = CreateMapper(fw)
            import ECAClientUtilities.*;
            addpath('Model/');
            mappingHelper = MappingHelper(fw);
            mapper = Mapper(mappingHelper);
            mappingHelper.MapFunction = @mapper.Map;
            fnPtr = @() FrameworkFactory.CreateNewOutput(mapper);
            Algorithm.CreateNewOutput(fnPtr);
        end
        function framework = Create()
            import ECAClientFramework.*;
            framework = Framework();
            framework.Initialize(@FrameworkFactory.CreateMapper);
        end
    end
end