thinkgeo.mapsuite.routing.routingtransactionbuffer

This is an old revision of the document!


ThinkGeo.MapSuite.Routing.RoutingTransactionBuffer

<!– Class –> This class represents the holding place for transactions that have not yet been committed.

Remarks

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodRoutingTransactionBuffer This is the class constructor.
Public MethodRoutingTransactionBuffer Dictionary<String, RouteSegment>, Collection<String>, Dictionary<String, RouteSegment> This is the class constructor.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodAddRouteSegment RouteSegment This method allows you to add RouteSegments to the transaction buffer.
Public MethodClear This method will clear all the items in AddBuffer, EditBuffer and DeleteBuffer.
Public MethodDeleteRouteSegment String This method allows you to add a placeholder to represent a RouteSegment to be deleted.
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToString Object
Public MethodUpdateFeature RouteSegment This method allows you to add a Feature to be updated.

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyAddBuffer Dictionary<String,RouteSegment> This property gets the dictionary buffer that holds RouteSegments to be added.
Public PropertyDeleteBuffer Collection<String> This property gets the dictionary buffer that holds RouteSegments to be deleted.
Public PropertyUpdateBuffer Dictionary<String,RouteSegment> This property gets the dictionary buffer that holds RouteSegments to be updated.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

RoutingTransactionBuffer()

This is the class constructor.

Overloads

This is the default constructor and is typically not used.

Remarks

This is the default constructor and is typically not used.

Parameters

Name Type Description

Go Back

RoutingTransactionBuffer(Dictionary<String, RouteSegment>, Collection<String>, Dictionary<String, RouteSegment>)

This is the class constructor.

Overloads

This is the constructor for this class allows you pass in the necessary properties in the class.

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Parameters

Name Type Description
addBuffer Dictionary<String,RouteSegment><!– System.Collections.Generic.Dictionary{System.String,ThinkGeo.MapSuite.Routing.RouteSegment} –>
deleteBuffer Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –>
editBuffer Dictionary<String,RouteSegment><!– System.Collections.Generic.Dictionary{System.String,ThinkGeo.MapSuite.Routing.RouteSegment} –>

Go Back

Protected Constructors

Public Methods

AddRouteSegment(RouteSegment)

This method allows you to add RouteSegments to the transaction buffer.

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
routeSegment RouteSegment<!– ThinkGeo.MapSuite.Routing.RouteSegment –> This parameter represents the RouteSegment you are adding to the transaction buffer.

<!– ThinkGeo.MapSuite.Routing.RoutingTransactionBuffer –> Go Back

Clear()

This method will clear all the items in AddBuffer, EditBuffer and DeleteBuffer.

Remarks

This method will clear all the items in AddBuffer, EditBuffer and DeleteBuffer.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.Routing.RoutingTransactionBuffer –> Go Back

DeleteRouteSegment(String)

This method allows you to add a placeholder to represent a RouteSegment to be deleted.

Remarks

This does not remove a RouteSegment from the TransactionBuffer but rather it add a “to be deleted record”. In this way when the TransactionBuffer if processed we know what records need to be deleted.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
featureId String<!– System.String –> This parameter represents the unique feature Id for the specific RouteSegment being passed in.

<!– ThinkGeo.MapSuite.Routing.RoutingTransactionBuffer –> Go Back

Equals(Object)

Remarks

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Remarks

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Remarks

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

Remarks

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

UpdateFeature(RouteSegment)

This method allows you to add a Feature to be updated.

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
routeSegment RouteSegment<!– ThinkGeo.MapSuite.Routing.RouteSegment –> This parameter represents the RouteSegment to be updated.

<!– ThinkGeo.MapSuite.Routing.RoutingTransactionBuffer –> Go Back

Protected Methods

Finalize()

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Remarks

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

AddBuffer

This property gets the dictionary buffer that holds RouteSegments to be added.

Remarks

It is recommended that you use this dictionary for reviewing and not for adding new items. The reason is that the Add, Delete and Edit methods to various validation checks. For example if you call the DeleteRouteSegment twice it will handle the case that you really only want to delete the record once. Another example is if you edit a record twice it will replace the existing edit with the new one.

Return Value

Return Type
Dictionary<String,RouteSegment><!– System.Collections.Generic.Dictionary{System.String,ThinkGeo.MapSuite.Routing.RouteSegment} –>

<!– ThinkGeo.MapSuite.Routing.RoutingTransactionBuffer –> Go Back

DeleteBuffer

This property gets the dictionary buffer that holds RouteSegments to be deleted.

Remarks

It is recommended that you use this dictionary for reviewing and not for adding new items. The reason is that the Add, Delete and Edit methods to various validation checks. For example if you call the DeleteRouteSegment twice it will handle the case that you really only want to delete the record once. Another example is if you edit a record twice it will replace the existing edit with the new one.

Return Value

Return Type
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –>

<!– ThinkGeo.MapSuite.Routing.RoutingTransactionBuffer –> Go Back

UpdateBuffer

This property gets the dictionary buffer that holds RouteSegments to be updated.

Remarks

It is recommended that you use this dictionary for reviewing and not for adding new items. The reason is that the Add, Delete and Edit methods to various validation checks. For example if you call the DeleteRouteSegment twice it will handle the case that you really only want to delete the record once. Another example is if you edit a record twice it will replace the existing edit with the new one.

Return Value

Return Type
Dictionary<String,RouteSegment><!– System.Collections.Generic.Dictionary{System.String,ThinkGeo.MapSuite.Routing.RouteSegment} –>

<!– ThinkGeo.MapSuite.Routing.RoutingTransactionBuffer –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.routing.routingtransactionbuffer.1440040134.txt.gz · Last modified: 2015/09/18 03:06 (external edit)