Package csw.params.commands
Class Wait
- java.lang.Object
 - 
- csw.params.core.generics.ParameterSetType<Wait>
 - 
- csw.params.commands.Wait
 
 
 
- 
- All Implemented Interfaces:
 Command,SequenceCommand,java.io.Serializable,scala.Equals,scala.Product
public class Wait extends ParameterSetType<Wait> implements SequenceCommand, 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 Summary
Constructors Constructor Description Wait(Id runId, Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)Wait(Prefix source, CommandName commandName, java.util.Optional<ObsId> maybeObsId)A java helper to construct Wait command 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Waitapply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId)The apply method is used to create Wait command by end-user.static Waitapply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)The apply method is used to create Wait command by end-user.WaitcloneCommand()Create a new Wait instance from an existing instanceCommandNamecommandName()The name of commandprotected Waitcreate(scala.collection.immutable.Set<Parameter<?>> data)Create a new Wait 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.ParameterSetType
add, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface csw.params.commands.Command
jMaybeObsId, paramType, toString, typeName 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
Wait
public Wait(Id runId, Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)
 
- 
Wait
public Wait(Prefix source, CommandName commandName, java.util.Optional<ObsId> maybeObsId)
A java helper to construct Wait command- Parameters:
 source- (undocumented)commandName- (undocumented)maybeObsId- (undocumented)
 
 - 
 
- 
Method Detail
- 
apply
public static Wait apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId)
The apply method is used to create Wait command by end-user. runId is not accepted and will be created internally to guarantee unique value.- Parameters:
 source- prefix representing source of the commandcommandName- the name of the commandmaybeObsId- an optional obsId for command- Returns:
 - a new instance of Wait with auto-generated runId and empty paramSet
 
 
- 
apply
public static Wait apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)
The apply method is used to create Wait command by end-user. runId is not accepted and will be created internally to guarantee unique value.- Parameters:
 source- prefix representing source of the commandcommandName- the name of the commandmaybeObsId- an optional obsId for commandparamSet- an initial set of parameters (keys with values)- Returns:
 - a new instance of Wait with auto-generated runId
 
 
- 
runId
public Id runId()
Description copied from interface:Commandunique Id for command parameter set 
- 
source
public Prefix source()
Description copied from interface:CommandPrefix representing source of the command 
- 
commandName
public CommandName commandName()
Description copied from interface:CommandThe name of command- Specified by:
 commandNamein interfaceCommand- Returns:
 - (undocumented)
 
 
- 
maybeObsId
public scala.Option<ObsId> maybeObsId()
Description copied from interface:CommandAn optional obsId for command- Specified by:
 maybeObsIdin interfaceCommand- Returns:
 - (undocumented)
 
 
- 
paramSet
public scala.collection.immutable.Set<Parameter<?>> paramSet()
Description copied from class:ParameterSetTypeHolds the parameters for this parameter set- Specified by:
 paramSetin interfaceCommand- Specified by:
 paramSetin classParameterSetType<Wait>- Returns:
 - (undocumented)
 
 
- 
create
protected Wait create(scala.collection.immutable.Set<Parameter<?>> data)
Create a new Wait instance when a parameter is added or removed- Specified by:
 createin classParameterSetType<Wait>- Parameters:
 data- set of parameters- Returns:
 - a new instance of Wait with new runId and provided data
 
 
- 
cloneCommand
public Wait cloneCommand()
Create a new Wait instance from an existing instance- Returns:
 - a new instance of Wait with new runId and copied data
 
 
 - 
 
 -