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, MIUNICODE *filename, INT32 inode)
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,