Interface SearchContext
- All Known Implementing Classes:
SearchContextImpl
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 Summary
Modifier and TypeMethodDescriptionReturns the environment-specific context associated with the pathfinding operation.Returns the NavigationPointProvider configured for the search.Returns the configuration used for this pathfinding search.Returns a mutable map that can be used byProcessors to share data throughout the lifecycle of this search operation.Returns the starting PathPosition of the path search.Returns the target (or goal) PathPosition of the path search.
-
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.
-
getEnvironmentContext
EnvironmentContext getEnvironmentContext()Returns the environment-specific context associated with the pathfinding operation. This can provide additional domain-specific information or behavior needed during the search process.- Returns:
- The EnvironmentContext instance associated with this search, or
nullif no context is available.
-