Class Observe

    • Constructor Detail

      • Observe

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

      • 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. runId is not accepted and will be created internally to guarantee unique value.

        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 auto-generated runId and 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. runId is not accepted and will be created internally to guarantee unique value.

        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 with auto-generated runId
      • typeName

        public static java.lang.String typeName()
      • jParamSet

        public static java.util.Set<Parameter<?>> jParamSet()
      • size

        public static int size()
      • add

        public static <P extends Parameter<?>> T add​(P parameter)
      • madd

        public static <P extends Parameter<?>> T madd​(scala.collection.Seq<P> parametersToAdd)
      • madd

        public static <P extends Parameter<?>> T madd​(scala.collection.immutable.Set<P> parametersToAdd)
      • get

        public static <S> scala.Option<Parameter<S>> get​(Key<S> key)
      • jGet

        public static <S> java.util.Optional<Parameter<S>> jGet​(Key<S> key)
      • get

        public static <S> scala.Option<Parameter<S>> get​(java.lang.String keyName,
                                                         KeyType<S> keyType)
      • jGet

        public static <S> java.util.Optional<Parameter<S>> jGet​(java.lang.String keyName,
                                                                KeyType<S> keyType)
      • jFind

        public static <S> java.util.Optional<Parameter<S>> jFind​(Parameter<S> parameter)
      • parameter

        public static final <S> Parameter<S> parameter​(Key<S> key)
      • exists

        public static <S> boolean exists​(Key<S> key)
      • remove

        public static <S> T remove​(Key<S> key)
      • remove

        public static <P extends Parameter<?>> T remove​(P parameter)
      • dataToString

        protected static java.lang.String dataToString()
      • toString

        public static java.lang.String toString()
      • contains

        public static boolean contains​(Key<?> key)
      • missingKeys

        public static scala.collection.immutable.Set<java.lang.String> missingKeys​(scala.collection.Seq<Key<?>> keys)
      • jMissingKeys

        public static java.util.Set<java.lang.String> jMissingKeys​(scala.collection.Seq<Key<?>> keys)
      • getStringMap

        public static scala.collection.immutable.Map<java.lang.String,​java.lang.String> getStringMap()
      • jGetStringMap

        public static java.util.Map<java.lang.String,​java.lang.String> jGetStringMap()
      • madd

        public static <P extends Parameter<?>> T madd​(P... parametersToAdd)
      • jMissingKeys

        public static java.util.Set<java.lang.String> jMissingKeys​(Key<?>... keys)
      • jMaybeObsId

        public static java.util.Optional<ObsId> jMaybeObsId()
      • canEqual

        public abstract static boolean canEqual​(java.lang.Object that)
      • equals

        public abstract static boolean equals​(java.lang.Object that)
      • productElement

        public abstract static java.lang.Object productElement​(int n)
      • productArity

        public abstract static int productArity()
      • productIterator

        public static scala.collection.Iterator<java.lang.Object> productIterator()
      • productPrefix

        public static java.lang.String productPrefix()
      • runId

        public Id runId()
        Description copied from interface: Command
        unique Id for command parameter set
        Specified by:
        runId in interface Command
        Returns:
        (undocumented)
      • 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)
      • 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 runId and provided data
      • cloneCommand

        public Observe cloneCommand()
        Create a new Observer instance from an existing instance

        Returns:
        a new instance of Observe with new runId and copied data