TreeBuilder Provides methods to build program node trees that can then be passed to the application for insertion to the main program.

Hierarchy (view full)

Constructors

Properties

communicationChannel: CommunicationChannel

Methods

  • Appends a child node to the subtree of the given parent node

    Parameters

    • parentNode: BranchNode

      The BranchNode to add the child to

    • node: ProgramNode

      The child ProgramNode to be added to the subtree

    Returns void

  • Turns the passed in ProgramNode into a BranchNode, allowing children to be added to the subtree of the given node.

    Parameters

    • node: ProgramNode

      The ProgramNode to convert to a BranchNode

    Returns BranchNode

  • Requests a new instance of a ProgramNode from the application

    Parameters

    • ofType: string

      The type of the ProgramNode to be instantiated - see the nodeType enum for the builtin types.

    Returns Promise<ProgramNode>

  • returns a reply promise to the specified message

    Type Parameters

    • T

    Parameters

    • type: string

      The type of message being sent

    • Optionaldata: 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

    • Optionaldata: any

      The message data

    Returns Observable<T>

  • returns a reply promise for the requested message

    Type Parameters

    • T

    Parameters

    • type: string

      The type of message being sent

    • Optionaldata: any

      The message data

    Returns Promise<T>

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

    Type Parameters

    • T

    Parameters

    • type: string

      The type of message being sent

    • Optionaldata: any

      The message data

    Returns Observable<T>