Class ValidationService

Allows program nodes to obtain the validation response generated from their respective behavior worker.

Hierarchy

Constructors

  • Creates a new instance of the ValidationService

    Parameters

    • eventTarget: EventTarget

      the target to send message events on

    • selectedNodeId: string

      the id of the currently selected node

    Returns ValidationService

Properties

eventTarget: EventTarget
selectedNodeId: any

Methods

  • Returns the last validation response generated from the behavior worker. If the node is valid the returned response will be exactly { isValid: true } without any extra data.

    Returns Promise<ValidationResponse>

  • returns a reply promise to the specified message

    Type Parameters

    • T

    Parameters

    • type: string

      The type of message being sent

    • Optional data: any

      The message data

    Returns Promise<T>

  • returns an observable that will emit any messages replied to the specified message

    Type Parameters

    • T

    Parameters

    • type: string

      The type of message being sent

    • Optional data: any

      The message data

    Returns Observable<T>

Generated using TypeDoc