User Tools

Site Tools


thinkgeo.mapsuite.routing.routingalgorithm

This is an old revision of the document!


ThinkGeo.MapSuite.Routing.RoutingAlgorithm

This class is the base class for all types of RoutingAlgorithm.

Inheritance Hierarchy

Members Summary

Public Constructors

Protected Constructors

RoutingAlgorithm()

This is the default constructor for the RoutingAlgorithm and should be called by inherited classes.

Remarks

This is the default constructor for the RoutingAlgorithm and should be called by inherited classes.

Parameters

Public Methods

GetRoute(RoutingSource,String,String)

This method returns a RoutingResult based on the extent you provided.

Remarks

This method is the concrete wrapper for the abstract method GetRouteCore.This method gets the routing result based on the extent you provided. In this method, you are repsonsible for implementing a routing algorithm to get the path between two routeSegments.

Return Value
  • Type:Collection<RouteSegment>
  • Description:Routing result that contains path information.
Parameters
  • routingSource
    • Description:The routing source that contains the routeSegments to route on.
  • startFeatureId
    • Type:String
    • Description:The feature ID which represents the starting routeSegment.
  • endFeatureId
    • Type:String
    • Description:The feature ID which represents the ending routeSegment.

ToString()

N/A

Remarks

N/A

Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

N/A

Remarks

N/A

Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

N/A

Remarks

N/A

Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

N/A

Remarks

N/A

Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

GetRouteCore(RoutingSource,String,String)

This method returns a RoutingResult based on the extent you provided.

Remarks

This abstract method is called from the concrete public method GetRoute.This method gets the routing result based on the extent you provided. In this method, you are repsonsible for implementing a routing algorithm to get the path between two routeSegments.

Return Value
  • Type:Collection<RouteSegment>
  • Description:Routing result that contains path information.
Parameters
  • routingSource
    • Description:The routing source that contains the routeSegments to route on.
  • startFeatureId
    • Type:String
    • Description:The feature ID which represents the starting routeSegment.
  • endFeatureId
    • Type:String
    • Description:The feature ID which represents the ending routeSegment.

OnFindingRoute(FindingRouteRoutingAlgorithmEventArgs)

This method allows you to raise the FindingRoute event from a derived class.

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

Finalize()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

GeographyUnit

N/A

Remarks

N/A

Return Value

DistanceUnit

N/A

Remarks

N/A

Return Value

Protected Properties

Public Events

FindingRoute This event is called after finding the adjacent routeSegments.

Remarks

This event is called after finding the adjacent routeSegments. It wil be called many times during the route.

Event Arguments:FindingRouteRoutingAlgorithmEventArgs

thinkgeo.mapsuite.routing.routingalgorithm.1442545592.txt.gz · Last modified: 2015/09/18 03:06 by admin