Interface Processor

All Known Subinterfaces:
NodeCostProcessor, NodeValidationProcessor

public interface Processor
Base interface for pathfinding processors. It defines lifecycle methods that can be implemented by concrete processors to initialize or finalize resources or states related to a path search.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called once at the end of a path search operation, regardless of whether a path was found or the search was aborted.
    default void
    Called once at the beginning of a path search operation.
  • Method Details

    • initializeSearch

      default void initializeSearch(SearchContext context)
      Called once at the beginning of a path search operation. Implementations can use this to set up initial state in the shared data map or perform other prerequisite tasks.

      The default implementation does nothing.

      Parameters:
      context - The context for the entire search operation.
    • finalizeSearch

      default void finalizeSearch(SearchContext context)
      Called once at the end of a path search operation, regardless of whether a path was found or the search was aborted. Implementations can use this for cleanup tasks or final processing.

      The default implementation does nothing.

      Parameters:
      context - The context for the entire search operation.