The setWeights method defines the constraints upon weights. If no weights are defined, then all alternatives are considered equally likely. Construct a RuleAlternatives object with an array of sub-rules and an array of weights. Construct a RuleAlternatives object with an array of sub-rules. Construct a RuleAlternatives object containing a single sub-rule.
Empty constructor creates zero-length list of alternatives.
Append a single rule to the set of alternatives. Return a deep copy of this rule. Set the array of alternative sub-rules. Set the array of weights for the rules. Methods inherited from class javax.speech.recognition.