Class DecisionFigureTornado
java.lang.Object
network.ike.docs.koncept.DecisionFigureTornado
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne measure's bar.static enumWhat the root chose along a stretch of a bar, against what it chose at the base.static interfaceHow an amount on the axis is printed.static final recordA stretch of a bar between two cuts, by where each cut falls on the axis.static final recordA flip, by where it falls on the axis;thresholdis the measure's value there, printed with its unit, for a root flip.static final recordThe sweep as the tornado reads it. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DecisionFigurebuild(DecisionFigureTornado.Tornado tornado, double width, DecisionFigureTornado.Money money) Builds the figure.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.
-
Field Details
-
BASE
public static final double BASEThe surface's base font size, from which every other size follows as it does on the live chart.- See Also:
-
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 sweepwidth- the figure's width, which the bars share after the names and the captionsmoney- how the axis prints an amount
-
ticks
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.
-