public interface SearchContext
Provides context for an entire pathfinding search operation. This context is typically created once per search request and passed to processor lifecycle methods (e.g., Processor.initializeSearch(SearchContext)) and is accessible via the NodeEvaluationContext.
  • Method Details

    • getStartPathPosition

      PathPosition getStartPathPosition()
      Returns the starting PathPosition of the path search.
      Returns:
      The start PathPosition.
    • getTargetPathPosition

      PathPosition getTargetPathPosition()
      Returns the target (or goal) PathPosition of the path search.
      Returns:
      The target PathPosition.
    • getPathfinderConfiguration

      PathfinderConfiguration getPathfinderConfiguration()
      Returns the configuration used for this pathfinding search. Processors can use this to access settings like heuristic weights, max length, etc.
      Returns:
      The PathfinderConfiguration instance.
    • getNavigationPointProvider

      NavigationPointProvider getNavigationPointProvider()
      Returns the NavigationPointProvider configured for the search. Processors can use this to query intrinsic properties of PathPositions or the environment, aiding in validation or cost calculation. This is crucial for understanding traversability or terrain types.
      Returns:
      The NavigationPointProvider instance.
    • getSharedData

      Map<String,Object> getSharedData()
      Returns a mutable map that can be used by Processors to share data throughout the lifecycle of this search operation. This map is initialized once per search.
      Returns:
      A modifiable map for sharing data. Keys are typically strings.