Class DecisionFigureTornado

java.lang.Object
network.ike.docs.koncept.DecisionFigureTornado

public final class DecisionFigureTornado extends Object
A tornado diagram of a decision tree's one-way sensitivity as a DecisionFigure, drawn as the live TornadoChart draws it: one bar per swept measure, longest first, on one axis. The axis is the net value of the alternative the base chose, what the next best alternative would cost less what the chosen one costs, so zero is break-even, a bar is long only where its measure can change the answer, and every flip of the root's choice sits on the zero line; when the root did not decide at the base, the axis is the expected cost at the root instead. Round ticks with light gridlines cross the bars, a dashed line marks the base case and is named at its foot, and a title above the axis says what it measures. A bar spans the axis from the measure's lower end to its upper end, with each end's value printed in its own unit; it is solid when the block stated that range and hollow when the sweep assumed it. Where the root's chosen alternative flips inside the range, the bar changes colour beyond the flip and a tick carries the threshold. A legend names the colours. The builder reads a DecisionFigureTornado.Tornado, which is the sweep as numbers and names, so a sweep over the stored tree and a sweep over a block's text draw the same bars.

Kept word for word in step with its twin in komet-claude-plugin, package network.ike.komet.claude.decision.render.

  • Field Details

    • BASE

      public static final double BASE
      The surface's base font size, from which every other size follows as it does on the live chart.
      See Also:
    • FOOTNOTE

      public static final String FOOTNOTE
      The footnote's first sentences, which every tornado carries.
      See Also:
  • Method Details

    • build

      public static DecisionFigure build(DecisionFigureTornado.Tornado tornado, double width, DecisionFigureTornado.Money money)
      Builds the figure.
      Parameters:
      tornado - the sweep
      width - the figure's width, which the bars share after the names and the captions
      money - how the axis prints an amount
    • ticks

      public static List<Double> ticks(double least, double greatest, double barWidth)
      Round values for the axis: a step of one, two or five times a power of ten, the one nearest to what puts the labels about ninety units apart, from the first multiple at or above the least to the last at or below the greatest.