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 TypeMethodDescriptiondefault voidfinalizeSearch(SearchContext context) Called once at the end of a path search operation, regardless of whether a path was found or the search was aborted.default voidinitializeSearch(SearchContext context) Called once at the beginning of a path search operation.
-
Method Details
-
initializeSearch
Called once at the beginning of a path search operation. Implementations can use this to set up initial state in theshared data mapor perform other prerequisite tasks.The default implementation does nothing.
- Parameters:
context- The context for the entire search operation.
-
finalizeSearch
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.
-