Network Analysis Functions

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

Functions

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

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,
UNICODE **  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,
UNICODE 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