Package csw.params.commands
Class Observe
- java.lang.Object
- 
- csw.params.core.generics.ParameterSetType<Observe>
- 
- csw.params.commands.Observe
 
 
- 
- All Implemented Interfaces:
- Command,- ControlCommand,- SequenceCommand,- java.io.Serializable,- scala.Equals,- scala.Product
 
 public class Observe extends ParameterSetType<Observe> implements ControlCommand, scala.Product, java.io.Serializable A parameter set for setting telescope and instrument parameters.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description Observe(Prefix source, CommandName commandName, java.util.Optional<ObsId> maybeObsId)A java helper to construct Observe commandObserve(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Observeapply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId)The apply method is used to create Observe command by end-user.static Observeapply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)The apply method is used to create Observe command by end-user.CommandNamecommandName()The name of commandprotected Observecreate(scala.collection.immutable.Set<Parameter<?>> data)Create a new Observe 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 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, jMadd, 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- 
Observepublic Observe(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet) 
 - 
Observepublic Observe(Prefix source, CommandName commandName, java.util.Optional<ObsId> maybeObsId) A java helper to construct Observe command- Parameters:
- source- (undocumented)
- commandName- (undocumented)
- maybeObsId- (undocumented)
 
 
- 
 - 
Method Detail- 
applypublic static Observe apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId) The apply method is used to create Observe command by end-user.- 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 Observe with empty paramSet
 
 - 
applypublic static Observe apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet) The apply method is used to create Observe command by end-user.- 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 Observe
 
 - 
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<Observe>
- Returns:
- (undocumented)
 
 - 
createprotected Observe create(scala.collection.immutable.Set<Parameter<?>> data) Create a new Observe instance when a parameter is added or removed- Specified by:
- createin class- ParameterSetType<Observe>
- Parameters:
- data- set of parameters
- Returns:
- a new instance of Observe with new provided data
 
 
- 
 
-