Class GraphletModelBlockProcessor
java.lang.Object
org.asciidoctor.extension.BaseProcessor
org.asciidoctor.extension.BlockProcessor
network.ike.docs.koncept.GraphletModelBlockProcessor
- All Implemented Interfaces:
org.asciidoctor.extension.Processor
@Name("graphlet-model")
@Contexts(":listing")
@ContentModel(":raw")
public class GraphletModelBlockProcessor
extends org.asciidoctor.extension.BlockProcessor
The
[graphlet-model] block in the documentation build (dev-decision-point-knowledge,
settled 2026-11-06): the model of a decision as one versioned property graph, the tree's structure
and its parameters together, in the decision tree's grammar (DecisionTreeSource) plus
parameters that read the document's ANF statements by name and hold the value the tree runs at.
The block keeps its text under its id for the renderings after it, [decision-tree,
model=<id>] and [tornado, model=<id>], which hold no structure and no number, and puts in
its own place the model's parameters as a table: each at the value the tree runs at, with the
range its statement determined, and the statement or basis it comes from.
[graphlet-model, id=bimo-site-model]
----
decision: k:SiteInspectionDecision[Inspect the site?] @id=bimo-site-decision
parameter = [0.15,0.15] anf:est-material-problem
parameter = anf:est-inspection-sensitivity
alternative: k:Inspect[inspect] @id=bimo-inspect statement=anf:req-inspection
money = from anf:est-inspection-cost
…
----
A model names itself with id=, or by its root's @id when it names none. Its tree
is known to the document by its root as a tree drawn in a block is, so a tree after it may fold it
in at an outcome, tree=…. A block with no root renders as a literal block, so the text is
visible, never dropped; a block with gaps renders with them named in a note. The output is
AsciiDoc re-parsed in place, so it is backend-agnostic.-
Field Summary
Fields inherited from class org.asciidoctor.extension.BlockProcessor
name -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.asciidoctor.extension.BlockProcessor
getName, setNameMethods inherited from class org.asciidoctor.extension.BaseProcessor
createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createDocument, createList, createList, createList, createListItem, createListItem, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createSection, createSection, createSection, createSection, createSection, createTable, createTable, createTableCell, createTableCell, createTableCell, createTableCell, createTableColumn, createTableColumn, createTableRow, getConfig, log, newCursor, newCursor, newCursor, newReader, newReader, newReader, newReader, parseContent, setConfig, unwrap, updateConfig
-
Constructor Details
-
GraphletModelBlockProcessor
public GraphletModelBlockProcessor()Creates a new block processor instance.
-
-
Method Details
-
process
-