Network Analysis Functions

:Associate with "Network Analysis Library Functions" More...

Functions

INT32 MnetworkAllocatedCenterGet (MNETWORKALLOCATIONHANDLE allocationHandle, int position)
int MnetworkAllocatedCenterGetAverageImpedance (MNETWORKALLOCATIONHANDLE allocationHandle, int position, DOUBLE *average)
int MnetworkAllocatedCenterGetCapacity (MNETWORKALLOCATIONHANDLE allocationHandle, int position, DOUBLE *capacity)
int MnetworkAllocatedCenterGetColor (MNETWORKALLOCATIONHANDLE allocationHandle, int position, COLOR *color)
int MnetworkAllocatedCenterGetDemand (MNETWORKALLOCATIONHANDLE allocationHandle, int position, DOUBLE *demand)
int MnetworkAllocatedCenterGetImpedanceDelay (MNETWORKALLOCATIONHANDLE allocationHandle, int position, DOUBLE *delay)
int MnetworkAllocatedCenterGetImpedanceLimit (MNETWORKALLOCATIONHANDLE allocationHandle, int position, DOUBLE *limit)
int MnetworkAllocatedCenterGetMaximumImpedance (MNETWORKALLOCATIONHANDLE allocationHandle, int position, DOUBLE *maximum)
INT32 MnetworkAllocatedCenterGetNumber (MNETWORKALLOCATIONHANDLE allocationHandle)
INT32 MnetworkAllocatedCenterGetNumberOfLines (MNETWORKALLOCATIONHANDLE allocationHandle, int position)
int MnetworkAllocatedCenterGetPosition (MNETWORKALLOCATIONHANDLE allocationHandle, INT32 node)
INT32 MnetworkAllocatedLineGetNumber (MNETWORKALLOCATIONHANDLE allocationHandle)
int MnetworkAllocatedLineGetPosition (MNETWORKALLOCATIONHANDLE allocationHandle, INT32 line)
int MnetworkAllocationFree (MNETWORKALLOCATIONHANDLE *allocationHandle)
int MnetworkAllocationGetReport (MNETWORKALLOCATIONHANDLE allocationHandle, MIUNICODE **report)
int MnetworkAllocationGetResultAsPositions (MNETWORKALLOCATIONHANDLE allocationHandle, INT32 **positions, INT32 *numPositions)
int MnetworkAllocationGetType (MNETWORKALLOCATIONHANDLE allocationHandle)
int MnetworkAllocationRestoreCenter (MNETWORKALLOCATIONHANDLE allocationHandle, MNETWORKCENTERHANDLE *centerHandle)
int MnetworkAngleApply (MNETWORKHANDLE handle)
int MnetworkAngleGetImpedance (MNETWORKHANDLE handle, int angle, DOUBLE *impedance)
int MnetworkAngleIsUpdated (MNETWORKHANDLE handle)
int MnetworkAngleSetImpedance (MNETWORKHANDLE handle, int angle, DOUBLE impedance)
int MnetworkBarrierIsUpdated (MNETWORKHANDLE handle)
int MnetworkCalculateMultiRoute (MNETWORKHANDLE handle, INT32 source, INT32 *destinations, INT32 numDestinations, MNETWORKROUTEHANDLE *multiRouteHandle)
int MnetworkCenterAdd (MNETWORKCENTERHANDLE centerHandle, INT32 node)
int MnetworkCenterCalculateAllocation (MNETWORKCENTERHANDLE centerHandle, int type, MNETWORKALLOCATIONHANDLE *allocationHandle)
int MnetworkCenterClone (MNETWORKCENTERHANDLE centerHandle, MNETWORKCENTERHANDLE *cloneCenterHandle)
int MnetworkCenterDelete (MNETWORKCENTERHANDLE centerHandle, int *positions, int numPositions)
int MnetworkCenterDeleteAll (MNETWORKCENTERHANDLE centerHandle)
int MnetworkCenterFree (MNETWORKCENTERHANDLE *centerHandle)
INT32 MnetworkCenterGet (MNETWORKCENTERHANDLE centerHandle, int position)
int MnetworkCenterGetAll (MNETWORKCENTERHANDLE centerHandle, INT32 **nodes, INT32 *numNodes)
int MnetworkCenterGetCapacity (MNETWORKCENTERHANDLE centerHandle, int position, DOUBLE *capacity)
int MnetworkCenterGetColor (MNETWORKCENTERHANDLE centerHandle, int position, COLOR *color)
int MnetworkCenterGetImpedanceDelay (MNETWORKCENTERHANDLE centerHandle, int position, DOUBLE *delay)
int MnetworkCenterGetImpedanceLimit (MNETWORKCENTERHANDLE centerHandle, int position, DOUBLE *limit)
int MnetworkCenterGetNumber (MNETWORKCENTERHANDLE centerHandle)
int MnetworkCenterGetPosition (MNETWORKCENTERHANDLE centerHandle, INT32 node)
int MnetworkCenterGetTableNames (MNETWORKCENTERHANDLE centerHandle, RVC::OBJECTNAME **tablename, INT32 *tablecount)
int MnetworkCenterIsTable (MNETWORKCENTERHANDLE centerHandle, const RVC::OBJECTNAME &tablename)
int MnetworkCenterIsUpdated (MNETWORKCENTERHANDLE centerHandle)
int MnetworkCenterOpenTable (MNETWORKCENTERHANDLE centerHandle, const RVC::OBJECTNAME &tablename)
int MnetworkCenterSaveTable (MNETWORKCENTERHANDLE centerHandle, RVC::OBJECTNAME &tablename)
int MnetworkCenterSetCapacity (MNETWORKCENTERHANDLE centerHandle, int position, DOUBLE capacity)
int MnetworkCenterSetColor (MNETWORKCENTERHANDLE centerHandle, int position, COLOR *color)
int MnetworkCenterSetImpedanceDelay (MNETWORKCENTERHANDLE centerHandle, int position, DOUBLE delay)
int MnetworkCenterSetImpedanceLimit (MNETWORKCENTERHANDLE centerHandle, int position, DOUBLE limit)
INT32 MnetworkLineGetClosest (MNETWORKHANDLE handle, DPOINT2D *point, DOUBLE radius)
int MnetworkLineGetDemand (MNETWORKHANDLE handle, INT32 line, DOUBLE *demand)
int MnetworkLineGetDirectionState (MNETWORKHANDLE handle, INT32 line, int direction, int *state)
int MnetworkLineGetImpedance (MNETWORKHANDLE handle, INT32 line, int direction, DOUBLE *impedance)
int MnetworkLineGetName (MNETWORKHANDLE handle, INT32 line, MIUNICODE *name, int size)
INT32 MnetworkLineGetNodeFrom (MNETWORKHANDLE handle, INT32 line)
INT32 MnetworkLineGetNodeTo (MNETWORKHANDLE handle, INT32 line)
INT32 MnetworkLineGetNumber (MNETWORKHANDLE handle)
int MnetworkLineIsUpdated (MNETWORKHANDLE handle)
int MnetworkLineSetDemand (MNETWORKHANDLE handle, INT32 line, DOUBLE demand)
int MnetworkLineSetDirectionState (MNETWORKHANDLE handle, INT32 line, int direction, int state)
int MnetworkLineSetImpedance (MNETWORKHANDLE handle, INT32 line, int direction, DOUBLE impedance)
int MnetworkMainCreateCenter (MNETWORKHANDLE handle, MNETWORKCENTERHANDLE *centerHandle)
int MnetworkMainCreateStop (MNETWORKHANDLE handle, MNETWORKSTOPHANDLE *stopHandle)
int MnetworkMainFree (MNETWORKHANDLE *handle)
int MnetworkMainGetTableNames (MNETWORKHANDLE handle, RVC::OBJECTNAME **tablename, INT32 *tablecount, UINT32 tabletype)
int MnetworkMainInit (MNETWORKHANDLE *handle, const RVC::OBJITEM &VectObjItem)
int MnetworkMainIsTable (MNETWORKHANDLE handle, const RVC::OBJECTNAME &tablename, UINT32 tabletype)
int MnetworkMainReadTable (MNETWORKHANDLE handle, const RVC::OBJECTNAME &tablename, UINT32 tabletype)
int MnetworkMainSetDefault (MNETWORKHANDLE handle)
int MnetworkMainSetLineNameAsCallback (MNETWORKHANDLE handle, MnetworkLineNameCallbackFunc cbfunc, void *cbdata)
int MnetworkMainSetLineNameAsTableAndField (MNETWORKHANDLE handle, RVC::OBJECTNAME &tablename, RVC::OBJECTNAME &fieldname)
int MnetworkMainWriteTable (MNETWORKHANDLE handle, RVC::OBJECTNAME &tablename, UINT32 tabletype)
int MnetworkMultiRouteFree (MNETWORKMULTIROUTEHANDLE *multiRouteHandle)
int MnetworkMultiRouteGetRoute (MNETWORKMULTIROUTEHANDLE multiRouteHandle, INT32 destination, MNETWORKROUTEHANDLE *routeHandle)
int MnetworkNodeGetBarrierState (MNETWORKHANDLE handle, INT32 node, int *state)
INT32 MnetworkNodeGetClosest (MNETWORKHANDLE handle, DPOINT2D *point, DOUBLE radius)
INT32 MnetworkNodeGetLine (MNETWORKHANDLE handle, INT32 node, int position)
int MnetworkNodeGetName (MNETWORKHANDLE handle, INT32 node, MIUNICODE *name, int size)
INT32 MnetworkNodeGetNumber (MNETWORKHANDLE handle)
int MnetworkNodeGetNumberOfLines (MNETWORKHANDLE handle, INT32 node)
int MnetworkNodeSetBarrierState (MNETWORKHANDLE handle, INT32 node, int state)
int MnetworkRouteFree (MNETWORKROUTEHANDLE *routeHandle)
INT32 MnetworkRouteGetLine (MNETWORKROUTEHANDLE routeHandle, int position)
int MnetworkRouteGetLineDirection (MNETWORKROUTEHANDLE routeHandle, int position)
INT32 MnetworkRouteGetNode (MNETWORKROUTEHANDLE routeHandle, int position)
INT32 MnetworkRouteGetNumberOfLines (MNETWORKROUTEHANDLE routeHandle)
INT32 MnetworkRouteGetNumberOfNodes (MNETWORKROUTEHANDLE routeHandle)
int MnetworkRouteGetReport (MNETWORKROUTEHANDLE routeHandle, MIUNICODE **report)
int MnetworkRouteGetResultAsLines (MNETWORKROUTEHANDLE routeHandle, INT32 **lines, INT32 *numLines)
int MnetworkRouteGetResultAsNodes (MNETWORKROUTEHANDLE routeHandle, INT32 **nodes, INT32 *numNodes)
int MnetworkRouteGetResultAsPoints (MNETWORKROUTEHANDLE routeHandle, DPOINT2D **points, INT32 *numPoints)
int MnetworkRouteIsNodeStop (MNETWORKROUTEHANDLE routeHandle, int position)
int MnetworkRouteIsNodeTurn (MNETWORKROUTEHANDLE routeHandle, int position)
int MnetworkRouteRestoreStop (MNETWORKROUTEHANDLE routeHandle, MNETWORKSTOPHANDLE *stopHandle)
int MnetworkStopAdd (MNETWORKSTOPHANDLE stopHandle, INT32 node, int position)
int MnetworkStopCalculateRoute (MNETWORKSTOPHANDLE stopHandle, MNETWORKROUTEHANDLE *routeHandle)
int MnetworkStopClone (MNETWORKSTOPHANDLE stopHandle, MNETWORKSTOPHANDLE *cloneStopHandle)
int MnetworkStopDelete (MNETWORKSTOPHANDLE stopHandle, int *positions, int numPositions)
int MnetworkStopDeleteAll (MNETWORKSTOPHANDLE stopHandle)
int MnetworkStopFree (MNETWORKSTOPHANDLE *stopHandle)
INT32 MnetworkStopGet (MNETWORKSTOPHANDLE stopHandle, int position)
int MnetworkStopGetAll (MNETWORKSTOPHANDLE stopHandle, INT32 **nodes, INT32 *numNodes)
int MnetworkStopGetDemand (MNETWORKSTOPHANDLE stopHandle, int position, DOUBLE *demand)
int MnetworkStopGetNumber (MNETWORKSTOPHANDLE stopHandle)
int MnetworkStopGetTableNames (MNETWORKSTOPHANDLE stopHandle, RVC::OBJECTNAME **tablename, INT32 *tablecount)
int MnetworkStopIsTable (MNETWORKSTOPHANDLE stopHandle, const RVC::OBJECTNAME &tablename)
int MnetworkStopIsUpdated (MNETWORKSTOPHANDLE stopHandle)
int MnetworkStopMove (MNETWORKSTOPHANDLE stopHandle, int oldPosition, int newPosition)
int MnetworkStopOpenTable (MNETWORKSTOPHANDLE stopHandle, const RVC::OBJECTNAME &tablename)
int MnetworkStopSaveTable (MNETWORKSTOPHANDLE stopHandle, RVC::OBJECTNAME &tablename)
int MnetworkStopSetDemand (MNETWORKSTOPHANDLE stopHandle, int position, DOUBLE demand)
int MnetworkTurnGetAngle (MNETWORKHANDLE handle, INT32 node, int in, int out, DOUBLE *angle)
int MnetworkTurnGetImpedance (MNETWORKHANDLE handle, INT32 node, int in, int out, DOUBLE *impedance)
int MnetworkTurnIsUpdated (MNETWORKHANDLE handle)
int MnetworkTurnSetImpedance (MNETWORKHANDLE handle, INT32 node, int in, int out, DOUBLE impedance)

Detailed Description

:Associate with "Network Analysis Library Functions"


Function Documentation

INT32 MnetworkAllocatedCenterGet ( MNETWORKALLOCATIONHANDLE  allocationHandle,
int  position 
)

Get allocated center at specified position as node value from array of allocated centers.

Returns:
Node value or error code < 0.
Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
position Position of the allocated center
int MnetworkAllocatedCenterGetAverageImpedance ( MNETWORKALLOCATIONHANDLE  allocationHandle,
int  position,
DOUBLE average 
)

Get average impedance of allocated center at specified position.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
position Position of the allocated center
average Average impedance value returned
int MnetworkAllocatedCenterGetCapacity ( MNETWORKALLOCATIONHANDLE  allocationHandle,
int  position,
DOUBLE capacity 
)

Get capacity of allocated center at specified position.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
position Position of the allocated center
capacity Capacity value returned
int MnetworkAllocatedCenterGetColor ( MNETWORKALLOCATIONHANDLE  allocationHandle,
int  position,
COLOR color 
)

Get color of allocated center at specified position.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
position Position of the allocated center
color Color value returned
int MnetworkAllocatedCenterGetDemand ( MNETWORKALLOCATIONHANDLE  allocationHandle,
int  position,
DOUBLE demand 
)

Get demand of allocated center at specified position.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
position Position of the allocated center
demand Demand value returned
int MnetworkAllocatedCenterGetImpedanceDelay ( MNETWORKALLOCATIONHANDLE  allocationHandle,
int  position,
DOUBLE delay 
)

Get impedance delay of allocated center at specified position.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
position Position of the allocated center
delay Impedance delay value returned
int MnetworkAllocatedCenterGetImpedanceLimit ( MNETWORKALLOCATIONHANDLE  allocationHandle,
int  position,
DOUBLE limit 
)

Get impedance limit of allocated center at specified position.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
position Position of the allocated center
limit Impedance limit value returned
int MnetworkAllocatedCenterGetMaximumImpedance ( MNETWORKALLOCATIONHANDLE  allocationHandle,
int  position,
DOUBLE maximum 
)

Get maximum impedance of allocated center at specified position.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
position Position of the allocated center
maximum Maximum impedance value returned
INT32 MnetworkAllocatedCenterGetNumber ( MNETWORKALLOCATIONHANDLE  allocationHandle  ) 

Get number of allocated centers.

Returns:
Number of allocated centers or error code < 0.
Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
INT32 MnetworkAllocatedCenterGetNumberOfLines ( MNETWORKALLOCATIONHANDLE  allocationHandle,
int  position 
)

Get number of lines assigned to allocated center at specified position.

Returns:
Number of lines assigned to allocated center or error code < 0.
Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
position Position of the allocated center
int MnetworkAllocatedCenterGetPosition ( MNETWORKALLOCATIONHANDLE  allocationHandle,
INT32  node 
)

Get position of node in array of allocated centers.

Returns:
Position or error code < 0.
Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
node Node value
INT32 MnetworkAllocatedLineGetNumber ( MNETWORKALLOCATIONHANDLE  allocationHandle  ) 

Get number of lines that was used for allocation.

Returns:
Number of lines or error code < 0.
Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
int MnetworkAllocatedLineGetPosition ( MNETWORKALLOCATIONHANDLE  allocationHandle,
INT32  line 
)

Get position of allocated center than assigned given line.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
line Line value
int MnetworkAllocationFree ( MNETWORKALLOCATIONHANDLE allocationHandle  ) 

Free allocation handle.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
int MnetworkAllocationGetReport ( MNETWORKALLOCATIONHANDLE  allocationHandle,
MIUNICODE **  report 
)

Get simple report.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
report Report as unicode string allocated and returned
int MnetworkAllocationGetResultAsPositions ( MNETWORKALLOCATIONHANDLE  allocationHandle,
INT32 **  positions,
INT32 numPositions 
)

Get array of positions of allocated centers for every line.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
positions Positions array
numPositions Size of positions array
int MnetworkAllocationGetType ( MNETWORKALLOCATIONHANDLE  allocationHandle  ) 

Get type of allocation.

Returns:
Type of allocation or error code < 0.

Type of allocation: NETWORK_ALLOCATION_In NETWORK_ALLOCATION_Out

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
int MnetworkAllocationRestoreCenter ( MNETWORKALLOCATIONHANDLE  allocationHandle,
MNETWORKCENTERHANDLE centerHandle 
)

Restore center handle that was used to generate given allocation.

Parameters:
allocationHandle Handle returned by MnetworkCenterCalculateAllocation function
centerHandle Handle returned by MnetworkMainCreateCenter function
int MnetworkAngleApply ( MNETWORKHANDLE  handle  ) 

Apply angle impedance array to entire network as turn impedance.

Parameters:
handle Handle returned by MnetworkMainInit function
int MnetworkAngleGetImpedance ( MNETWORKHANDLE  handle,
int  angle,
DOUBLE impedance 
)

Get impedance for given turn.

Parameters:
handle Handle returned by MnetworkMainInit function
angle Turn angle from range [-179,+180]
impedance Impedance for given turn angle
int MnetworkAngleIsUpdated ( MNETWORKHANDLE  handle  ) 

Is angle impedance array updated.

Returns:
1 if yes, 0 if no or error code < 0.
Parameters:
handle Handle returned by MnetworkMainInit function
int MnetworkAngleSetImpedance ( MNETWORKHANDLE  handle,
int  angle,
DOUBLE  impedance 
)

Set impedance for given turn.

Parameters:
handle Handle returned by MnetworkMainInit function
angle Turn angle from range [-179,+180]
impedance Impedance for given turn angle
int MnetworkBarrierIsUpdated ( MNETWORKHANDLE  handle  ) 

Is barrier states updated.

Returns:
1 if yes, 0 if no or error code < 0.
Parameters:
handle Handle returned by MnetworkMainInit function
int MnetworkCalculateMultiRoute ( MNETWORKHANDLE  handle,
INT32  source,
INT32 destinations,
INT32  numDestinations,
MNETWORKROUTEHANDLE multiRouteHandle 
)

Calculate multiroutes from source node to all destination nodes.

Parameters:
handle Handle returned by MnetworkMainInit function
source Source node
destinations Destination nodes array
numDestinations Number of destination nodes
multiRouteHandle Handle that represents result of multirouting
int MnetworkCenterAdd ( MNETWORKCENTERHANDLE  centerHandle,
INT32  node 
)

Add node to center array.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
node Node value
int MnetworkCenterCalculateAllocation ( MNETWORKCENTERHANDLE  centerHandle,
int  type,
MNETWORKALLOCATIONHANDLE allocationHandle 
)

Calculate allocation for given center array.

Type of allocation: NETWORK_ALLOCATION_In NETWORK_ALLOCATION_Out

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
type Type of allocation
allocationHandle Handle that represents result of allocation
int MnetworkCenterClone ( MNETWORKCENTERHANDLE  centerHandle,
MNETWORKCENTERHANDLE cloneCenterHandle 
)

Clone given center array.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
cloneCenterHandle Clone handle
int MnetworkCenterDelete ( MNETWORKCENTERHANDLE  centerHandle,
int *  positions,
int  numPositions 
)

Delete centers at specified positions.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
positions Array of positions
numPositions Number of positions in array
int MnetworkCenterDeleteAll ( MNETWORKCENTERHANDLE  centerHandle  ) 

Delete all centers.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
int MnetworkCenterFree ( MNETWORKCENTERHANDLE centerHandle  ) 

Free center array handle.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
INT32 MnetworkCenterGet ( MNETWORKCENTERHANDLE  centerHandle,
int  position 
)

Get center at specified position as node value from array of centers.

Returns:
Node value or error code < 0.
Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
position Position of the center
int MnetworkCenterGetAll ( MNETWORKCENTERHANDLE  centerHandle,
INT32 **  nodes,
INT32 numNodes 
)

Get center array as nodes.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
nodes Nodes array allocated and returned
numNodes Number of nodes in array
int MnetworkCenterGetCapacity ( MNETWORKCENTERHANDLE  centerHandle,
int  position,
DOUBLE capacity 
)

Get capacity of center at specified position.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
position Position of the center
capacity Capacity value returned
int MnetworkCenterGetColor ( MNETWORKCENTERHANDLE  centerHandle,
int  position,
COLOR color 
)

Get color of center at specified position.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
position Position of the center
color Color value returned
int MnetworkCenterGetImpedanceDelay ( MNETWORKCENTERHANDLE  centerHandle,
int  position,
DOUBLE delay 
)

Get impedance delay of center at specified position.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
position Position of the center
delay Impedance delay value returned
int MnetworkCenterGetImpedanceLimit ( MNETWORKCENTERHANDLE  centerHandle,
int  position,
DOUBLE limit 
)

Get impedance limit of center at specified position.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
position Position of the center
limit Impedance limit value returned
int MnetworkCenterGetNumber ( MNETWORKCENTERHANDLE  centerHandle  ) 

Get number of centers.

Returns:
Number of centers or error code < 0.
Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
int MnetworkCenterGetPosition ( MNETWORKCENTERHANDLE  centerHandle,
INT32  node 
)

Get position of node in array of centers.

Returns:
Position or error code < 0.
Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
node Node value
int MnetworkCenterGetTableNames ( MNETWORKCENTERHANDLE  centerHandle,
RVC::OBJECTNAME **  tablename,
INT32 tablecount 
)

Get array of database table names that contains saved center array information.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
tablename "Center" tables names array allocated and returned
tablecount Number of names in array
int MnetworkCenterIsTable ( MNETWORKCENTERHANDLE  centerHandle,
const RVC::OBJECTNAME tablename 
)

Is there "center" table name.

Returns:
1 if yes, 0 if no or error code < 0.
Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
tablename Table name
int MnetworkCenterIsUpdated ( MNETWORKCENTERHANDLE  centerHandle  ) 

Is centers array updated.

Returns:
1 if yes, 0 if no or error code < 0.
Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
int MnetworkCenterOpenTable ( MNETWORKCENTERHANDLE  centerHandle,
const RVC::OBJECTNAME tablename 
)

Open "center" table.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
tablename Table name to open
int MnetworkCenterSaveTable ( MNETWORKCENTERHANDLE  centerHandle,
RVC::OBJECTNAME tablename 
)

Save "center" table.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
tablename Table name to save
int MnetworkCenterSetCapacity ( MNETWORKCENTERHANDLE  centerHandle,
int  position,
DOUBLE  capacity 
)

Set capacity of center at specified position.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
position Position of the center
capacity Capacity value to set
int MnetworkCenterSetColor ( MNETWORKCENTERHANDLE  centerHandle,
int  position,
COLOR color 
)

Set color of center at specified position.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
position Position of the center
color Color value to set
int MnetworkCenterSetImpedanceDelay ( MNETWORKCENTERHANDLE  centerHandle,
int  position,
DOUBLE  delay 
)

Set impedance delay of center at specified position.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
position Position of the center
delay Impedance delay value to set
int MnetworkCenterSetImpedanceLimit ( MNETWORKCENTERHANDLE  centerHandle,
int  position,
DOUBLE  limit 
)

Set impedance limit of center at specified position.

Parameters:
centerHandle Handle returned by MnetworkMainCreateCenter function
position Position of the center
limit Impedance limit value to set
INT32 MnetworkLineGetClosest ( MNETWORKHANDLE  handle,
DPOINT2D point,
DOUBLE  radius 
)

Get closest line to given point.

Parameters:
handle Handle returned by MnetworkMainInit function
point Point of interest in vector object coordinates
radius Radius of interest in vector object coordinates
int MnetworkLineGetDemand ( MNETWORKHANDLE  handle,
INT32  line,
DOUBLE demand 
)

Get demand of specified line.

Parameters:
handle Handle returned by MnetworkMainInit function
line Line
demand Demand value returned
int MnetworkLineGetDirectionState ( MNETWORKHANDLE  handle,
INT32  line,
int  direction,
int *  state 
)

Get direction state of specified line.

Direction on line: NETWORK_LINE_DIRECTION_FromTo NETWORK_LINE_DIRECTION_ToFrom

State of line: NETWORK_LINE_DIRECTION_Disable NETWORK_LINE_DIRECTION_Enable

Parameters:
handle Handle returned by MnetworkMainInit function
line Line
direction Direction on line
state State of line returned
int MnetworkLineGetImpedance ( MNETWORKHANDLE  handle,
INT32  line,
int  direction,
DOUBLE impedance 
)

Get impedance of specified line.

Direction on line: NETWORK_LINE_DIRECTION_FromTo NETWORK_LINE_DIRECTION_ToFrom

Parameters:
handle Handle returned by MnetworkMainInit function
line Line
direction Direction on line
impedance Impedance value of line returned
int MnetworkLineGetName ( MNETWORKHANDLE  handle,
INT32  line,
MIUNICODE name,
int  size 
)

Get name of specified line.

Parameters:
handle Handle returned by MnetworkMainInit function
line Line
name Unicode name of line returned (buffer should be allocated)
size Size of allocated buffer in unicode characters
INT32 MnetworkLineGetNodeFrom ( MNETWORKHANDLE  handle,
INT32  line 
)

Get start node of specified line.

Parameters:
handle Handle returned by MnetworkMainInit function
line Line
INT32 MnetworkLineGetNodeTo ( MNETWORKHANDLE  handle,
INT32  line 
)

Get end node of specified line.

Parameters:
handle Handle returned by MnetworkMainInit function
line Line
INT32 MnetworkLineGetNumber ( MNETWORKHANDLE  handle  ) 

Get number of lines in network.

Returns:
Number of lines or error code < 0.
Parameters:
handle Handle returned by MnetworkMainInit function
int MnetworkLineIsUpdated ( MNETWORKHANDLE  handle  ) 

Is attributes of lines updated.

Returns:
Handle returned by MnetworkMainInit function.
Parameters:
handle Handle returned by MnetworkMainInit function
int MnetworkLineSetDemand ( MNETWORKHANDLE  handle,
INT32  line,
DOUBLE  demand 
)

Set demand of specified line.

Parameters:
handle Handle returned by MnetworkMainInit function
line Line
demand Demand value to set
int MnetworkLineSetDirectionState ( MNETWORKHANDLE  handle,
INT32  line,
int  direction,
int  state 
)

Set direction state of specified line.

Direction on line: NETWORK_LINE_DIRECTION_FromTo NETWORK_LINE_DIRECTION_ToFrom

State of line: NETWORK_LINE_DIRECTION_Disable NETWORK_LINE_DIRECTION_Enable

Parameters:
handle Handle returned by MnetworkMainInit function
line Line
direction Direction on line
state State of line to set
int MnetworkLineSetImpedance ( MNETWORKHANDLE  handle,
INT32  line,
int  direction,
DOUBLE  impedance 
)

Set impedance of specified line.

Direction on line: NETWORK_LINE_DIRECTION_FromTo NETWORK_LINE_DIRECTION_ToFrom

Parameters:
handle Handle returned by MnetworkMainInit function
line Line
direction Direction on line
impedance Impedance value to set
int MnetworkMainCreateCenter ( MNETWORKHANDLE  handle,
MNETWORKCENTERHANDLE centerHandle 
)

Create center handle to maintain centers array.

Parameters:
handle Handle returned by MnetworkMainInit function
centerHandle Center handle to maintain centers array
int MnetworkMainCreateStop ( MNETWORKHANDLE  handle,
MNETWORKSTOPHANDLE stopHandle 
)

Create stop handle to maintain stops array.

Parameters:
handle Handle returned by MnetworkMainInit function
stopHandle Stop handle to maintain stops array
int MnetworkMainFree ( MNETWORKHANDLE handle  ) 

Free all resources associated with network.

Parameters:
handle Handle returned by MnetworkMainInit function
int MnetworkMainGetTableNames ( MNETWORKHANDLE  handle,
RVC::OBJECTNAME **  tablename,
INT32 tablecount,
UINT32  tabletype 
)

Get databases table names array associated with this network by specific type.

Network related table types: NETWORK_TABLE_Line NETWORK_TABLE_Turn NETWORK_TABLE_Barrier NETWORK_TABLE_Angle

Parameters:
handle Handle returned by MnetworkMainInit function
tablename Table name array allocated and returned
tablecount Size of table name array
tabletype Type of "network related" table
int MnetworkMainInit ( MNETWORKHANDLE handle,
const RVC::OBJITEM VectObjItem 
)

Init all resources associated with network.

Parameters:
handle Handle associated with network returned
VectObjItem OBJITEM of network vector object
int MnetworkMainIsTable ( MNETWORKHANDLE  handle,
const RVC::OBJECTNAME tablename,
UINT32  tabletype 
)

Is there "network related" table name.

Returns:
1 if yes, 0 if no or error code < 0.

Network related table types: NETWORK_TABLE_Line NETWORK_TABLE_Turn NETWORK_TABLE_Barrier NETWORK_TABLE_Angle

Parameters:
handle Handle returned by MnetworkMainInit function
tablename Table name to check
tabletype Type of "network related" table
int MnetworkMainReadTable ( MNETWORKHANDLE  handle,
const RVC::OBJECTNAME tablename,
UINT32  tabletype 
)

Read "network related" table.

Network related table types: NETWORK_TABLE_Line NETWORK_TABLE_Turn NETWORK_TABLE_Barrier NETWORK_TABLE_Angle

Parameters:
handle Handle returned by MnetworkMainInit function
tablename Table name to read
tabletype Type of "network related" table
int MnetworkMainSetDefault ( MNETWORKHANDLE  handle  ) 

Set all resources to default.

Parameters:
handle Handle returned by MnetworkMainInit function
int MnetworkMainSetLineNameAsCallback ( MNETWORKHANDLE  handle,
MnetworkLineNameCallbackFunc  cbfunc,
void *  cbdata 
)

Set line name as returned by callback.

Parameters:
handle Handle returned by MnetworkMainInit function
cbfunc Function that will defines line name
cbdata Data that will be passed to callback as argument
int MnetworkMainSetLineNameAsTableAndField ( MNETWORKHANDLE  handle,
RVC::OBJECTNAME tablename,
RVC::OBJECTNAME fieldname 
)

Set line name as database field.

Parameters:
handle Handle returned by MnetworkMainInit function
tablename Table name
fieldname Field name
int MnetworkMainWriteTable ( MNETWORKHANDLE  handle,
RVC::OBJECTNAME tablename,
UINT32  tabletype 
)

Write "network related" table.

Network related table types: NETWORK_TABLE_Line NETWORK_TABLE_Turn NETWORK_TABLE_Barrier NETWORK_TABLE_Angle

Parameters:
handle Handle returned by MnetworkMainInit function
tablename Table name to write, RETURNED if table created
tabletype Type of "network related" table
int MnetworkMultiRouteFree ( MNETWORKMULTIROUTEHANDLE multiRouteHandle  ) 

Free multiroute handle.

Parameters:
multiRouteHandle Handle returned by MnetworkCalculateMultiRoute function
int MnetworkMultiRouteGetRoute ( MNETWORKMULTIROUTEHANDLE  multiRouteHandle,
INT32  destination,
MNETWORKROUTEHANDLE routeHandle 
)
Parameters:
multiRouteHandle Handle returned by MnetworkCalculateMultiRoute function
destination Destination node
routeHandle Handle that represents result of routing
int MnetworkNodeGetBarrierState ( MNETWORKHANDLE  handle,
INT32  node,
int *  state 
)

Get barrier state of specified node.

State of node: NETWORK_NODE_BARRIER_Off NETWORK_NODE_BARRIER_On

Parameters:
handle Handle returned by MnetworkMainInit function
node Node value
state State of node
INT32 MnetworkNodeGetClosest ( MNETWORKHANDLE  handle,
DPOINT2D point,
DOUBLE  radius 
)

Get closest node to given point.

Returns:
node or error code < 0.
Parameters:
handle Handle returned by MnetworkMainInit function
point Point of interest in vector object coordinates
radius Radius of interest in vector object coordinates
INT32 MnetworkNodeGetLine ( MNETWORKHANDLE  handle,
INT32  node,
int  position 
)

Get line at specified position in incoming(outgoing) lines array for specified node.

Returns:
Line or error code < 0.
Parameters:
handle Handle returned by MnetworkMainInit function
node Node value
position Position of line
int MnetworkNodeGetName ( MNETWORKHANDLE  handle,
INT32  node,
MIUNICODE name,
int  size 
)

Get name of specified line (generated from line names).

Parameters:
handle Handle returned by MnetworkMainInit function
node Node value
name Name string
size Size of name string
INT32 MnetworkNodeGetNumber ( MNETWORKHANDLE  handle  ) 

Get number of nodes in network.

Returns:
Number of nodes or error code < 0.
Parameters:
handle Handle returned by MnetworkMainInit function
int MnetworkNodeGetNumberOfLines ( MNETWORKHANDLE  handle,
INT32  node 
)

Get number of incoming(outgoing) lines in lines array for specified node.

Returns:
Number of lines or error code < 0.
Parameters:
handle Handle returned by MnetworkMainInit function
node Node value
int MnetworkNodeSetBarrierState ( MNETWORKHANDLE  handle,
INT32  node,
int  state 
)

Set barrier state of specified node.

State of node: NETWORK_NODE_BARRIER_Off NETWORK_NODE_BARRIER_On

Parameters:
handle Handle returned by MnetworkMainInit function
node Node value
state State of node
int MnetworkRouteFree ( MNETWORKROUTEHANDLE routeHandle  ) 

Free route handle.

Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
INT32 MnetworkRouteGetLine ( MNETWORKROUTEHANDLE  routeHandle,
int  position 
)

Get line at specified position.

Returns:
Line or error code < 0.
Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
position Position of line in route
int MnetworkRouteGetLineDirection ( MNETWORKROUTEHANDLE  routeHandle,
int  position 
)

Get direction of line at specified position.

Returns:
Direction or error code < 0.

Direction on line: NETWORK_LINE_DIRECTION_FromTo NETWORK_LINE_DIRECTION_ToFrom

Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
position Position of line in route
INT32 MnetworkRouteGetNode ( MNETWORKROUTEHANDLE  routeHandle,
int  position 
)

Get node at specified position.

Returns:
Node or error code < 0.
Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
position Position of node in route
INT32 MnetworkRouteGetNumberOfLines ( MNETWORKROUTEHANDLE  routeHandle  ) 

Get number of lines in route.

Returns:
Number of lines or error code < 0.
Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
INT32 MnetworkRouteGetNumberOfNodes ( MNETWORKROUTEHANDLE  routeHandle  ) 

Get number of nodes in route.

Returns:
Number of nodes or error code < 0.
int MnetworkRouteGetReport ( MNETWORKROUTEHANDLE  routeHandle,
MIUNICODE **  report 
)

Get simple report.

Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
report Simple report allocated and returned
int MnetworkRouteGetResultAsLines ( MNETWORKROUTEHANDLE  routeHandle,
INT32 **  lines,
INT32 numLines 
)

Get route as lines array.

Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
lines Lines array allocated and returned
numLines Number of lines in array
int MnetworkRouteGetResultAsNodes ( MNETWORKROUTEHANDLE  routeHandle,
INT32 **  nodes,
INT32 numNodes 
)

Position of line in route.

Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
nodes Nodes array allocated and returned
numNodes Number of nodes in array
int MnetworkRouteGetResultAsPoints ( MNETWORKROUTEHANDLE  routeHandle,
DPOINT2D **  points,
INT32 numPoints 
)

Get route as 2D point array in object coordinates.

Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
points 2D points array allocated and returned
numPoints Number of points in array
int MnetworkRouteIsNodeStop ( MNETWORKROUTEHANDLE  routeHandle,
int  position 
)

Position of line in route.

Returns:
1 if yes, 0 if no or error code < 0.
Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
position Position of node in route
int MnetworkRouteIsNodeTurn ( MNETWORKROUTEHANDLE  routeHandle,
int  position 
)

Is node at specified position a turn.

Returns:
1 if yes, 0 if no or error code < 0.
Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
position Position of node in route
int MnetworkRouteRestoreStop ( MNETWORKROUTEHANDLE  routeHandle,
MNETWORKSTOPHANDLE stopHandle 
)

Restore stop handle that was used to generate given route.

Parameters:
routeHandle Handle returned by MnetworkStopCalculateRoute function
stopHandle Handle returned by MnetworkMainCreateStop function
int MnetworkStopAdd ( MNETWORKSTOPHANDLE  stopHandle,
INT32  node,
int  position 
)

Add node to stop array to specified position.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
node Node value
position Position to add
int MnetworkStopCalculateRoute ( MNETWORKSTOPHANDLE  stopHandle,
MNETWORKROUTEHANDLE routeHandle 
)

Calculate route for given stop array.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
routeHandle Handle that represents result of routing
int MnetworkStopClone ( MNETWORKSTOPHANDLE  stopHandle,
MNETWORKSTOPHANDLE cloneStopHandle 
)

Clone given stop array.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
cloneStopHandle Clone handle
int MnetworkStopDelete ( MNETWORKSTOPHANDLE  stopHandle,
int *  positions,
int  numPositions 
)

Delete stops at specified positions.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
positions Array of positions
numPositions Number of positions in array
int MnetworkStopDeleteAll ( MNETWORKSTOPHANDLE  stopHandle  ) 

Delete all stops.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
int MnetworkStopFree ( MNETWORKSTOPHANDLE stopHandle  ) 

Free stop array handle.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
INT32 MnetworkStopGet ( MNETWORKSTOPHANDLE  stopHandle,
int  position 
)

Get stop at specified position as node value from array of nodes.

Returns:
Node or error code < 0.
Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
position Position of stop
int MnetworkStopGetAll ( MNETWORKSTOPHANDLE  stopHandle,
INT32 **  nodes,
INT32 numNodes 
)

Get stop array as nodes.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
nodes Nodes array allocated and returned
numNodes Number of nodes in array
int MnetworkStopGetDemand ( MNETWORKSTOPHANDLE  stopHandle,
int  position,
DOUBLE demand 
)

Get demand of stop at specified position.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
position Position of stop
demand Demand value
int MnetworkStopGetNumber ( MNETWORKSTOPHANDLE  stopHandle  ) 

Get number of stops.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
int MnetworkStopGetTableNames ( MNETWORKSTOPHANDLE  stopHandle,
RVC::OBJECTNAME **  tablename,
INT32 tablecount 
)

Get array of database table names that contains saved stop array information.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
tablename "Stop" tables names array allocated and returned
tablecount Number of names in array
int MnetworkStopIsTable ( MNETWORKSTOPHANDLE  stopHandle,
const RVC::OBJECTNAME tablename 
)

Is there "stop" table name.

Returns:
1 if yes, 0 if no or error code < 0/
Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
tablename Table name
int MnetworkStopIsUpdated ( MNETWORKSTOPHANDLE  stopHandle  ) 

Is stop array updated.

Returns:
1 if yes, 0 if no or error code < 0.
Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
int MnetworkStopMove ( MNETWORKSTOPHANDLE  stopHandle,
int  oldPosition,
int  newPosition 
)

Move stop to specified position.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
oldPosition Old position
newPosition New position
int MnetworkStopOpenTable ( MNETWORKSTOPHANDLE  stopHandle,
const RVC::OBJECTNAME tablename 
)

Open "stop" table.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
tablename Table name to open
int MnetworkStopSaveTable ( MNETWORKSTOPHANDLE  stopHandle,
RVC::OBJECTNAME tablename 
)

Save "stop" table.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
tablename Table name to save
int MnetworkStopSetDemand ( MNETWORKSTOPHANDLE  stopHandle,
int  position,
DOUBLE  demand 
)

Set demand of stop at specified position.

Parameters:
stopHandle Handle returned by MnetworkMainCreateStop function
position Position of stop
demand Demand value
int MnetworkTurnGetAngle ( MNETWORKHANDLE  handle,
INT32  node,
int  in,
int  out,
DOUBLE angle 
)

Angle impedance of specified turn.

Parameters:
handle Handle returned by MnetworkMainInit function
node Node value
in Position of incoming line of specified node
out Position of outgoing line of specified node
angle Turn angle returned
int MnetworkTurnGetImpedance ( MNETWORKHANDLE  handle,
INT32  node,
int  in,
int  out,
DOUBLE impedance 
)

Get impedance of specified turn.

Parameters:
handle Handle returned by MnetworkMainInit function
node Node value
in Position of incoming line of specified node
out Position of outgoing line of specified node
impedance Angle impedance of specified turn
int MnetworkTurnIsUpdated ( MNETWORKHANDLE  handle  ) 

Is turn attributes updated.

Returns:
1 if yes, 0 if no or error code < 0.
Parameters:
handle Handle returned by MnetworkMainInit function
int MnetworkTurnSetImpedance ( MNETWORKHANDLE  handle,
INT32  node,
int  in,
int  out,
DOUBLE  impedance 
)

Set impedance of specified turn.

Parameters:
handle Handle returned by MnetworkMainInit function
node Node value
in Position of incoming line of specified node
out Position of outgoing line of specified node
impedance Angle impedance of specified turn

Generated on Sun Oct 7 21:33:03 2012 for TNTsdk 2012 by  doxygen 1.6.1