A State variable that indicates the 'current' or actual state.

Hierarchy

Constructors

Properties

paramSet: Parameter<Key>[] = []

an optional initial set of items (keys with values)

prefix: Prefix

identifies the target subsystem

stateName: string

identifies the name of the state

Methods

  • Adds several parameters to the parameter set

    Type Parameters

    Parameters

    • parametersToAdd: P[]

      the list of parameters to add to the parameter set

    Returns CurrentState

    a new instance of this parameter set with the given parameter added

    madd ensures check for duplicate key

    P must be a subclass of Parameter

  • The number of parameters in this parameter set

    Returns number

    the number of parameters in the parameter set