Class: ShowDiffTransformation

ShowDiffTransformation

This transformation generates a transformed model by comparing the hosts of the given model with the hosts of the model in the other execution. Dissimilar hosts are re-drawn as rhombuses. A comparison for processes that appear in both graphs is also made and dissimilar events in these processes are re-drawn as rhombuses uniqueHosts is an empty array that's populated in showDiffTransformation.compare() with host names for hosts that only show up in viewL or viewR. This is used in global.js to draw these unique hosts as rhombuses vs squares when they are hidden by the user Similarly, uniqueEvents is an empty array that's populated in showDiffTransformation. compareNodeContent() with the id of visual nodes that should be drawn with an outline of a rhombus when clicked on. This is used in controller.showDialog() The hiddenHosts array is passed in because this transformation also needs to compare hosts that are hidden and redraw them as rhombuses if they only appear in one of viewL or viewR

Constructor

new ShowDiffTransformation()

Constructs a ShowDiffTransformation that will re-draw all dissimilar hosts (comparison based on hosts' names) and events (comparison based on the event capture group) between two executions, as rhombuses.
Source:

Methods

compare(model)

Compares the hosts of the given model with the hosts of viewBeingComparedTo. Dissimilar hosts are re-drawn as rhombuses and hosts that appear in both models have their processes compared node by node.
Parameters:
Name Type Description
model VisualGraph The VisualGraph to transform
Source:

compareNodeContent(model, next, otherNext)

Compares processes node by node to find events that are dissimilar. Nodes are compared by the event capture group and different nodes are re-drawn as a rhombus
Parameters:
Name Type Description
model VisualGraph The VisualGraph to transform
next ModelNode The first non-start node in this graph
otherNext ModelNode The first non-start node in the graph of the other execution
Source:

compareNodes(model, host)

Compares events in processes with the same host
Parameters:
Name Type Description
model VisualGraph The VisualGraph to transform
host String A host that's common to both executions
Source:

transform(model)

Performs the transformation on the given VisualGraph. The VisualGraph and its underlying Graph are modified in place
Parameters:
Name Type Description
model VisualGraph The VisualGraph to transform
Source: