SetLinkCost: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
m (New page: SetLinkCost Sets the Link Cost of a spatial link. The Link Cost assists Planimate to decide which link to take where options exist for the item to transit to the Target. Link cost is ...)
 
mNo edit summary
 
Line 1: Line 1:
SetLinkCost
With this Routine Operation, you sets the '''Link Cost''' of a spatial link.


Sets the Link Cost of a spatial link.  
The Link Cost assists Planimate to decide which link to take where options exist for the item to transit to the Target.  


The Link Cost assists Planimate to decide which link to take where options exist for the item to transit to the Target.
Default Link cost is computed as a relative value between all the Spatial Links, using their on-screen distance.  
Link cost is normally computed by Planimate using the link's on screen distance.


SetLinkCost($1,$2,$3)
=== SetLinkCost  Parameters  ===
Parameters are:
 
$1 = From Object


$1 = From Object
$2 = To Object  
$2 = To Object  
$3 = Cost     


After setting the Spatial Link Cost with this operation, you then need to perform the Spatial Link Cache Flush operation, so that the new Cost information will be used in the Model Run.
$3 = Cost
 
 
 
After setting the Spatial Link Cost with this operation, you then need to perform the Spatial Link Cache Flush operation, so that the new Cost information will be used in the Model Run.  


[[Category:Routine]]
[[Category:Routine]] [[Category:Spatial_Network]] [[Category:Object/SpatialLink]]
[[Category:Spatial Network]]
[[Category:Object/SpatialLink]]

Latest revision as of 12:23, 6 March 2009

With this Routine Operation, you sets the Link Cost of a spatial link.

The Link Cost assists Planimate to decide which link to take where options exist for the item to transit to the Target.

Default Link cost is computed as a relative value between all the Spatial Links, using their on-screen distance.

SetLinkCost  Parameters

$1 = From Object

$2 = To Object

$3 = Cost


After setting the Spatial Link Cost with this operation, you then need to perform the Spatial Link Cache Flush operation, so that the new Cost information will be used in the Model Run.