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

    Class JLSLoader

    A circuit loader that loads JLS .jls circuit files.

    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.

    • Transform arbitrary data loaded from a stream or a file into a proper CircuitProject containing circuits which can be run with this engine.

      Parameters

      • stream: Stream

        The arbitrary data to transform into a circuit project.

      Returns Promise<CircuitProject>

      A valid circuit project, which contains circuits that may or may not be related via SubCircuit.

      Any error if the data is malformed or invalid in any way.

    • 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