Package csw.params.commands
Class Setup
- java.lang.Object
- 
- csw.params.core.generics.ParameterSetType<Setup>
- 
- csw.params.commands.Setup
 
 
- 
- All Implemented Interfaces:
- Command,- ControlCommand,- SequenceCommand,- java.io.Serializable,- scala.Equals,- scala.Product
 
 public class Setup extends ParameterSetType<Setup> implements ControlCommand, scala.Product, java.io.Serializable A parameter set for setting telescope and instrument parameters. Constructor is private to ensure RunId is created internally to guarantee unique value.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description Setup(Id runId, Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)Setup(Prefix source, CommandName commandName, java.util.Optional<ObsId> maybeObsId)A java helper to construct Setup command
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Setupapply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId)The apply method is used to create Setup command by end-user.static Setupapply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)The apply method is used to create Setup command by end-user.SetupcloneCommand()Create a new Setup instance from an existing instanceCommandNamecommandName()The name of commandprotected Setupcreate(scala.collection.immutable.Set<Parameter<?>> data)Create a new Setup instance when a parameter is added or removedscala.Option<ObsId>maybeObsId()An optional obsId for commandscala.collection.immutable.Set<Parameter<?>>paramSet()Holds the parameters for this parameter setIdrunId()unique Id for command parameter setPrefixsource()Prefix representing source of the command- 
Methods inherited from class csw.params.core.generics.ParameterSetTypeadd, apply, contains, dataToString, exists, find, get, get, getStringMap, jFind, jGet, jGet, jGetStringMap, jMissingKeys, jMissingKeys, jParamSet, madd, madd, madd, missingKeys, parameter, remove, remove, size, toString, typeName
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface csw.params.commands.CommandjMaybeObsId, paramType, toString, typeName
 
- 
 
- 
- 
- 
Constructor Detail- 
Setuppublic Setup(Id runId, Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet) 
 - 
Setuppublic Setup(Prefix source, CommandName commandName, java.util.Optional<ObsId> maybeObsId) A java helper to construct Setup command- Parameters:
- source- (undocumented)
- commandName- (undocumented)
- maybeObsId- (undocumented)
 
 
- 
 - 
Method Detail- 
applypublic static Setup apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId) The apply method is used to create Setup 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 Setup with auto-generated runId and empty paramSet
 
 - 
applypublic static Setup apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet) The apply method is used to create Setup 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 Setup with auto-generated runId
 
 - 
runIdpublic Id runId() Description copied from interface:Commandunique Id for command parameter set
 - 
sourcepublic Prefix source() Description copied from interface:CommandPrefix representing source of the command
 - 
commandNamepublic CommandName commandName() Description copied from interface:CommandThe name of command- Specified by:
- commandNamein interface- Command
- Returns:
- (undocumented)
 
 - 
maybeObsIdpublic scala.Option<ObsId> maybeObsId() Description copied from interface:CommandAn optional obsId for command- Specified by:
- maybeObsIdin interface- Command
- Returns:
- (undocumented)
 
 - 
paramSetpublic scala.collection.immutable.Set<Parameter<?>> paramSet() Description copied from class:ParameterSetTypeHolds the parameters for this parameter set- Specified by:
- paramSetin interface- Command
- Specified by:
- paramSetin class- ParameterSetType<Setup>
- Returns:
- (undocumented)
 
 - 
createprotected Setup create(scala.collection.immutable.Set<Parameter<?>> data) Create a new Setup instance when a parameter is added or removed- Specified by:
- createin class- ParameterSetType<Setup>
- Parameters:
- data- set of parameters
- Returns:
- a new instance of Setup with new runId and provided data
 
 - 
cloneCommandpublic Setup cloneCommand() Create a new Setup instance from an existing instance- Returns:
- a new instance of Setup with new runId and copied data
 
 
- 
 
-