Package hlcd.run
Class ListExecutor
java.lang.Object
hlcd.run.ListExecutor
Runs the list of parameters and test all the parameters read (parameters
with \(d \ge 3\)). It has the ability to increase or decrease the minimum
distance read by some offset. The
offset is used when the minimum
distance needs to be incremented/decremented, otherwise, keep
offset as 0 to find the true minimum distance specified in the
file. The offset is used when checking if there exists a more optimal
value than the current optimal value found or a suboptimal value that is
less than the best minimum distance found. It will run each parameter read
and use the default properties that can be found in the
TestParameter class. There will a .txt file summary generated
stating whether a code is valid or not for each parameter. A typical list
that can be read is found in the documentation of ParametersLoader.
//minimal example to execute this class:
public static void main(String[] args) {
System.out.println("Running ListExecutor...");
String savePath = Paths.DEFAULT_PATH;
String parametersPath = Paths.PARAMETERS_PATH;
byte offset = 0;
boolean beep = true;
ListExecutor pes = new ListExecutor(
savePath, parametersPath, offset, beep
);
System.out.println("ListExecutor completed.");
}- Since:
- 1.8
- Version:
- 1.0 (February 19th, 2022)
- Author:
- Maysara Al Jumaily
- See Also:
TestParameter
-
Constructor Summary
ConstructorsConstructorDescriptionListExecutor(String savePath, String parameterPath, byte offset, boolean beep)Initializes the test of running optimal parameters read from a file. -
Method Summary
-
Constructor Details
-
ListExecutor
Initializes the test of running optimal parameters read from a file.- Parameters:
savePath- the path to save the summary of the run as well as the data that will be exportedparameterPath- the path of the parameters fileoffset- the value for incrementing/decrementing the optimal distance found. Keep it as0if the true optimal distance needs to be testedbeep- plays a beep sound to alter a single test has completed
-
-
Method Details
-
main
Executes the program.- Parameters:
args- the arguments specified but will be ignored
-