code: public AStarPathFactory<GP, ST, PT> setPathFactory(AStarPathFactory<GP, ST, PT> factory) {
  		final AStarPathFactory<GP, ST, PT> old = this.pathFactory;
  		this.pathFactory = factory;
  		return old;
  	}
docs: Set the path factory used by the A* algorithm.
  
  @param factory is the new factory.
  @return the old factory
  @see #setPathType(Class)