Class InjectableNopeBaseModule

Base Implementation of a Module.

The Module is used to share information and data. Although it implements the the Basic behavior to fullfill a given traget.

Export

Implements

Hierarchy

Constructors

Properties

_markedElements: {
    accessor: string;
    options: IEventOptions | IServiceOptions<any>;
    type: "event" | "method" | "prop";
}[]

Internal Element, which is used to store elements, that should be added automaticallay.

Memberof

INopeModule

author: IAuthor

A Description of the Author. Use to Mail etc.

Memberof

BaseModule

description: string

A Description of the Module. This is used to Describe roughly what the module is capable of doing.

Memberof

BaseModule

identifier: string

The Identifier of the Module.

Memberof

BaseModule

uiLinks: {
    description: string;
    link: string;
    name: string;
}[]
version: IVersion

Description of the provided Version of the Module.

Memberof

BaseModule

Accessors

  • get type(): string
  • Return the Class Identifier.

    Returns string

Methods

  • Helper Function to extract the used identifiert of Property

    Returns

    {string}

    Memberof

    NopeBaseModule

    Parameters

    • prop_event_or_func: INopeObservable<any, any, any, IEventAdditionalData> | ((...args) => Promise<any>)

      The Property or the Function to receive the Name.

    • type: "topicToPublish" | "topicToSubscribe" = null

    Returns string

  • An init Function. Used to initialize the Element.

    Returns

    Memberof

    NopeBaseModule

    Parameters

    • Rest ...args: any[]

    Returns Promise<void>

  • Helper Function to register an Event(Emitter) (a Property.)

    Returns

    Memberof

    NopeBaseModule

    Type Parameters

    • T

      Type of the Event(Emitter)

    • S = T

      Setter Type of the Event(Emitter)

    • G = T

      Getter Type of the Event(Emitter)

    Parameters

    • name: string

      Name, which should be used to register the element. The Name will ALLWAYS (automatically) be assembled using the modules identifier an then the name.

    • emitter: INopeObservable<T, S, G, IEventAdditionalData>

      The Event(Emitter) representing the Property

    • options: IEventOptions

      The Options used to define the registration.

    Returns Promise<void>

  • Function used to register a Method. This Method will be available in the shared network.

    Returns

    Memberof

    NopeBaseModule

    Parameters

    • name: string

      Name of the Method, which is used during registration at the dispatcher

    • method: ((...args) => Promise<any>)

      The function itself. It must be async.

        • (...args): Promise<any>
        • Parameters

          • Rest ...args: any[]

          Returns Promise<any>

    • options: IServiceOptions<any>

      The Options, used for registering.

    Returns Promise<void>

  • Helper Function to register an Observable (a Property.)

    Returns

    Memberof

    NopeBaseModule

    Type Parameters

    • T

      Type of the Property

    • S = T

      Setter Type of the Property

    • G = T

      Getter Type of the Property

    Parameters

    • name: string

      Name, which should be used to register the element. The Name will ALLWAYS (automatically) be assembled using the modules identifier an then the name.

    • observable: INopeObservable<T, S, G, IEventAdditionalData>

      The Observable representing the Property

    • options: IEventOptions

      The Options used to define the registration.

    Returns Promise<void>

  • Helper Function to unregister an Eventbased Property

    Returns

    Memberof

    NopeBaseModule

    Parameters

    • name: string

      Name of the Property, that has been used to register.

    Returns Promise<void>

  • Helper Function to unregister an Observable (a Property.)

    Returns

    Memberof

    NopeBaseModule

    Parameters

    • name: string

      Name of the Property, that has been used to register.

    Returns Promise<void>

Generated using TypeDoc