@willow-dls/core
    Preparing search index...

    Class CircuitVerseLoader

    A circuit loader that loads CircuitVerse .cv files. This loader is the reference implementation of a circuit loader and actually is the inspiration for a lot of the design of this engine. Decisions about how the engine should be structured were made largely around how CircuitVerse stores data in their data files, which means that circuits loaded from CircuitVerse will likely run better than circuits from other engines, as this loader was developed in sync with the rest of the engine, and others were added after.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Attach a logger to this loggable object so that messages logged with log will be send to this logger. Note that this can be called multiple times and multiple loggers can be attached to the same object. Log messages will be sent to all attached loggers.

      Parameters

      Returns void

    • Everything that is loggable gets a unique ID, which can help identify instances of objects in logs when many such instances exist. This ID is normally generated automatically by CircuitLoggable when it is instantiated, unless this method has been by child classes.

      Returns string

      A unique ID among all loggable objects.

    • Log a message, sending it to all loggers associated with this loggable.

      Parameters

      • level: LogLevel

        The log level to log the message at.

      • msg: string

        The message to log.

      • Optionaldata: any

        Any additional data to associate with the message.

      Returns void

    • Propagate all registered loggers (present and future) to the given loggable. This function will register the loggable object with the object it is being called on, establishing a parent-child relationship where all changes to the parent loggers will be propagated to the children.

      Parameters

      • loggable: CircuitLoggable

        The loggable object to attach all registered loggers to.

      Returns void