Class SearchContextImpl
java.lang.Object
de.bsommerfeld.pathetic.engine.pathfinder.processing.SearchContextImpl
- All Implemented Interfaces:
SearchContext
-
Constructor Summary
ConstructorsConstructorDescriptionSearchContextImpl(PathPosition startPathPosition, PathPosition targetPathPosition, PathfinderConfiguration pathfinderConfiguration, NavigationPointProvider navigationPointProvider, EnvironmentContext environmentContext) -
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.
-
Constructor Details
-
Method Details
-
getStartPathPosition
Description copied from interface:SearchContextReturns the starting PathPosition of the path search.- Specified by:
getStartPathPositionin interfaceSearchContext- Returns:
- The start PathPosition.
-
getTargetPathPosition
Description copied from interface:SearchContextReturns the target (or goal) PathPosition of the path search.- Specified by:
getTargetPathPositionin interfaceSearchContext- Returns:
- The target PathPosition.
-
getPathfinderConfiguration
Description copied from interface:SearchContextReturns the configuration used for this pathfinding search. Processors can use this to access settings like heuristic weights, max length, etc.- Specified by:
getPathfinderConfigurationin interfaceSearchContext- Returns:
- The PathfinderConfiguration instance.
-
getEnvironmentContext
Description copied from interface:SearchContextReturns the environment-specific context associated with the pathfinding operation. This can provide additional domain-specific information or behavior needed during the search process.- Specified by:
getEnvironmentContextin interfaceSearchContext- Returns:
- The EnvironmentContext instance associated with this search, or
nullif no context is available.
-