Animation and stepper support for graph-based models can be easily realized in ADOxx, since the models developed in ADOxx represent directed graphs. As an example, please find attached an example implementation that builds on the example for graph algorithms as provided in this forum post: http://www.adoxx.org/live/faq/-/message_boards/message/59645
The basic idea is to provide an animation through a graph and trigger custom action for each node in the graph. The script supports:
- dynamic detection of start and end nodes based on the connectors pointing in or out. If multiple start nodes have been found, a selection box is presented
- branches: in case a branch in the graph is detected = more than 1 outgoing connector, a selectionbox is presented that allows the user to select the next object that the stepper should go
- subgraph: in case subgraphs are linked, the user can decide to jump into the subgraph and step through or jump over that node.
- action procedure: to implement triggers for custom actions in a seperate procedure
Please find attached an ABL, ADL. The functionality is triggered in the menu entry "Graph analysis" -> "Step graph"
.