Class SinglePathStrategy

Direct Known Subclasses:
ImageLabelStrategy, MarkProposerStrategy

public abstract class SinglePathStrategy extends AnnotatorStrategy
A base class for implementations of AnnotatorStrategy where a single unique path exists for every annotation.
Author:
Owen Feehan
  • Constructor Details

    • SinglePathStrategy

      public SinglePathStrategy()
  • Method Details

    • pathFor

      public Path pathFor(ProvidesStackInput input) throws OperationFailedException
      Description copied from class: AnnotatorStrategy
      The path to where an annotation file for a particular input would be located.

      If the annotation is stored on multiple files, this refers to the principle file that must be unique.

      Specified by:
      pathFor in class AnnotatorStrategy
      Parameters:
      input - the input to find an annotation file for.
      Returns:
      the path to where the annotation would be expected to be.
      Throws:
      OperationFailedException - if the path cannot be successfully determined.
    • getPathAnnotation

      public DerivePath getPathAnnotation()
      Derives the path to the corresponding annotation files, given a path to the image to be annotated.
    • setPathAnnotation

      public void setPathAnnotation(DerivePath pathAnnotation)
      Derives the path to the corresponding annotation files, given a path to the image to be annotated.