Output Area Model implementation which is able to limit number of outputs stored.

Hierarchy (view full)

Implements

Constructors

Properties

_maxLength: number
clearNext: boolean

A flag that is set when we want to clear the output area after the next addition to it.

The output content factory used by the model.

An observable list containing the output models for this output area.

Accessors

  • get isDisposed(): boolean
  • Test whether the model is disposed.

    Returns boolean

  • get length(): number
  • Get the length of the items in the model.

    Returns number

  • get trusted(): boolean
  • Get whether the model is trusted.

    Returns boolean

  • set trusted(value): void
  • Set whether the model is trusted.

    Notes

    Changing the value will cause all of the models to re-set.

    Parameters

    • value: boolean

    Returns void

Methods

  • Add an output, which may be combined with previous output.

    Parameters

    • output: ILogOutput

    Returns number

    The total number of outputs.

    Notes

    The output bundle is copied. Contiguous stream outputs of the same name are combined. The oldest outputs are possibly removed to ensure the total number of outputs is at most .maxLength.

  • Clear all of the output.

    Parameters

    • Optional wait: boolean

      Delay clearing the output until the next message is added.

    Returns void