Class DotExporter

All Implemented Interfaces:
JustificationVisitor<Void>

public class DotExporter extends AbstractModelExporter
Serialises a single JustificationModel to Graphviz DOT text, ready to be compiled by dot. Both Justification and Template produce a valid digraph; AbstractSupport nodes in templates are rendered as dotted rectangles.

This visitor operates on one model at a time. Use SelectModel in the compilation pipeline to extract the desired model from a Unit before invoking this exporter.

When a model has a parent template, each ancestor is rendered in its own labelled subgraph cluster (including AbstractSupport placeholders). Concrete elements that override an abstract support are rendered outside the cluster, connected to their placeholder by a dashed inv/inv arrow.

Node visual styles are defined in DotNodeStyle. Label escaping and word-wrapping utilities live in DotLabel.