public sealed class QueryTestOne reading, normalised, clamped, curved, and used to filter or to score or to both.
Remarks
This is UtilityConsideration with a point substituted for an agent, which is doc 37 § D14 in one sentence. The curve is the same IResponseCurve the utility editor draws, and the combination is the same Score``1 — so an author who has learned one of the two has learned both.
⚠ A test that cannot answer filters the point rather than scoring it zero. "There is no path to here" and "the path to here is long" are different facts, and a reading of NaN says the first. Scoring it zero would be a veto that a Score test has no business casting.
Fields and properties (11)
public IQueryTest TestWhat it reads.
public IResponseCurve CurveThe shape the normalised reading goes through.
public Symbol NameWhat it is called.
public QueryTestPurpose PurposeWhat it is for.
public float MinimumThe reading that normalises to zero.
public float MaximumThe reading that normalises to one.
public float FloorA reading below this filters the point. Ignored by a pure scoring test.
public float CeilingA reading above this filters the point. Ignored by a pure scoring test.
public float WeightHow much this test counts for, against the others.
public bool FiltersWhether it rejects points.
public bool ScoresWhether it contributes to the score.
Methods (2)
public QueryTest(IQueryTest test, IResponseCurve? curve = null)Creates a test.
public bool Run(in AgentContext context, in QueryOrigin origin, in QueryPoint point, out float score)Runs it against one point.
Used by (9)
- EnvironmentQueryVixen.Ai
- QueryContentCompilerVixen.Ai
- QueryContentTestsVixen.Ai.Tests
- QueryPreviewTestsVixen.Ai.Diagnostics.Tests
- QueryScorerExitCriteriaTestsVixen.Ai.Tests
- QueryTestPurposeTestsVixen.Ai.Tests
- RunQueryNodeTestsVixen.Ai.Nodes.Tests
- SeamTestsVixen.Ai.Nodes.Tests
- WorldQueryTestsVixen.Ai.Nodes.Tests