Package org.yamcs
Class Spec.WhenCondition
java.lang.Object
org.yamcs.Spec.WhenCondition
- Enclosing class:
- Spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOption
(String name, Spec.OptionType type) Add anSpec.Option
when the condition is satisfied.getKey()
getValue()
Apply options from the given spec into the current spec when the condition is satisfied.requireAll
(String... keys) void
requireTogether
(String... keys) Specify a set of keys that must appear together.
-
Constructor Details
-
WhenCondition
-
-
Method Details
-
addOption
Add anSpec.Option
when the condition is satisfied.- Throws:
IllegalArgumentException
- if an option with this name is already defined.
-
mergeSpec
Apply options from the given spec into the current spec when the condition is satisfied.- Throws:
IllegalArgumentException
- if an option with the same name is already defined.
-
getOptions
-
requireAll
-
requireTogether
Specify a set of keys that must appear together. This check only applies as soon as at least one of these keys has been specified. -
getKey
-
getValue
-
getRequiredKeys
-