Class MLAnnotationsManager

java.lang.Object
export.MLExport.MLAnnotationsManager

public class MLAnnotationsManager extends Object
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 Details Link icon

    • MLAnnotationsManager Link icon

      public MLAnnotationsManager()
  • Method Details Link icon

    • addAnnotations Link icon

      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 Link icon

      public static String getAnnotationNameMAT(DataAnnotationType annotationType)
      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 Link icon

      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 -