Observe Command

Hierarchy

Implements

  • Command<typeof ObserveL>

Constructors

  • A parameter set for setting telescope and instrument parameters.

    Parameters

    • source: Prefix

      prefix representing source of the command

    • commandName: string

      the name of the command

    • paramSet: Parameter<Key>[] = []

      an optional set of parameters

    • maybeObsId: Option<string> = undefined

      an optional obsId for command

    Returns Observe

    a new instance of Observe

Properties

_type: "Observe" = ObserveL
commandName: string

the name of the command

maybeObsId: Option<string> = undefined

an optional obsId for command

paramSet: Parameter<Key>[] = []

an optional set of parameters

source: Prefix

prefix representing source of the command

Methods

  • Adds several parameters to the parameter set

    Type Parameters

    Parameters

    • parametersToAdd: P[]

      the list of parameters to add to the parameter set

    Returns Observe

    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