Class FinderExtensions
Inheritance
FinderExtensions
Assembly: AnyPath.dll
Syntax
public static class FinderExtensions
Methods
AddOption<T, TNode, TOption>(T, TOption, TNode, TNode)
Declaration
public static T AddOption<T, TNode, TOption>(this T finder, TOption option, TNode start, TNode goal) where T : IGetFinderOptions<TOption, TNode> where TNode : unmanaged, IEquatable<TNode>
Parameters
Type |
Name |
Description |
T |
finder |
|
TOption |
option |
|
TNode |
start |
|
TNode |
goal |
|
Returns
Type Parameters
Name |
Description |
T |
|
TNode |
|
TOption |
|
AddOptions<T, TNode, TOption>(T, IEnumerable<TOption>, TNode, Func<TOption, TNode>)
Declaration
public static T AddOptions<T, TNode, TOption>(this T finder, IEnumerable<TOption> options, TNode start, Func<TOption, TNode> optionToLocation) where T : IGetFinderOptions<TOption, TNode> where TNode : unmanaged, IEquatable<TNode>
Parameters
Type |
Name |
Description |
T |
finder |
|
IEnumerable<TOption> |
options |
|
TNode |
start |
|
Func<TOption, TNode> |
optionToLocation |
|
Returns
Type Parameters
Name |
Description |
T |
|
TNode |
|
TOption |
|
AddRange<T, TNode, TOption>(T, IEnumerable<TOption>, TNode, Func<TOption, TNode>)
Declaration
public static T AddRange<T, TNode, TOption>(this T finderOptions, IEnumerable<TOption> options, TNode start, Func<TOption, TNode> optionToLocation) where T : IFinderOptions<TOption, TNode> where TNode : unmanaged, IEquatable<TNode>
Parameters
Type |
Name |
Description |
T |
finderOptions |
|
IEnumerable<TOption> |
options |
|
TNode |
start |
|
Func<TOption, TNode> |
optionToLocation |
|
Returns
Type Parameters
Name |
Description |
T |
|
TNode |
|
TOption |
|
AddRequest<T, TNode>(T, TNode, TNode)
Declaration
public static T AddRequest<T, TNode>(this T finder, TNode start, TNode goal) where T : IGetFinderMultiRequests<TNode> where TNode : unmanaged, IEquatable<TNode>
Parameters
Type |
Name |
Description |
T |
finder |
|
TNode |
start |
|
TNode |
goal |
|
Returns
Type Parameters
AddRequests<T, TNode>(T, IEnumerable<TNode>)
Declaration
public static T AddRequests<T, TNode>(this T finder, IEnumerable<TNode> stops) where T : IGetFinderMultiRequests<TNode> where TNode : unmanaged, IEquatable<TNode>
Parameters
Type |
Name |
Description |
T |
finder |
|
IEnumerable<TNode> |
stops |
|
Returns
Type Parameters
AddStop<T, TNode>(T, TNode)
Declaration
public static T AddStop<T, TNode>(this T finder, TNode stop) where T : IGetFinderStops<TNode> where TNode : unmanaged, IEquatable<TNode>
Parameters
Type |
Name |
Description |
T |
finder |
|
TNode |
stop |
|
Returns
Type Parameters
AddStops<T, TNode>(T, IEnumerable<TNode>)
Declaration
public static T AddStops<T, TNode>(this T finder, IEnumerable<TNode> stops) where T : IGetFinderStops<TNode> where TNode : unmanaged, IEquatable<TNode>
Parameters
Type |
Name |
Description |
T |
finder |
|
IEnumerable<TNode> |
stops |
|
Returns
Type Parameters
SetComparer<T, TOption>(T, IComparer<TOption>)
Declaration
public static T SetComparer<T, TOption>(this T finder, IComparer<TOption> comparer) where T : ISetFinderOptionComparer<TOption>
Parameters
Type |
Name |
Description |
T |
finder |
|
IComparer<TOption> |
comparer |
|
Returns
Type Parameters
Name |
Description |
T |
|
TOption |
|
SetEdgeMod<T, TMod>(T, TMod)
Declaration
public static T SetEdgeMod<T, TMod>(this T finder, TMod mod) where T : ISetFinderEdgeMod<TMod> where TMod : struct
Parameters
Type |
Name |
Description |
T |
finder |
|
TMod |
mod |
|
Returns
Type Parameters
SetGraph<T, TGraph>(T, TGraph)
Declaration
public static T SetGraph<T, TGraph>(this T finder, TGraph graph) where T : IFinder<TGraph> where TGraph : IGraph
Parameters
Type |
Name |
Description |
T |
finder |
|
TGraph |
graph |
|
Returns
Type Parameters
Name |
Description |
T |
|
TGraph |
|
SetHeuristicProvider<T, TH>(T, TH)
Declaration
public static T SetHeuristicProvider<T, TH>(this T finder, TH provider) where T : ISetFinderHeuristicProvider<TH> where TH : struct
Parameters
Type |
Name |
Description |
T |
finder |
|
TH |
provider |
|
Returns
Type Parameters
SetMaxRetries<T>(T, int)
Declaration
public static T SetMaxRetries<T>(this T finder, int maxRetries) where T : ISetFinderMaxRetries
Parameters
Type |
Name |
Description |
T |
finder |
|
int |
maxRetries |
|
Returns
Type Parameters
SetPathProcessor<T, TProc>(T, TProc)
Declaration
public static T SetPathProcessor<T, TProc>(this T finder, TProc processor) where T : ISetFinderPathProcessor<TProc> where TProc : struct
Parameters
Type |
Name |
Description |
T |
finder |
|
TProc |
processor |
|
Returns
Type Parameters
SetReserver<T, TOption>(T, IOptionReserver<TOption>)
Declaration
public static T SetReserver<T, TOption>(this T finder, IOptionReserver<TOption> reserver) where T : ISetFinderOptionReserver<TOption>
Parameters
Returns
Type Parameters
Name |
Description |
T |
|
TOption |
|
SetStartAndGoal<T, TNode>(T, TNode, TNode)
Declaration
public static T SetStartAndGoal<T, TNode>(this T finder, TNode start, TNode goal) where T : IGetFinderStops<TNode> where TNode : unmanaged, IEquatable<TNode>
Parameters
Type |
Name |
Description |
T |
finder |
|
TNode |
start |
|
TNode |
goal |
|
Returns
Type Parameters
SetValidator<T, TOption>(T, IOptionValidator<TOption>)
Declaration
public static T SetValidator<T, TOption>(this T finder, IOptionValidator<TOption> validator) where T : ISetFinderOptionValidator<TOption>
Parameters
Returns
Type Parameters
Name |
Description |
T |
|
TOption |
|