Package hlcd.parameters
Class CodeDisplayParameters
java.lang.Object
hlcd.parameters.CodeDisplayParameters
A wrapper class containing the information of what should be displayed on
console as output.
- Since:
- 1.8
- Version:
- 1.0 (February 24th, 2022)
- Author:
- Maysara Al Jumaily
-
Constructor Summary
ConstructorsConstructorDescriptionUses the default values which are to print the generator matrix, the determinant of the generator matrix, the statistics of the code and the file path of where the data will be written to.CodeDisplayParameters(boolean printGeneratorMatrix, boolean printGeneratorGPrimeDet, boolean printGPrime, boolean printCombinations, boolean printWeightEnumerator, boolean printCodeStatistics, boolean printFilePath)Allows to choose the data to be displayed to console. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the code statistics should be printed on console.booleanWhether the codewords in the code should be printed on console.booleanWhether the directory used to write the files to should be printed on console.booleanWhether the generator matrix should be printed on console.booleanWhether \(G^{\prime} = G^{\kern0pt}_{k \times n} \overline{G}^{T}_{n \times k}\) should be printed on console.booleanWhether the determinant of \(G^{\prime} = G^{\kern0pt}_{k \times n} \overline{G}^{T}_{n \times k}\) should be printed on console.booleanWhether the weight enumerator of the code should be printed on console.
-
Constructor Details
-
CodeDisplayParameters
public CodeDisplayParameters()Uses the default values which are to print the generator matrix, the determinant of the generator matrix, the statistics of the code and the file path of where the data will be written to. -
CodeDisplayParameters
public CodeDisplayParameters(boolean printGeneratorMatrix, boolean printGeneratorGPrimeDet, boolean printGPrime, boolean printCombinations, boolean printWeightEnumerator, boolean printCodeStatistics, boolean printFilePath)Allows to choose the data to be displayed to console.- Parameters:
printGeneratorMatrix- should the generator matrix be printedprintGeneratorGPrimeDet- should the determinant of the G prime which is \(G^{\prime} = G^{\kern0pt}_{k \times n} \overline{G}^{T}_{n \times k}\)printGPrime- print \(G^{\prime} = G^{\kern0pt}_{k \times n} \overline{G}^{T}_{n \times k}\)printCombinations- print all the codewords in the codeprintWeightEnumerator- print the weight enumerator of the codeprintCodeStatistics- print the statistics of the codeprintFilePath- print the filepath used to write the files to
-
-
Method Details
-
shouldPrintGeneratorMatrix
public boolean shouldPrintGeneratorMatrix()Whether the generator matrix should be printed on console.- Returns:
trueif the generator matrix should be printed on console,falseotherwise
-
shouldPrintGPrimeDet
public boolean shouldPrintGPrimeDet()Whether the determinant of \(G^{\prime} = G^{\kern0pt}_{k \times n} \overline{G}^{T}_{n \times k}\) should be printed on console.- Returns:
trueif the determinant of \(G^{\prime} = G^{\kern0pt}_{k \times n} \overline{G}^{T}_{n \times k}\) should be printed on console,falseotherwise
-
shouldPrintGPrime
public boolean shouldPrintGPrime()Whether \(G^{\prime} = G^{\kern0pt}_{k \times n} \overline{G}^{T}_{n \times k}\) should be printed on console.- Returns:
trueif \(G^{\prime} = G^{\kern0pt}_{k \times n} \overline{G}^{T}_{n \times k}\) should be printed on console,falseotherwise
-
shouldPrintCombinations
public boolean shouldPrintCombinations()Whether the codewords in the code should be printed on console.- Returns:
trueif the codewords in the code should be printed on console,falseotherwise
-
shouldPrintWeightEnumerator
public boolean shouldPrintWeightEnumerator()Whether the weight enumerator of the code should be printed on console.- Returns:
trueif the weight enumerator of the code should be printed on console,falseotherwise
-
shouldPrintCodeStatistics
public boolean shouldPrintCodeStatistics()Whether the code statistics should be printed on console.- Returns:
trueif the code statistics of the code should be printed on console,falseotherwise
-
shouldPrintFilePath
public boolean shouldPrintFilePath()Whether the directory used to write the files to should be printed on console.- Returns:
trueif the directory used to write the files to should be printed on console,falseotherwise
-