Interface ClusterStrategy

All Known Implementing Classes:
ExhaustiveClusterStrategy

public interface ClusterStrategy
Strategy interface for clustering SymbolCells and LetterCells into one or more CellClusters based on the implemented strategy.

Implementations of this interface define how cells are grouped together according to specific rules or patterns.

Author:
Kheagen Haskins
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    clusterLetters(Collection<? extends Cell> letterCells)
    Clusters a given collection of LetterCells into one or more CellClusters based on the implemented strategy.
    clusterSymbols(Collection<? extends Cell> symbolCells)
    Clusters a given collection of SymbolCells into one or more CellClusters based on the implemented strategy.
  • Method Details

    • clusterSymbols

      List<CellCluster> clusterSymbols(Collection<? extends Cell> symbolCells)
      Clusters a given collection of SymbolCells into one or more CellClusters based on the implemented strategy.
      Parameters:
      symbolCells - a collection of SymbolCells to be clustered.
      Returns:
      a list of CellClusters representing the grouped SymbolCells.
    • clusterLetters

      List<CellCluster> clusterLetters(Collection<? extends Cell> letterCells)
      Clusters a given collection of LetterCells into one or more CellClusters based on the implemented strategy.
      Parameters:
      letterCells - a collection of LetterCells to be clustered.
      Returns:
      a list of CellClusters representing the grouped LetterCells.