ISIAPIRoute Interface¶
Namespace: SIDRASolutions.SI.API
Assembly: SIDRASolutions.SI.API.dll
COM CLSID: 86BE04E8-CC7C-4EFA-BCF2-75F768B58D78
Declaration¶
Get an instance¶
Properties¶
Name¶
Type string
Code samples
RouteID¶
Type string
Code samples
Position¶
The Route Position in the Network's Routes collection. It is a zero-base integer.
Type int
Code samples
Title¶
Type string
Code samples
LOSMethod¶
Network Level of Service Method
Type int
Value
One of:
1- SIDRA Speed Efficiency2- HCM 2010 Speed Efficiency3- HCM 6 Speed Efficiency
Code samples
RouteSummaryOption¶
Route Summary Output Option
Type int
Value
One of:
1- Movements2- Approaches3- Sites
Code samples
IsIncludedInOutputNetworkByRoutes¶
Type bool
Code samples
IsIncludedInSignalOffsetCal¶
Type bool
Code samples
SignalOffsetPriority¶
The priority of the Route in the Signal Offset Calculation.
Type int
Remarks
When Network Signal Offset Option is set to Program, i.e. SIAPINetwork.SignalOffsetOption = 0, the program will use selected Signal valid Routes to calculate the Signals Offsets. Call SIAPIRoute.CheckIsValidForSignalOffsetCalc() method to determine if the Route is valid for Signal Offset Calculation. This method will initialise the SignalOffsetPriority value. Set SIAPIRoute.IsIncludedInSignalOffsetCal = true to include the Route into the program calculation of Signal Offsets.
If the Route is not valid for the program calculation of Signals Offsets, its SignalOffsetPriority will be larger than 1000 and cannot be changed.
Code samples
SignalOffsetMethod¶
The method of this Route for the program calculation of Signal Offsets
Type int
Value
One of:
1- Start of Green (Leading)2- End of Green (Trailing)3- Middle of Green4- Simultaneous
Code samples
SignalOffsetCalMCClass¶
Movement Class in this Route for the program calculation of Signal Offsets
Type int
Code samples
Created_date¶
Type DateTime
Code samples
Created_by¶
Type string
Code samples
Created_by_company¶
Type string
Code samples
Created_version¶
Type string
Code samples
Modified_date¶
Type DateTime
Code samples
Modified_by¶
Type string
Code samples
Modified_by_company¶
Type string
Code samples
Modified_version¶
Type string
Code samples
RouteNwSites¶
Collection of Network Sites in the Route
Type ISIAPIRouteNwSites
Code samples
Network¶
Type ISIAPINetwork
Code samples
OutputRoute¶
Route Output Data, this data structure is same as the OutputNetwork but it is a different set of output data.
Type ISIAPIOutputNetwork
Code samples
LastErrorMessage¶
Type string
Code samples
IsIncludedInProjectSummary¶
Type bool
Code samples
Is_time_distance_reverse_included¶
Type bool
Code samples
Time_distance_direction¶
Main Route Direction in the Time-Distance Display
Type int
Value
One of:
0- Up (Vertical)1- Down (Vertical)2- Left to Right (Horizontal)3- Right to Left (Horizontal)
Code samples
RouteMCs¶
Type ISIAPIRouteMCs
Code samples
ShowSecondaryPlatoons¶
Type bool
Code samples
Methods¶
AddRouteNwSite(ISIAPINetworkSite, int, int)¶
Add a Network Site to the Route to build the path of the Route.
Parameters
| Name | Type | Description |
|---|---|---|
networkSite |
ISIAPINetworkSite |
The Network Site to add into the Route |
origin |
int |
The origin of the vehicle movement on the Network Site that will be added into the Route |
destination |
int |
The destination of the vehicle movement on the Network Site that will be added into the Route |
Returns ISIAPIRouteNwSite - A new added Route Network Site
Code samples
CheckIsValidForSignalOffsetCalc()¶
Returns bool
Code samples
UpdateModifiedInfo()¶
Update the Last Modified Information, such as Date, User Name, Organisation Name, Software Version Number
Returns bool
Code samples
Process()¶
Process this Route. The Network needs to be processed before Route statistics can be calculated. If the Network has not been processed, process the Network. The Routes in the Network will be processed as well. If the Route is created after the Network is processed, call this method to process this Route only.
Returns bool - true if this Route is processed successfully.
Code samples
RemoveRouteNwSite(ISIAPIRouteNwSite)¶
Remove a Network Site from the Route. The Network Sites that are after this one in the Route will also be removed.
Parameters
| Name | Type | Description |
|---|---|---|
routeNwSite |
ISIAPIRouteNwSite |
The Network Site to remove. |
Returns bool - true if the Network Site is successfully removed; otherwise, false. This method also returns false if the Network Site does not exist in this Route.
Code samples
RemoveOutputData()¶
Remove this Route Output data.
Returns bool - true if the Output data are successfully removed