Package hlcd.testing.matlabChecker
Class TesterParameters
java.lang.Object
hlcd.testing.matlabChecker.TesterParameters
A wrapper class containing the parameters needed to write a Matlab
script for testing the program. This is only used in the testing package.
- Since:
- 1.8
- Version:
- 1.0 (February 18th, 2022)
- Author:
- Maysara Al Jumaily
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe extension of the files generated (which should be.m)longReturns the number of iterations which is the number of tests in a single file.bytegetMaxK()Returns the maximum valuekcan be.bytegetMaxN()Returns the maximum valuencan be.bytegetMinK()Returns the minimum valuekcan be.bytegetMinN()Returns the minimum valuencan be.Returns the directory name that will be created to store the files generated into.getPath()Returns the path to write the files to without appending the directory name that will be used.longgetRuns()Returns the number of runs which is the same as the number of test files created.Returns the name of the script file that will execute all the test files.getTitle()Returns the title of the script that will be written as a comment in the Matlab script.
-
Constructor Details
-
TesterParameters
public TesterParameters(String title, byte minK, byte maxK, byte minN, byte maxN, long runs, long iterations, String path, String newDirectoryName, String scriptName, String extension)Initializes the object properties.- Parameters:
title- the title to include in the Matlab file as a commentminK- the minimum value \(k\) can bemaxK- the maximum value \(k\) can beminN- the minimum value \(n\) can bemaxN- the maximum value \(n\) can beruns- the number of runs specified (the number of test files generated)iterations- the number of tests in a single file generatespath- the path to store the.mfiles generatednewDirectoryName- the name of the directory to create that will be used to store all the files generatedscriptName- the name of the script that runs all files generatedextension- the extension of each file generated (it should be".m")
-
-
Method Details
-
getPath
Returns the path to write the files to without appending the directory name that will be used.- Returns:
- the path to write the files to without appending the directory name that will be used
-
getNewDirectoryName
Returns the directory name that will be created to store the files generated into.- Returns:
- the directory name that will be created to store the files generated into
-
getTitle
Returns the title of the script that will be written as a comment in the Matlab script.- Returns:
- the title of the script that will be written as a comment
-
getMinK
public byte getMinK()Returns the minimum valuekcan be.- Returns:
- the minimum value
kcan be
-
getMaxK
public byte getMaxK()Returns the maximum valuekcan be.- Returns:
- the maximum value
kcan be
-
getMinN
public byte getMinN()Returns the minimum valuencan be.- Returns:
- the minimum value
ncan be
-
getMaxN
public byte getMaxN()Returns the maximum valuencan be.- Returns:
- the maximum value
ncan be
-
getRuns
public long getRuns()Returns the number of runs which is the same as the number of test files created.- Returns:
- the number of runs which is the same as the number of test files created
-
getIterations
public long getIterations()Returns the number of iterations which is the number of tests in a single file.- Returns:
- number of iterations which is the number of tests in a single file
-
getScriptName
Returns the name of the script file that will execute all the test files.- Returns:
- the name of the script file
-
getExtension
The extension of the files generated (which should be.m)- Returns:
- the extension of the files generated
-