Precedence Order Rank Resolver (two flags)
Twoactualflagindependently applicableprecedenceranksascending,unresolvedequalprioritygroupretained,no inferrednational precedence. Actual independently applicable flag/cloth/manufacturer/jurisdiction/protocol/sourceedition,units/calibration and observations external;not legal/display precedence,authenticity,visibility or structural safety approval.
Description
Flag precedence ranks summarize an independently established display protocol.
Flag precedence ranks summarize an independently established display protocol.1
Equal ranks need further protocol decisions, so preserving a tie is useful before laying out two flags.
When to use Precedence Order Rank Resolver (two flags)
Use this tool to apply the stated precedence order rank resolver (two flags) operation with an explicit input and unit basis.
How to use Precedence Order Rank Resolver (two flags) and how it works
- Establish the measurement basis and units described above.
- Enter actualFlagLabels, callerIndependentApplicablePrecedenceRanks and run the tool.
- Read result.orderedFlagGroups, result.hasUnresolvedEqualRank using the output meanings below.
- If input is rejected, correct the stated type, range, ordering or alignment issue and rerun; review successful results under the declared convention.
| Input field | Meaning | Value type | Requirement |
|---|---|---|---|
| actualFlagLabels | Flag labels, on the basis specified in the algorithm. | array of string | required; dense; align related rows as specified; at most 128 strings; 128 UTF-16 units each; further conditions in the algorithm |
| callerIndependentApplicablePrecedenceRanks | Precedence ranks, on the basis specified in the algorithm. | array of number | required; dense; align related rows as specified; further conditions in the algorithm |
Require exactly two distinct nonblank labels and aligned integer ranks 0–10,000. Sort ascending rank into singleton groups; equal ranks remain together and set the unresolved flag.
groups = ascending-rank groups; tie = ranks[0] = ranks[1] Apply the declared units, ordering and branch conditions.
| Output field | Meaning | Value type |
|---|---|---|
| result | Object containing the declared output fields. | object |
| result.orderedFlagGroups | Groups in ascending rank, retaining original label order within each tie. | array |
| result.hasUnresolvedEqualRank | True when at least one group has equal-rank labels. | boolean |
{
"input": {
"actualFlagLabels": [
"a",
"b"
],
"callerIndependentApplicablePrecedenceRanks": [
1,
1
]
},
"output": {
"result": {
"orderedFlagGroups": [
[
"a",
"b"
]
],
"hasUnresolvedEqualRank": true
}
}
} Limitations and assumptions
The output applies the declared operation to the values you supply. Establish the measurement basis, units, coefficients and any caller-selected rules before interpreting it. The tool does not independently collect or verify observations or decide whether a model or reference applies.
Supply explicit required fields with the documented types and dense aligned arrays. Unknown fields, wrong types and nonfinite numbers are rejected. Branch-specific constraints are explained above. A successful false boolean, negative signed difference, empty slice or unresolved tie is distinct from an input error. Very large inputs or outputs may be rejected by shared resource limits.
Alternative or Complementary methods
For a related operation, use Multiple Flag Row Ordering Planner. A row of flags can be organized into priority groups after precedence ranks have been independently established.
For a related operation, use Half-Staff Hoist Position Calculator. A half-staff position depends on an applicable lowering instruction and a defined hoist-position reference.
References
Similar or alternative tools
- Multiple Flag Row Ordering Planner
A row of flags can be organized into priority groups after precedence ranks have been independently established.
- Half-Staff Hoist Position Calculator
A half-staff position depends on an applicable lowering instruction and a defined hoist-position reference.