Package hlcd.parameters
Class CodeExporterParameters
java.lang.Object
hlcd.parameters.CodeExporterParameters
Stores the options of a code when being exported. The default constructor
will set all options to true and write the code object, the generator
matrix as \(\LaTeX\) and Matlab files, as well as the weight enumerator of
the code as a \(\LaTeX\) file.
- Since:
- 1.8
- Version:
- 1.0 (January 20th, 2022)
- Author:
- Maysara Al Jumaily
-
Constructor Summary
ConstructorsConstructorDescriptionWrites all data to file: the code object, the generator matrix as \(\LaTeX\) and Matlab files, as well as the weight enumerator of the code as a \(\LaTeX\) file.CodeExporterParameters(boolean writeCodeObject, boolean writeMatrixAsMatlab, boolean writeGMatrixAsLatex, boolean writeWeightEnumeratorAsLatex)Accepts the code being exported as well as the options associated with it. -
Method Summary
Modifier and TypeMethodDescriptionbooleanShould the code object be written to file.booleanShould write the generator matrix of the code as a.texfile.booleanShould write the generator matrix of the code as a.m(Matlab) file.booleanShould write the weight enumerator of the code be written as a.texfile.voidsetCodeObjectWritableStatus(boolean status)Sets the value of whether the code object should be written to file.voidsetGMatrixLatexWritableStatus(boolean status)Sets the value of whether the generator matrix should be written as a.texfile.voidsetGMatrixMatlabWritableStatus(boolean status)Sets the value of whether the generator matrix should be written as a.m(Matlab) file.voidsetWeightEnumeratorAsLatexStatus(boolean status)Sets the value of whether the weight enumerator should be written as a.texfile.
-
Constructor Details
-
CodeExporterParameters
public CodeExporterParameters()Writes all data to file: the code object, the generator matrix as \(\LaTeX\) and Matlab files, as well as the weight enumerator of the code as a \(\LaTeX\) file. -
CodeExporterParameters
public CodeExporterParameters(boolean writeCodeObject, boolean writeMatrixAsMatlab, boolean writeGMatrixAsLatex, boolean writeWeightEnumeratorAsLatex)Accepts the code being exported as well as the options associated with it.- Parameters:
writeCodeObject- should write the code as.binfilewriteMatrixAsMatlab- should write the code as a.mMatlab executable filewriteGMatrixAsLatex- should typeset the generator matrix as a.tex\(\LaTeX\) filewriteWeightEnumeratorAsLatex- should typeset the weight enumerator of the code as a.tex\(\LaTeX\) file
-
-
Method Details
-
isCodeObjectWritable
public boolean isCodeObjectWritable()Should the code object be written to file.- Returns:
trueif the code object should be written to file,falseotherwise
-
setCodeObjectWritableStatus
public void setCodeObjectWritableStatus(boolean status)Sets the value of whether the code object should be written to file.- Parameters:
status- the new value to set as
-
isGMatrixLatexWritable
public boolean isGMatrixLatexWritable()Should write the generator matrix of the code as a.texfile.- Returns:
trueif the generator matrix should be written as a.texfile,falseotherwise
-
setGMatrixLatexWritableStatus
public void setGMatrixLatexWritableStatus(boolean status)Sets the value of whether the generator matrix should be written as a.texfile.- Parameters:
status- the new value to set as
-
isWeightEnumeratorAsLatexWritable
public boolean isWeightEnumeratorAsLatexWritable()Should write the weight enumerator of the code be written as a.texfile.- Returns:
trueif the weight enumerator should be written as a.texfile,falseotherwise
-
setWeightEnumeratorAsLatexStatus
public void setWeightEnumeratorAsLatexStatus(boolean status)Sets the value of whether the weight enumerator should be written as a.texfile.- Parameters:
status- the new value to set as
-
isGMatrixMatlabWritable
public boolean isGMatrixMatlabWritable()Should write the generator matrix of the code as a.m(Matlab) file.- Returns:
trueif the generator matrix should be written as a.texfile,falseotherwise
-
setGMatrixMatlabWritableStatus
public void setGMatrixMatlabWritableStatus(boolean status)Sets the value of whether the generator matrix should be written as a.m(Matlab) file.- Parameters:
status- the new value to set as
-