Package export.MLExport
Class MLDetectionsManager
java.lang.Object
export.MLExport.MLDetectionsManager
- All Implemented Interfaces:
 PamDataUnitExporter
Handles the conversion of data units into MATLAB structures.
- Author:
 - Jamie Macaulay
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the exporter.us.hebi.matlab.mat.types.StructdataUnits2MAT(List<PamDataUnit> dataUnits) Sort a list of data units into lists of the same type of units.booleanexportData(File fileName, List<PamDataUnit> dataUnits, boolean append) Export the data to a folder.Get the extension for the output file typeGet the ikonli icon string for the exporter.Get a list of all the currently implemented MARTLAB data exporters.getName()Get the name of the exporter.javafx.scene.layout.PaneAn optional JavaFX pane that displays additional options for the user.An optional panel that displays additional options for the user.booleanhasCompatibleUnits(Class dataUnitType) Check whether a particular data unit class is compatiblebooleanhasCompatibleUnits(List<PamDataUnit> dataUnits) Check whether there are compatible data units to be exported.booleanCheck whether and exporter needs a new filestatic voidvoidCalled whenever a new export run is prepared. 
- 
Field Details
- 
extension
- See Also:
 
 - 
dataFormat
 
 - 
 - 
Constructor Details
- 
MLDetectionsManager
public MLDetectionsManager() 
 - 
 - 
Method Details
- 
getMlDataUnitsExport
Get a list of all the currently implemented MARTLAB data exporters.- Returns:
 - data exporters.
 
 - 
hasCompatibleUnits
Description copied from interface:PamDataUnitExporterCheck whether a particular data unit class is compatible- Specified by:
 hasCompatibleUnitsin interfacePamDataUnitExporter- Parameters:
 dataUnitType- - the data unit type to test.- Returns:
 - true if it can be exported.
 
 - 
exportData
Description copied from interface:PamDataUnitExporterExport the data to a folder.- Specified by:
 exportDatain interfacePamDataUnitExporter- Parameters:
 fileName- - the file to export todataUnits- - the data units to export.- Returns:
 - true if exported successfully.
 
 - 
hasCompatibleUnits
Check whether there are compatible data units to be exported.- Parameters:
 dataUnits- - the data unit list- Returns:
 - true if MATLAB export is possible for the current data units.
 
 - 
dataUnits2MAT
Sort a list of data units into lists of the same type of units. Convert to a list of structures.- Parameters:
 dataUnits- - a list of data units to convert to matlab structures.- Returns:
 - list of list of MATLAB strucutures ready for saving to .mat file.
 
 - 
getFileExtension
Description copied from interface:PamDataUnitExporterGet the extension for the output file type- Specified by:
 getFileExtensionin interfacePamDataUnitExporter- Returns:
 - the extension for the file type e.g. "mat"
 
 - 
getIconString
Description copied from interface:PamDataUnitExporterGet the ikonli icon string for the exporter.- Specified by:
 getIconStringin interfacePamDataUnitExporter- Returns:
 - the ikon string.
 
 - 
getName
Description copied from interface:PamDataUnitExporterGet the name of the exporter.- Specified by:
 getNamein interfacePamDataUnitExporter- Returns:
 - the name of the exporter.
 
 - 
main
 - 
close
public void close()Description copied from interface:PamDataUnitExporterClose the exporter.- Specified by:
 closein interfacePamDataUnitExporter
 - 
isNeedsNewFile
public boolean isNeedsNewFile()Description copied from interface:PamDataUnitExporterCheck whether and exporter needs a new file- Specified by:
 isNeedsNewFilein interfacePamDataUnitExporter- Returns:
 - true if we need a new file.
 
 - 
getOptionsPanel
Description copied from interface:PamDataUnitExporterAn optional panel that displays additional options for the user.- Specified by:
 getOptionsPanelin interfacePamDataUnitExporter- Returns:
 - additional options panel - can be null.
 
 - 
getOptionsPane
public javafx.scene.layout.Pane getOptionsPane()Description copied from interface:PamDataUnitExporterAn optional JavaFX pane that displays additional options for the user.- Specified by:
 getOptionsPanein interfacePamDataUnitExporter- Returns:
 - pane with additonal options - can be null.
 
 - 
prepareExport
public void prepareExport()Description copied from interface:PamDataUnitExporterCalled whenever a new export run is prepared.- Specified by:
 prepareExportin interfacePamDataUnitExporter
 
 -