Class Observe

All Implemented Interfaces:
Command, ControlCommand, SequenceCommand, Serializable, scala.Equals, scala.Product

public class Observe extends ParameterSetType<Observe> implements ControlCommand, scala.Product, Serializable
A parameter set for setting telescope and instrument parameters.
See Also:
  • Constructor Details

    • Observe

      public Observe(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)
    • Observe

      public Observe(Prefix source, CommandName commandName, Optional<ObsId> maybeObsId)
      A java helper to construct Observe command
      Parameters:
      source - (undocumented)
      commandName - (undocumented)
      maybeObsId - (undocumented)
  • Method Details

    • apply

      public static Observe apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId)
      The apply method is used to create Observe command by end-user.

      Parameters:
      source - prefix representing source of the command
      commandName - the name of the command
      maybeObsId - an optional obsId for command
      Returns:
      a new instance of Observe with empty paramSet
    • apply

      public static Observe apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)
      The apply method is used to create Observe command by end-user.

      Parameters:
      source - prefix representing source of the command
      commandName - the name of the command
      maybeObsId - an optional obsId for command
      paramSet - an initial set of parameters (keys with values)
      Returns:
      a new instance of Observe
    • source

      public Prefix source()
      Description copied from interface: Command
      Prefix representing source of the command
      Specified by:
      source in interface Command
      Returns:
      (undocumented)
    • commandName

      public CommandName commandName()
      Description copied from interface: Command
      The name of command
      Specified by:
      commandName in interface Command
      Returns:
      (undocumented)
    • maybeObsId

      public scala.Option<ObsId> maybeObsId()
      Description copied from interface: Command
      An optional obsId for command
      Specified by:
      maybeObsId in interface Command
      Returns:
      (undocumented)
    • paramSet

      public scala.collection.immutable.Set<Parameter<?>> paramSet()
      Description copied from class: ParameterSetType
      Holds the parameters for this parameter set
      Specified by:
      paramSet in interface Command
      Specified by:
      paramSet in class ParameterSetType<Observe>
      Returns:
      (undocumented)
    • create

      protected Observe create(scala.collection.immutable.Set<Parameter<?>> data)
      Create a new Observe instance when a parameter is added or removed

      Specified by:
      create in class ParameterSetType<Observe>
      Parameters:
      data - set of parameters
      Returns:
      a new instance of Observe with new provided data