Package csw.params.core.states
Class DemandState
- All Implemented Interfaces:
ParameterSetKeyData
,StateVariable
,CommandSerializable
,Serializable
,scala.Equals
,scala.Product
public class DemandState
extends ParameterSetType<DemandState>
implements ParameterSetKeyData, StateVariable, scala.Product, Serializable
A state variable that indicates the ''demand'' or requested state.
param: prefix identifies the target subsystem param: stateName identifies the name of the state param: paramSet initial set of items (keys with values)
- See Also:
-
Constructor Summary
ConstructorDescriptionDemandState
(StateName stateName, Setup command) A Java helper method to create a DemandState from a SetupDemandState
(Prefix prefix, StateName stateName) A Java helper method to construct with StringDemandState
(Prefix prefix, StateName stateName, scala.collection.immutable.Set<Parameter<?>> paramSet) -
Method Summary
Modifier and TypeMethodDescriptionstatic DemandState
A helper method to create DemandStateprotected DemandState
Create a new DemandState instance when a parameter is added or removedscala.collection.immutable.Set<Parameter<?>>
paramSet()
Holds the parameters for this parameter setprefix()
Returns an object providing the subsystem and prefix for the parameter setidentifies the name of the stateMethods inherited from class csw.params.core.generics.ParameterSetType
add, apply, contains, dataToString, exists, find, get, get, getStringMap, jFind, jGet, jGet, jGetStringMap, jMadd, jMissingKeys, jMissingKeys, jParamSet, madd, madd, madd, missingKeys, parameter, remove, remove, size, toString, typeName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface csw.params.core.generics.ParameterSetKeyData
prefixStr, subsystem, toString
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
Methods inherited from interface csw.params.core.states.StateVariable
toString, typeName
-
Constructor Details
-
DemandState
-
DemandState
A Java helper method to construct with String- Parameters:
prefix
- (undocumented)stateName
- (undocumented)
-
DemandState
A Java helper method to create a DemandState from a Setup- Parameters:
stateName
- (undocumented)command
- (undocumented)
-
-
Method Details
-
apply
public static DemandState apply(Prefix prefix, StateName stateName, scala.collection.immutable.Set<Parameter<?>> paramSet) A helper method to create DemandState- Parameters:
prefix
- identifies the target subsystemstateName
- identifies the name of the stateparamSet
- an optional initial set of items (keys with values)- Returns:
- an instance of DemandState
-
prefix
Description copied from interface:ParameterSetKeyData
Returns an object providing the subsystem and prefix for the parameter set- Specified by:
prefix
in interfaceParameterSetKeyData
- Specified by:
prefix
in interfaceStateVariable
- Returns:
- (undocumented)
-
stateName
Description copied from interface:StateVariable
identifies the name of the state- Specified by:
stateName
in interfaceStateVariable
- Returns:
- (undocumented)
-
paramSet
Description copied from class:ParameterSetType
Holds the parameters for this parameter set- Specified by:
paramSet
in interfaceStateVariable
- Specified by:
paramSet
in classParameterSetType<DemandState>
- Returns:
- (undocumented)
-
create
Create a new DemandState instance when a parameter is added or removed- Specified by:
create
in classParameterSetType<DemandState>
- Parameters:
data
- set of parameters- Returns:
- a new instance of DemandState with provided data
-