Interface PathfinderFactory
- All Known Implementing Classes:
AStarPathfinderFactory
public interface PathfinderFactory
A factory interface for creating
Pathfinder instances.-
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance of aPathfinderwith a defaultPathfinderConfiguration.createPathfinder(PathfinderConfiguration configuration) Creates a newPathfinderinstance with the given configuration.default PathfindercreatePathfinder(PathfinderConfiguration configuration, PathfinderInitializer initializer) Creates a newPathfinderinstance with the given configuration and initializer.
-
Method Details
-
createPathfinder
Pathfinder createPathfinder()Creates a new instance of aPathfinderwith a defaultPathfinderConfiguration.- Returns:
- A new
Pathfinderinstance.
-
createPathfinder
Creates a newPathfinderinstance with the given configuration.- Parameters:
configuration- The configuration for the pathfinder.- Returns:
- A new
Pathfinderinstance.
-
createPathfinder
default Pathfinder createPathfinder(PathfinderConfiguration configuration, PathfinderInitializer initializer) Creates a newPathfinderinstance with the given configuration and initializer. This method first creates a pathfinder using thecreatePathfinder(PathfinderConfiguration)method and then initializes it using the providedPathfinderInitializer.- Parameters:
configuration- The configuration for the pathfinder.initializer- The initializer to use for initializing the pathfinder.- Returns:
- A new, initialized
Pathfinderinstance.
-