Look up test membership in a hazard group collection¶
Provides lookup, containment-test, and removal operations over an already-retrieved clsHazardGroupCollection.
| Field | Value |
|---|---|
| Operation ID | op-03-hazard-group-lookup |
| Trigger | Caller query on a retrieved collection |
| Inputs | HazardGroupID or clsHazardGroup instance |
| Outputs | Matching item, boolean result, or removal |
| Primary components | ItemByKey, Contains, ContainsDeleted, Remove |
| Entry point | SAIF.Business.Policy/clsHazardGroupCollection.vb |
Steps¶
- Linear scan of
List(orm_deletedListfor the deleted variants), comparingHazardGroupID(BR-POL-003). - First match is returned or removed depending on the calling method.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start(["Caller query on a<br>retrieved collection"]) --> A["Linear scan of List (or<br>m_deletedList), comparing<br>HazardGroupID"]
A --> End(["First match returned or<br>removed depending on<br>calling method"])
Failure and edge-case behavior¶
ItemByKeyreturns the last enumerated item (orNothingon an empty list) when no match is found — a fall-through defect.*
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.
Related documentation¶
Sources¶
SAIF.Business.Policy/clsHazardGroupCollection.vb