XMarkerListToCostGraph¶
-
MLModule
¶ author Christian Schumann
package FMEstable/ReleaseMeVis
dll MLCostGraph
definition MLCostGraph.def see also XMarkerShortestPath
,CostGraphCheapestPath
,CostGraphGenericCostPlugin
,CostGraphEdgeLengthCostPlugin
,CostGraphClosestVertex
keywords Dijkstra
,shortest
,path
Purpose¶
Creates a cost graph based on the given input XMarkerList. Each possible pair of markers is evaluated based on the connected edge cost plugin. According to filter criteria, certain pairs are rejected. The remaining pairs are added as edges to the cost map. The cost for the edge is computed by the edge cost plugin. The output cost graph contains a boost graph (adjacency list) and can be used by BoostCostMapShortestPath
.
Usage¶
Connect the XMarkerList to inXMarkerList
. Select and connect a suited edge cost plugin (e.g. CostGraphEdgeLengthCostPlugin
, CostGraphGenericCostPlugin
) to inCostPlugin
and connect the output to a CostGraphCheapestPath
module.
Details¶
The complexity of the computations carried out by this module is O(n^2) where n is the number of markers in the input XMarkerList. It also depends on the implementation of the used cost plugin. However, it has to be updated only once. The plugin modules typically have no update mechanism. Any change in their fields is treated by this modules like a change of its own fields.
Input Fields¶
Output Fields¶
Parameter Fields¶
Field Index¶
[] : Trigger |
Status Message : String |
Clear : Trigger |
Update : Trigger |
doNotClearOnFailedUpdate : Bool |
|
Has Valid Output : Bool |
|
Number of Edges : Integer |
|
Number of Vertices : Integer |
|
On Input Change Behavior : Enum |
|
Status Code : Enum |
Visible Fields¶
On Input Change Behavior¶
-
name:
onInputChangeBehavior
, type:
Enum
, default:
Clear
, deprecated name:
shouldUpdateAutomatically,shouldAutoUpdate
¶ Declares how the module should react if a value of an input field changes.
Values:
Title | Name | Deprecated Name |
---|---|---|
Update | Update | TRUE |
Clear | Clear | FALSE |
Status Code¶
-
name:
statusCode
, type:
Enum
, persistent:
no
¶ Reflects module’s status (successful or failed computations) as one of some predefined enumeration values.
Values:
Title | Name |
---|---|
Ok | Ok |
Invalid input object | Invalid input object |
Invalid input parameter | Invalid input parameter |
Internal error | Internal error |
Status Message¶
-
name:
statusMessage
, type:
String
, persistent:
no
¶ Gives additional, detailed information about status code as human-readable message.
Has Valid Output¶
-
name:
hasValidOutput
, type:
Bool
, persistent:
no
¶ Indicates validity of output field values (success of computation).
[]¶
-
name:
updateDone
, type:
Trigger
, persistent:
no
¶ Notifies that an update was performed (Check status interface fields to identify success or failure).