Class SearchContextImpl

java.lang.Object
de.bsommerfeld.pathetic.engine.pathfinder.processing.SearchContextImpl
All Implemented Interfaces:
SearchContext

public class SearchContextImpl extends Object implements SearchContext
  • Constructor Details

  • Method Details

    • getStartPathPosition

      public PathPosition getStartPathPosition()
      Description copied from interface: SearchContext
      Returns the starting PathPosition of the path search.
      Specified by:
      getStartPathPosition in interface SearchContext
      Returns:
      The start PathPosition.
    • getTargetPathPosition

      public PathPosition getTargetPathPosition()
      Description copied from interface: SearchContext
      Returns the target (or goal) PathPosition of the path search.
      Specified by:
      getTargetPathPosition in interface SearchContext
      Returns:
      The target PathPosition.
    • getPathfinderConfiguration

      public PathfinderConfiguration getPathfinderConfiguration()
      Description copied from interface: SearchContext
      Returns the configuration used for this pathfinding search. Processors can use this to access settings like heuristic weights, max length, etc.
      Specified by:
      getPathfinderConfiguration in interface SearchContext
      Returns:
      The PathfinderConfiguration instance.
    • getNavigationPointProvider

      public NavigationPointProvider getNavigationPointProvider()
      Description copied from interface: SearchContext
      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.
      Specified by:
      getNavigationPointProvider in interface SearchContext
      Returns:
      The NavigationPointProvider instance.
    • getSharedData

      public Map<String,Object> getSharedData()
      Description copied from interface: SearchContext
      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.
      Specified by:
      getSharedData in interface SearchContext
      Returns:
      A modifiable map for sharing data. Keys are typically strings.
    • getEnvironmentContext

      public EnvironmentContext getEnvironmentContext()
      Description copied from interface: SearchContext
      Returns 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:
      getEnvironmentContext in interface SearchContext
      Returns:
      The EnvironmentContext instance associated with this search, or null if no context is available.