Vixen
caa30e12
csharp
public sealed class QueryTest

One reading, normalised, clamped, curved, and used to filter or to score or to both.

Read the guide page for this →

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 Test

    What it reads.

  • public IResponseCurve Curve

    The shape the normalised reading goes through.

  • public Symbol Name

    What it is called.

  • public QueryTestPurpose Purpose

    What it is for.

  • public float Minimum

    The reading that normalises to zero.

  • public float Maximum

    The reading that normalises to one.

  • public float Floor

    A reading below this filters the point. Ignored by a pure scoring test.

  • public float Ceiling

    A reading above this filters the point. Ignored by a pure scoring test.

  • public float Weight

    How much this test counts for, against the others.

  • public bool Filters

    Whether it rejects points.

  • public bool Scores

    Whether it contributes to the score.

Methods (2)

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