Class CompressedPathDatabase
This class implements a compressed path database, retrieved from a pre-computed set of next moves
for cost-efficient path within a ISpatialGraphEnvironment.
Inheritance
System.Object
CompressedPathDatabase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Common.Collections.Graph.Algorithms
Assembly: Mars.Common.dll
Syntax
public class CompressedPathDatabase
Methods
| Improve this Doc View SourceCreatePathDatabase(ISpatialGraphEnvironment, Func<ISpatialNode, ISpatialEdge, ISpatialNode, Double>, SpatialGraphOptions)
This class implements a compressed path database, retrieved from a pre-computed set of next moves
for cost-efficient path within a ISpatialGraphEnvironment.
Declaration
public static CompressedPathDatabase CreatePathDatabase(ISpatialGraphEnvironment graph, Func<ISpatialNode, ISpatialEdge, ISpatialNode, double> heuristic, SpatialGraphOptions options)
Parameters
Type | Name | Description |
---|---|---|
ISpatialGraphEnvironment | graph | |
System.Func<ISpatialNode, ISpatialEdge, ISpatialNode, System.Double> | heuristic | |
SpatialGraphOptions | options |
Returns
Type | Description |
---|---|
CompressedPathDatabase |
CreateRoute(Int32, Int32)
Declaration
public Route CreateRoute(int start, int target)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | start | |
System.Int32 | target |
Returns
Type | Description |
---|---|
Route | Returns a new Route object or null if no route was found. |
Deserialize(ISpatialGraphEnvironment, Stream)
This class implements a compressed path database, retrieved from a pre-computed set of next moves
for cost-efficient path within a ISpatialGraphEnvironment.
Declaration
public static CompressedPathDatabase Deserialize(ISpatialGraphEnvironment graph, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
ISpatialGraphEnvironment | graph | |
System.IO.Stream | stream |
Returns
Type | Description |
---|---|
CompressedPathDatabase |
Serialize(Stream)
This class implements a compressed path database, retrieved from a pre-computed set of next moves
for cost-efficient path within a ISpatialGraphEnvironment.
Declaration
public void Serialize(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream |