case class Struct extends ParameterSetType[Struct] with Product with Serializable
A configuration for setting telescope and instrument parameters
- Alphabetic
- By Inheritance
- Struct
- Serializable
- Product
- Equals
- ParameterSetType
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Struct()
A Java helper to create Struct with empty paramSet
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): Struct
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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[_]]): Struct
Create a new Struct instance when a parameter is added or removed
Create a new Struct instance when a parameter is added or removed
- data
a set of parameters
- returns
a new instance of Struct with provided data
- Attributes
- protected
- Definition Classes
- Struct → 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 jMadd[P <: Parameter[_]](parametersToAdd: Set[P]): Struct
- Definition Classes
- ParameterSetType
- 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]): Struct
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*): Struct
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
- 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[_]]
Holds the parameters for this parameter set
Holds the parameters for this parameter set
- Definition Classes
- Struct → ParameterSetType
- 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): Struct
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]): Struct
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
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
A comma separated string representation of all values this Struct holds
A comma separated string representation of all values this Struct holds
- Definition Classes
- Struct → ParameterSetType → 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])