@tinyactors/scxmljs
    Preparing search index...

    Class SystemTracker

    Tracks the whole system of one root session: invoked children (recursively, as they appear), external services, and message traffic between them. Fires "change" (debounced to one per task) whenever something changes. Timestamps come from the session clock, so "recent" stays right when a PlaybackClock is paused, stepped or sped up.

    Hierarchy

    • EventTarget
      • SystemTracker
    Index

    Constructors

    Properties

    clock: Clock

    The time source for traffic timestamps.

    lastStep?: StepInfo

    What the most recent macrostep of any machine did.

    links: Map<string, SystemLink> = ...

    Links by from→to key.

    machines: Map<string, MachineInfo> = ...

    Every machine seen so far, by session id (terminated ones stay, with status done).

    The root session.

    services: Map<string, ServiceInfo> = ...

    The external services, by type URI.

    stepCount: number = 0

    Macrosteps taken by any machine in the system (for stepping).

    Methods

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • Stop listening to every tracked session.

      Returns void

    • Did messages flow over this link within the last windowMs of session time?

      Parameters

      Returns boolean

    • Links touching a node, busiest first.

      Parameters

      • key: string

      Returns SystemLink[]

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | EventListenerOptions

      Returns void