% vdynblkGenRefExampCacheFiles.m
% Build all reference example .slxc

% Copyright 2016-2021 The MathWorks, Inc.
function vdynblkGenRefExampCacheFiles()
   
    examples(1).ProjectName= 'DblLaneChange';
    examples(1).TopModel = 'DLCReferenceApplication';
    examples(1).ProjectStartup = @(tmpDir) vdynblksDblLaneChangeStart(tmpDir);
    
    examples(2).ProjectName= 'IncreasingSteer';
    examples(2).TopModel = 'ISReferenceApplication';
    examples(2).ProjectStartup = @(tmpDir) vdynblksIncreasingSteeringStart(tmpDir);
    
    examples(3).ProjectName= 'SweptSineSteering';
    examples(3).TopModel = 'SSSReferenceApplication';
    examples(3).ProjectStartup = @(tmpDir) vdynblksSweptSineSteeringStart(tmpDir);
    
    examples(4).ProjectName= 'ConstRadius';
    examples(4).TopModel = 'CRReferenceApplication';
    examples(4).ProjectStartup = @(tmpDir) vdynblksConstRadiusStart(tmpDir);
            
    examples(5).ProjectName= 'BrakingTest';
    examples(5).TopModel = 'BTReferenceApplication';
    examples(5).ProjectStartup = @(tmpDir) vdynblksBrakingStart(tmpDir);

    examples(6).ProjectName= 'MotoLongBrakingTest';
    examples(6).TopModel = 'MotoLongBTReferenceApplication';
    examples(6).ProjectStartup = @(tmpDir) vdynblksMotoLongBrakingStart(tmpDir);
    
    relCacheDir = fullfile(matlabroot, 'toolbox', 'vdynblks','vdynsolution','vdynsolutionCache');
    genExampleCacheFiles(examples, relCacheDir);
end 
