DiagramHierarchyLevel
Position of a node in the standard stig diagram hierarchy. Used to pick the color saturation step for each compound box / leaf — see stig-docs/.../internals/diagram-hierarchy.md.
Index is bottom-up: INSTRUCTION = 0 (the leaf), ACTIVITY = 6 (the outermost compound). FUNCTION = 3 is the "base color" anchor — its fill is the unmodified ASIL palette entry. Levels with index lower than FUNCTION are progressively darker (more saturated); levels with index higher than FUNCTION are progressively lighter (bleached toward white).
Adding a new level: insert with the right index and renumber the neighbours. The color routine is index-driven (see ASILPalette.colorForLevel), so no other code needs to change.
Entries
Properties
Returns a representation of an immutable list of all enum entries, in the order they're declared.
Signed offset relative to FUNCTION's index. Positive means inward (darker), negative means outward (lighter). Convenience for color routines: a positive insideOffset equals "how many levels into the hierarchy below the function level we are".
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.