Class ResolverCache
A resolver cache, caches resolved router points.
Inheritance
System.Object
ResolverCache
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class ResolverCache : IResolverCache
Constructors
ResolverCache(Int32)
Creates a new resolver cache.
Declaration
public ResolverCache(int size = 1000)
Parameters
|
System.Int32
size
The size of the cache. |
Methods
Add(IProfileInstance[], Single, Single, Func<RoutingEdge, Boolean>, Single, ResolveSettings, Result<RouterPoint>)
Adds to this cache, the closest point on the routing network that's routable for the given profiles.
Declaration
public void Add(IProfileInstance[] profileInstances, float latitude, float longitude, Func<RoutingEdge, bool> isBetter, float maxSearchDistance, ResolveSettings settings, Result<RouterPoint> routerPointResult)
Parameters
|
IProfileInstance[]
profileInstances
The profile instances. |
|
System.Single
latitude
The latitude. |
|
System.Single
longitude
The longitude. |
|
Func<RoutingEdge, System.Boolean>
isBetter
The is better function. |
|
System.Single
maxSearchDistance
The maximum search distance. |
|
ResolveSettings
settings
The settings, if any. |
|
Result<RouterPoint>
routerPointResult
The result to keep. |
Implements
TryGet(IProfileInstance[], Single, Single, Func<RoutingEdge, Boolean>, Single, ResolveSettings)
Tries to get from this cache, the closest point on the routing network that's routable for the given profiles.
Declaration
public Result<RouterPoint> TryGet(IProfileInstance[] profileInstances, float latitude, float longitude, Func<RoutingEdge, bool> isBetter, float maxSearchDistance, ResolveSettings settings)
Parameters
|
IProfileInstance[]
profileInstances
The profile instances. |
|
System.Single
latitude
The latitude. |
|
System.Single
longitude
The longitude. |
|
Func<RoutingEdge, System.Boolean>
isBetter
The is better function. |
|
System.Single
maxSearchDistance
The maximum search distance. |
|
ResolveSettings
settings
The settings, if any. |
Returns
|
Result<RouterPoint>
The resulting router point in cache. |