Interface PathfinderFactory
public interface PathfinderFactory
A factory interface for creating
Pathfinder
instances.-
Method Summary
Modifier and TypeMethodDescriptioncreatePathfinder
(PathfinderConfiguration configuration) Creates a newPathfinder
instance with the given configuration.default Pathfinder
createPathfinder
(PathfinderConfiguration configuration, PathfinderInitializer initializer) Creates a newPathfinder
instance with the given configuration and initializer.
-
Method Details
-
createPathfinder
Creates a newPathfinder
instance with the given configuration.- Parameters:
configuration
- The configuration for the pathfinder.- Returns:
- A new
Pathfinder
instance.
-
createPathfinder
default Pathfinder createPathfinder(PathfinderConfiguration configuration, PathfinderInitializer initializer) Creates a newPathfinder
instance 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
Pathfinder
instance.
-