public class JSGFRuleAlternatives extends JSGFRule
Modifier and Type | Field and Description |
---|---|
protected java.util.List<JSGFRule> |
rules |
protected java.util.List<java.lang.Float> |
weights |
Constructor and Description |
---|
JSGFRuleAlternatives() |
JSGFRuleAlternatives(java.util.List<JSGFRule> rules) |
JSGFRuleAlternatives(java.util.List<JSGFRule> rules,
java.util.List<java.lang.Float> weights) |
Modifier and Type | Method and Description |
---|---|
void |
append(JSGFRule rule) |
java.util.List<JSGFRule> |
getRules() |
java.util.List<java.lang.Float> |
getWeights() |
void |
setRules(java.util.List<JSGFRule> rules) |
void |
setWeights(java.util.List<java.lang.Float> newWeights) |
java.lang.String |
toString() |
protected java.util.List<JSGFRule> rules
protected java.util.List<java.lang.Float> weights
public JSGFRuleAlternatives()
public JSGFRuleAlternatives(java.util.List<JSGFRule> rules)
public JSGFRuleAlternatives(java.util.List<JSGFRule> rules, java.util.List<java.lang.Float> weights) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void append(JSGFRule rule)
public java.util.List<JSGFRule> getRules()
public java.util.List<java.lang.Float> getWeights()
public void setRules(java.util.List<JSGFRule> rules)
public void setWeights(java.util.List<java.lang.Float> newWeights) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException