Package com.jgalgo.alg
Interface AlgorithmBuilderBase
-
- All Known Subinterfaces:
ColoringAlgo.Builder
,CyclesEnumerator.Builder
,EdgeCover.Builder
,LowestCommonAncestorDynamic.Builder
,MatchingAlgo.Builder
,MaximalCliquesEnumerator.Builder
,MaximumFlow.Builder
,MinimumCostFlow.Builder
,MinimumMeanCycle.Builder
,MinimumSpanningTree.Builder
,ShortestPathAllPairs.Builder
,ShortestPathHeuristicST.Builder
,ShortestPathSingleSource.Builder
,ShortestPathST.Builder
,StronglyConnectedComponentsAlgo.Builder
,TreePathMaxima.Builder
public interface AlgorithmBuilderBase
A base interface for all algorithm builders.Algorithms such as
ShortestPathSingleSource
define their own builder as an inner interface, for exampleShortestPathSingleSource.Builder
. These builder interfaces extend this interface. This base interface does not contain methods which are useful to the user, rather its used for thesetOption(String, Object)
method which is used internally for debugging and benchmarking.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
setOption(String key, Object value)
[TL;DR Don't call me!] Set an option.
-
-
-
Method Detail
-
setOption
default void setOption(String key, Object value)
[TL;DR Don't call me!] Set an option.The builder might support different options to customize its implementation. These options never change the behavior of the algorithm, only its internal implementation. The possible options are not exposed as 'public' because they are not part of the API and may change in the future.
These options are mainly for debug and benchmark purposes.
- Parameters:
key
- the option keyvalue
- the option value
-
-