case class Observe extends ParameterSetType[Observe] with ControlCommand with Product with Serializable
A parameter set for setting telescope and instrument parameters. Constructor is private to ensure RunId is created internally to guarantee unique value.
- Alphabetic
- By Inheritance
- Observe
- Serializable
- Product
- Equals
- ControlCommand
- SequenceCommand
- Command
- ParameterSetType
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Observe(source: Prefix, commandName: CommandName, maybeObsId: Optional[ObsId])
A java helper to construct Observe command
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add[P <: Parameter[_]](parameter: P): Observe
Adds a parameter to the parameter set
Adds a parameter to the parameter set
- P
the Parameter type
- parameter
the parameter to add
- returns
a new instance of this parameter set with the given parameter added
- Definition Classes
- ParameterSetType
- final def apply[S](key: Key[S]): Parameter[S]
Return the parameter associated with a Key rather than an Option
Return the parameter associated with a Key rather than an Option
- S
the Scala value type
- key
the Key to be used for lookup
- returns
the parameter associated with the Key or a NoSuchElementException if the key does not exist
- Definition Classes
- ParameterSetType
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def cloneCommand: Observe
Create a new Observer instance from an existing instance
Create a new Observer instance from an existing instance
- returns
a new instance of Observe with new runId and copied data
- val commandName: CommandName
The name of command
- def contains(key: Key[_]): Boolean
Returns true if the data contains the given key
Returns true if the data contains the given key
- Definition Classes
- ParameterSetType
- def create(data: Set[Parameter[_]]): Observe
Create a new Observe instance when a parameter is added or removed
Create a new Observe instance when a parameter is added or removed
- data
set of parameters
- returns
a new instance of Observe with new runId and provided data
- Attributes
- protected
- Definition Classes
- Observe → ParameterSetType
- def dataToString: String
A comma separated string representation of parameters
A comma separated string representation of parameters
- Attributes
- protected
- Definition Classes
- ParameterSetType
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def exists[S](key: Key[S]): Boolean
Returns true if the key exists in the parameter set
Returns true if the key exists in the parameter set
- S
the Scala value type
- key
the key to check for
- returns
true if the key is found
- Definition Classes
- ParameterSetType
- def find[S](parameter: Parameter[S]): Option[Parameter[S]]
Find a parameter based on it's keyName and keyType
Find a parameter based on it's keyName and keyType
- S
the type of values the Parameter holds
- parameter
who's keyName and keyType is used to get values and units
- returns
an Option of Parameter[S] if it is found, otherwise None
- Definition Classes
- ParameterSetType
- def get[S](keyName: String, keyType: KeyType[S]): Option[Parameter[S]]
Returns an Option with the parameter for the key if found, otherwise None
Returns an Option with the parameter for the key if found, otherwise None
- S
the value type
- keyName
the keyName for a key
- keyType
the keyType for a key
- returns
the parameter for the key, if found
- Definition Classes
- ParameterSetType
- def get[S](key: Key[S]): Option[Parameter[S]]
Returns an Option with the parameter for the key if found, otherwise None
Returns an Option with the parameter for the key if found, otherwise None
- S
the value type
- key
the Key to be used for lookup
- returns
the parameter for the key, if found
- Definition Classes
- ParameterSetType
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getStringMap: Map[String, String]
Returns a map based on this object where the keys and values are in string get (Could be useful for exporting in a get that other languages can read).
Returns a map based on this object where the keys and values are in string get (Could be useful for exporting in a get that other languages can read). Derived classes might want to add values to this map for fixed fields.
- Definition Classes
- ParameterSetType
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jFind[S](parameter: Parameter[S]): Optional[Parameter[S]]
A Java helper to find a parameter based on it's keyName and keyType
A Java helper to find a parameter based on it's keyName and keyType
- S
the type of values the Parameter holds
- parameter
who's keyName and keyType is used to get values and units
- returns
an Optional of Parameter[S] if it is found, otherwise empty
- Definition Classes
- ParameterSetType
- def jGet[S](keyName: String, keyType: KeyType[S]): Optional[Parameter[S]]
Returns an Optional with the parameter for the key if found, otherwise empty
Returns an Optional with the parameter for the key if found, otherwise empty
- S
the value type
- keyName
the keyName for a key
- keyType
the keyType for a key
- returns
the parameter for the key, if found
- Definition Classes
- ParameterSetType
- def jGet[S](key: Key[S]): Optional[Parameter[S]]
Returns an Optional with the parameter for the key if found, otherwise empty
Returns an Optional with the parameter for the key if found, otherwise empty
- S
the value type
- key
the Key to be used for lookup
- returns
the parameter for the key, if found
- Definition Classes
- ParameterSetType
- def jGetStringMap: Map[String, String]
A Java helper that returns a map based on this object where the keys and values are in string get (Could be useful for exporting in a get that other languages can read).
A Java helper that returns a map based on this object where the keys and values are in string get (Could be useful for exporting in a get that other languages can read). Derived classes might want to add values to this map for fixed fields.
- Definition Classes
- ParameterSetType
- def jMaybeObsId: Optional[ObsId]
A Java helper to acsess optional obsId
- def jMissingKeys(keys: Key[_]*): Set[String]
A Java helper that returns a set containing the names of any of the given keys that are missing in the data
A Java helper that returns a set containing the names of any of the given keys that are missing in the data
- keys
one or more keys
- Definition Classes
- ParameterSetType
- Annotations
- @varargs()
- def jParamSet: Set[Parameter[_]]
A Java helper to get parameters for this parameter set
A Java helper to get parameters for this parameter set
- Definition Classes
- ParameterSetType
- def madd[P <: Parameter[_]](parametersToAdd: Set[P]): Observe
Adds several parameters to the parameter set
Adds several parameters to the parameter set
- P
must be a subclass of Parameter
- parametersToAdd
the list of parameters to add to the parameter set
- returns
a new instance of this parameter set with the given parameter added
- Definition Classes
- ParameterSetType
- Note
madd ensures check for duplicate key
- def madd[P <: Parameter[_]](parametersToAdd: P*): Observe
Adds several parameters to the parameter set
Adds several parameters to the parameter set
- P
must be a subclass of Parameter
- parametersToAdd
the list of parameters to add to the parameter set
- returns
a new instance of this parameter set with the given parameter added
- Definition Classes
- ParameterSetType
- Annotations
- @varargs()
- Note
madd ensures check for duplicate key
- val maybeObsId: Option[ObsId]
An optional obsId for command
- def missingKeys(keys: Key[_]*): Set[String]
Returns a set containing the names of any of the given keys that are missing in the data
Returns a set containing the names of any of the given keys that are missing in the data
- keys
one or more keys
- returns
a Set of key names
- Definition Classes
- ParameterSetType
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val paramSet: Set[Parameter[_]]
An optional initial set of parameters (keys with values)
An optional initial set of parameters (keys with values)
- Definition Classes
- Observe → Command → ParameterSetType
- def paramType: ParameterSetType[_]
A helper to give access of public members of ParameterSetType
A helper to give access of public members of ParameterSetType
- returns
a handle to ParameterSetType extended by concrete implementation of this class
- Definition Classes
- Command
- final def parameter[S](key: Key[S]): Parameter[S]
Returns the actual parameter associated with a key
Returns the actual parameter associated with a key
- S
the Scala value type
- key
the Key to be used for lookup
- returns
the parameter associated with the key or a NoSuchElementException if the key does not exist
- Definition Classes
- ParameterSetType
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def remove[P <: Parameter[_]](parameter: P): Observe
Removes a parameter based on the parameter
Removes a parameter based on the parameter
- P
the type of the parameter to be removed
- parameter
to be removed from the parameter set
- returns
a new T, where T is a parameter set child with the parameter removed or identical if the parameter is not present
- Definition Classes
- ParameterSetType
- def remove[S](key: Key[S]): Observe
Remove a parameter from the parameter set by key
Remove a parameter from the parameter set by key
- S
the Scala value type
- key
the Key to be used for removal
- returns
a new T, where T is a parameter set child with the key removed or identical if the key is not present
- Definition Classes
- ParameterSetType
- val runId: Id
unique Id for command parameter set
- def size: Int
The number of parameters in this parameter set
The number of parameters in this parameter set
- returns
the number of parameters in the parameter set
- Definition Classes
- ParameterSetType
- val source: Prefix
Prefix representing source of the command
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
A common toString method for all concrete implementation
A common toString method for all concrete implementation
- returns
the string representation of command
- Definition Classes
- Command → AnyRef → Any
- def typeName: String
A name identifying the type of parameter set, such as "setup", "observe".
A name identifying the type of parameter set, such as "setup", "observe". This is used in the JSON and toString output.
- Definition Classes
- ParameterSetType
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])