Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JSONInstance

Manages the active state configuration of a state machine instance using a serializable JSON structure.

Hierarchy

  • JSONInstance

Implements

Index

Constructors

constructor

Properties

current

current: object
internal

Type declaration

isTerminated

isTerminated: boolean = false

Indicates that the state machine instance has reached a PseudoStateKind.Terminate PseudoState and therfore will no longer respond to messages.

name

name: string

The optional name of the JSONInstance.

Methods

fromJSON

  • fromJSON(json: string): any
  • Sets the active state configuration from a JSON string.

    Parameters

    • json: string

      A JSON string representation of the active state configuration.

    Returns any

getCurrent

getLastKnownState

setCurrent

toJSON

  • toJSON(): string
  • Returns the active state configuration as a JSON string.

    Returns string

    A JSON string representation of the active state configuration.

toString

  • toString(): string

Generated using TypeDoc