Package export.MLExport
Class MLAnnotationsManager
java.lang.Object
export.MLExport.MLAnnotationsManager
Adds annotations to data units. Annotations need to be managed differently.
There can be different annotation for different data units and data units of the same
type won't necessarily have the same annotations. Therefore the annotation types are
used to figure out which type of annotations are available and these are added
to the structure irrespective if whether there is data or not.
- Author:
- Jamie Macaulay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotations
(us.hebi.matlab.mat.types.Struct mlStruct, int index, PamDataUnit dataUnit) Add annotations to a MATLAB structure.void
addAnnotations
(us.hebi.matlab.mat.types.Struct mlStruct, int index, PamDataUnit dataUnit, DataAnnotation dataAnnotation, DataAnnotationType annotationType) Add an annotation to an existing MATLAB structure.static String
getAnnotationNameMAT
(DataAnnotationType annotationType) Get the name for the annotation i.e.
-
Constructor Details
-
Method Details
-
addAnnotations
public void addAnnotations(us.hebi.matlab.mat.types.Struct mlStruct, int index, PamDataUnit dataUnit) Add annotations to a MATLAB structure.- Parameters:
mlStruct
- - the structure to add to.index
- - index of the struct .dataUnit
- - the data unit with annotations to add.
-
getAnnotationNameMAT
Get the name for the annotation i.e. the name to be used in the struct.- Parameters:
annotationType
- - the annotation type- Returns:
- the anme to be used in the struct for the annotation
-
addAnnotations
public void addAnnotations(us.hebi.matlab.mat.types.Struct mlStruct, int index, PamDataUnit dataUnit, DataAnnotation dataAnnotation, DataAnnotationType annotationType) Add an annotation to an existing MATLAB structure.- Parameters:
mlStruct
-index
-dataUnit
-dataAnnotation
-annotationType
-
-