Class LocatorRanker
java.lang.Object
com.shaft.capture.generate.LocatorRanker
Deterministically ranks captured locator evidence with explainable scoring.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRanked selection and fallback candidates.static final recordOne scored candidate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselect(ElementSnapshot target, EventContext context, boolean interaction) Selects the strongest candidate for one captured target.
-
Constructor Details
-
LocatorRanker
public LocatorRanker()
-
-
Method Details
-
select
public LocatorRanker.LocatorSelection select(ElementSnapshot target, EventContext context, boolean interaction) Selects the strongest candidate for one captured target.- Parameters:
target- target evidencecontext- event contextinteraction- whether the event interacts with the target- Returns:
- ranked selection
-