Écrire et vérifier un modèle › Construire des applications de données › Trace sheet

Écrire et vérifier un modèle › Construire des applications de données

Cette page n’est pas encore traduite : voici la version anglaise.

Trace sheet

A simulation trace as a spreadsheet. Every event of the run is a row; the tables group and pivot them. It does the job of the anfra Spreadsheet.

archec new my-app --kind data-app --template trace-sheet
archec ui preview my-app/main.arche --serve

What it shows#

  • A filter bar: the event kind, the message, a search on the sender and the receiver.
  • Four tiles: the events, the messages, the state changes, the nearest obstacle.
  • The distance and the speed over the run.
  • The messages by sender, with when each was first and last sent.
  • The state changes as a table from one state to the next, and in order.
  • Every event, fifteen to a page, with Export CSV.

The data#

  • data/run.json is archec sim --json: run archec sim main.arche --json --for 60s > data/run.json on your model.
  • Each event is a row: its time in seconds, its kind, from, to, msg, part, state, and the fields of its payload (distance, speed).

Limits#

  • A payload's fields are columns only when the dataset names them. Name the fields of your own messages in its measure line.

The model is lib/data-apps/trace-sheet/main.arche, and the gallery lists the other templates.