public class Observe extends ParameterSetType<Observe> implements ControlCommand, scala.Product, scala.Serializable
Constructor and Description |
---|
Observe(Prefix source,
CommandName commandName,
java.util.Optional<ObsId> maybeObsId)
A java helper to construct Observe command
|
Modifier and Type | Method and Description |
---|---|
static <P extends Parameter<?>> |
add(P parameter) |
static Observe |
apply(Id runId,
Prefix source,
CommandName commandName,
scala.Option<ObsId> maybeObsId,
scala.collection.immutable.Set<Parameter<?>> paramSet) |
static Observe |
apply(Prefix source,
CommandName commandName,
scala.Option<ObsId> maybeObsId)
The apply method is used to create Observe command by end-user.
|
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.
|
abstract static boolean |
canEqual(java.lang.Object that) |
Observe |
cloneCommand()
Create a new Observer instance from an existing instance
|
CommandName |
commandName()
The name of command
|
static boolean |
contains(Key<?> key) |
protected Observe |
create(scala.collection.immutable.Set<Parameter<?>> data)
Create a new Observe instance when a parameter is added or removed
|
protected static java.lang.String |
dataToString() |
abstract static boolean |
equals(java.lang.Object that) |
static <S> boolean |
exists(Key<S> key) |
static <S> scala.Option<Parameter<S>> |
find(Parameter<S> parameter) |
static <S> scala.Option<Parameter<S>> |
get(Key<S> key) |
static <S> scala.Option<Parameter<S>> |
get(java.lang.String keyName,
KeyType<S> keyType) |
static scala.collection.immutable.Map<java.lang.String,java.lang.String> |
getStringMap() |
static <S> java.util.Optional<Parameter<S>> |
jFind(Parameter<S> parameter) |
static <S> java.util.Optional<Parameter<S>> |
jGet(Key<S> key) |
static <S> java.util.Optional<Parameter<S>> |
jGet(java.lang.String keyName,
KeyType<S> keyType) |
static java.util.Map<java.lang.String,java.lang.String> |
jGetStringMap() |
static java.util.Optional<ObsId> |
jMaybeObsId() |
static java.util.Set<java.lang.String> |
jMissingKeys(Key<?>... keys) |
static java.util.Set<java.lang.String> |
jMissingKeys(scala.collection.Seq<Key<?>> keys) |
static java.util.Set<Parameter<?>> |
jParamSet() |
static <P extends Parameter<?>> |
madd(P... parametersToAdd) |
static <P extends Parameter<?>> |
madd(scala.collection.Seq<P> parametersToAdd) |
static <P extends Parameter<?>> |
madd(scala.collection.immutable.Set<P> parametersToAdd) |
scala.Option<ObsId> |
maybeObsId()
An optional obsId for command
|
static scala.collection.immutable.Set<java.lang.String> |
missingKeys(scala.collection.Seq<Key<?>> keys) |
static <S> Parameter<S> |
parameter(Key<S> key) |
scala.collection.immutable.Set<Parameter<?>> |
paramSet()
Holds the parameters for this parameter set
|
static ParameterSetType<?> |
paramType() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
static <S> T |
remove(Key<S> key) |
static <P extends Parameter<?>> |
remove(P parameter) |
Id |
runId()
unique Id for command parameter set
|
static int |
size() |
Prefix |
source()
Prefix representing source of the command
|
static java.lang.String |
toString() |
static java.lang.String |
typeName() |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
jMaybeObsId, paramType, toString, typeName
public Observe(Prefix source, CommandName commandName, java.util.Optional<ObsId> maybeObsId)
source
- (undocumented)commandName
- (undocumented)maybeObsId
- (undocumented)public static Observe apply(Id runId, Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)
public static Observe apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId)
source
- prefix representing source of the commandcommandName
- the name of the commandmaybeObsId
- an optional obsId for commandpublic static Observe apply(Prefix source, CommandName commandName, scala.Option<ObsId> maybeObsId, scala.collection.immutable.Set<Parameter<?>> paramSet)
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)public static java.lang.String typeName()
public static java.util.Set<Parameter<?>> jParamSet()
public static int size()
public static <P extends Parameter<?>> T add(P parameter)
public static <P extends Parameter<?>> T madd(scala.collection.Seq<P> parametersToAdd)
public static <P extends Parameter<?>> T madd(scala.collection.immutable.Set<P> parametersToAdd)
public static <S> java.util.Optional<Parameter<S>> jGet(java.lang.String keyName, KeyType<S> keyType)
public static <S> boolean exists(Key<S> key)
public static <S> T remove(Key<S> key)
public static <P extends Parameter<?>> T remove(P parameter)
protected static java.lang.String dataToString()
public static java.lang.String toString()
public static boolean contains(Key<?> key)
public static scala.collection.immutable.Set<java.lang.String> missingKeys(scala.collection.Seq<Key<?>> keys)
public static java.util.Set<java.lang.String> jMissingKeys(scala.collection.Seq<Key<?>> keys)
public static scala.collection.immutable.Map<java.lang.String,java.lang.String> getStringMap()
public static java.util.Map<java.lang.String,java.lang.String> jGetStringMap()
public static <P extends Parameter<?>> T madd(P... parametersToAdd)
public static java.util.Set<java.lang.String> jMissingKeys(Key<?>... keys)
public static ParameterSetType<?> paramType()
public static java.util.Optional<ObsId> jMaybeObsId()
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public Id runId()
Command
public Prefix source()
Command
public CommandName commandName()
Command
commandName
in interface Command
public scala.Option<ObsId> maybeObsId()
Command
maybeObsId
in interface Command
public scala.collection.immutable.Set<Parameter<?>> paramSet()
ParameterSetType
paramSet
in interface Command
paramSet
in class ParameterSetType<Observe>
protected Observe create(scala.collection.immutable.Set<Parameter<?>> data)
create
in class ParameterSetType<Observe>
data
- set of parameterspublic Observe cloneCommand()