Documentation
    Preparing search index...

    Class ConformanceStateMachine<TContext>

    State machine managing dynamic object conformance evaluations. Evaluates the context dynamically based on a series of prioritised rules.

    Type Parameters

    • TContext

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    context: TContext
    currentState: ConformanceState
    rules: ConformanceRule<TContext>[] = []

    Methods

    • Adds a rule to evaluate conformance status. Rules are evaluated in priority order.

      Parameters

      Returns this

      The state machine instance.

    • Evaluates the current context and triggers transitions between conformance levels if necessary.

      Returns boolean

      True if a state change occurred, false otherwise.

    • Merges new properties into the state machine's execution context.

      Parameters

      • newContext: Partial<TContext>

        Partial context to merge.

      Returns void