case class CurrentState(prefix: Prefix, stateName: StateName, paramSet: Set[Parameter[_]]) extends ParameterSetType[CurrentState] with ParameterSetKeyData with StateVariable with Product with Serializable
A state variable that indicates the current or actual state.
- prefix
identifies the target subsystem
- stateName
identifies the name of the state
- paramSet
an optional initial set of items (keys with values)
- Alphabetic
- By Inheritance
- CurrentState
- Serializable
- Product
- Equals
- StateVariable
- CommandSerializable
- ParameterSetKeyData
- ParameterSetType
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CurrentState(currentStateName: StateName, command: Setup)
A Java helper method to create a CurrentState from a Setup
- new CurrentState(prefix: Prefix, currentStateName: StateName)
A Java helper method to construct with String
- new CurrentState(prefix: Prefix, stateName: StateName, paramSet: Set[Parameter[_]])
- prefix
identifies the target subsystem
- stateName
identifies the name of the state
- paramSet
an optional initial set of items (keys with values)
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): CurrentState
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() @IntrinsicCandidate()
- 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[_]]): CurrentState
Create a new CurrentState instance when a parameter is added or removed
Create a new CurrentState instance when a parameter is added or removed
- data
set of parameters
- returns
a new instance of CurrentState with provided data
- Attributes
- protected
- Definition Classes
- CurrentState → 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() @IntrinsicCandidate()
- 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]): CurrentState
- 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]): CurrentState
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*): CurrentState
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() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val paramSet: Set[Parameter[_]]
an optional initial set of items (keys with values)
an optional initial set of items (keys with values)
- Definition Classes
- CurrentState → StateVariable → 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
- val prefix: Prefix
identifies the target subsystem
identifies the target subsystem
- Definition Classes
- CurrentState → StateVariable → ParameterSetKeyData
- final def prefixStr: String
The prefix for the parameter set
The prefix for the parameter set
- Definition Classes
- ParameterSetKeyData
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def remove[P <: Parameter[_]](parameter: P): CurrentState
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]): CurrentState
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
- val stateName: StateName
identifies the name of the state
identifies the name of the state
- Definition Classes
- CurrentState → StateVariable
- final def subsystem: Subsystem
The subsystem for the parameter set
The subsystem for the parameter set
- Definition Classes
- ParameterSetKeyData
- 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
- StateVariable → 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])