Interface SubmissionPathPlanner<S extends VilleSubmissionFields>

All Known Implementing Classes:
FlatSubmissionPathPlanner, RangeSubmissionPathPlanner

public interface SubmissionPathPlanner<S extends VilleSubmissionFields>
Strategy interface for planning directory paths for a list of submissions.
  • Method Summary

    Modifier and Type
    Method
    Description
    planPaths(List<S> submissions, Path rootDir)
    Plans directory paths for the given submissions under the specified root directory.
  • Method Details

    • planPaths

      Map<S,Path> planPaths(List<S> submissions, Path rootDir)
      Plans directory paths for the given submissions under the specified root directory.
      Parameters:
      submissions - the list of submissions to organize (assumed sorted as needed)
      rootDir - the root directory under which all submission folders will be created (e.g., "clones/")
      Returns:
      a map of each submission to its target Path under the root directory
      Throws:
      IllegalStateException - if a path collision occurs (unlikely if getFolderName ensures uniqueness)