public class RuleSet extends PMMLObject implements HasExtensions
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}RuleSelectionMethod" maxOccurs="unbounded"/>
<element ref="{http://www.dmg.org/PMML-4_2}ScoreDistribution" maxOccurs="unbounded" minOccurs="0"/>
<group ref="{http://www.dmg.org/PMML-4_2}Rule" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="recordCount" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
<attribute name="nbCorrect" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
<attribute name="defaultScore" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="defaultConfidence" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Double |
defaultConfidence |
protected java.lang.String |
defaultScore |
protected java.util.List<Extension> |
extensions |
protected java.lang.Double |
nbCorrect |
protected java.lang.Double |
recordCount |
protected java.util.List<Rule> |
rules |
protected java.util.List<RuleSelectionMethod> |
ruleSelectionMethods |
protected java.util.List<ScoreDistribution> |
scoreDistributions |
| Constructor and Description |
|---|
RuleSet() |
RuleSet(java.util.List<RuleSelectionMethod> ruleSelectionMethods) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.lang.Double |
getDefaultConfidence()
Gets the value of the defaultConfidence property.
|
java.lang.String |
getDefaultScore()
Gets the value of the defaultScore property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.lang.Double |
getNbCorrect()
Gets the value of the nbCorrect property.
|
java.lang.Double |
getRecordCount()
Gets the value of the recordCount property.
|
java.util.List<Rule> |
getRules()
Gets the value of the rules property.
|
java.util.List<RuleSelectionMethod> |
getRuleSelectionMethods()
Gets the value of the ruleSelectionMethods property.
|
java.util.List<ScoreDistribution> |
getScoreDistributions()
Gets the value of the scoreDistributions property.
|
boolean |
hasExtensions() |
boolean |
hasRules() |
boolean |
hasRuleSelectionMethods() |
boolean |
hasScoreDistributions() |
void |
setDefaultConfidence(java.lang.Double value)
Sets the value of the defaultConfidence property.
|
void |
setDefaultScore(java.lang.String value)
Sets the value of the defaultScore property.
|
void |
setNbCorrect(java.lang.Double value)
Sets the value of the nbCorrect property.
|
void |
setRecordCount(java.lang.Double value)
Sets the value of the recordCount property.
|
RuleSet |
withDefaultConfidence(java.lang.Double value) |
RuleSet |
withDefaultScore(java.lang.String value) |
RuleSet |
withExtensions(java.util.Collection<Extension> values) |
RuleSet |
withExtensions(Extension... values) |
RuleSet |
withNbCorrect(java.lang.Double value) |
RuleSet |
withRecordCount(java.lang.Double value) |
RuleSet |
withRules(java.util.Collection<Rule> values) |
RuleSet |
withRules(Rule... values) |
RuleSet |
withRuleSelectionMethods(java.util.Collection<RuleSelectionMethod> values) |
RuleSet |
withRuleSelectionMethods(RuleSelectionMethod... values) |
RuleSet |
withScoreDistributions(java.util.Collection<ScoreDistribution> values) |
RuleSet |
withScoreDistributions(ScoreDistribution... values) |
getLocator, setLocatorprotected java.lang.Double recordCount
protected java.lang.Double nbCorrect
protected java.lang.String defaultScore
protected java.lang.Double defaultConfidence
protected java.util.List<Extension> extensions
protected java.util.List<RuleSelectionMethod> ruleSelectionMethods
protected java.util.List<ScoreDistribution> scoreDistributions
protected java.util.List<Rule> rules
public RuleSet()
public RuleSet(java.util.List<RuleSelectionMethod> ruleSelectionMethods)
public java.lang.Double getRecordCount()
Doublepublic void setRecordCount(java.lang.Double value)
value - allowed object is
Doublepublic java.lang.Double getNbCorrect()
Doublepublic void setNbCorrect(java.lang.Double value)
value - allowed object is
Doublepublic java.lang.String getDefaultScore()
Stringpublic void setDefaultScore(java.lang.String value)
value - allowed object is
Stringpublic java.lang.Double getDefaultConfidence()
Doublepublic void setDefaultConfidence(java.lang.Double value)
value - allowed object is
Doublepublic java.util.List<Extension> getExtensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the extensions property.
For example, to add a new item, do as follows:
getExtensions().add(newItem);
Objects of the following type(s) are allowed in the list
Extension
getExtensions in interface HasExtensionspublic java.util.List<RuleSelectionMethod> getRuleSelectionMethods()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the ruleSelectionMethods property.
For example, to add a new item, do as follows:
getRuleSelectionMethods().add(newItem);
Objects of the following type(s) are allowed in the list
RuleSelectionMethod
public java.util.List<ScoreDistribution> getScoreDistributions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the scoreDistributions property.
For example, to add a new item, do as follows:
getScoreDistributions().add(newItem);
Objects of the following type(s) are allowed in the list
ScoreDistribution
public java.util.List<Rule> getRules()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the rules property.
For example, to add a new item, do as follows:
getRules().add(newItem);
Objects of the following type(s) are allowed in the list
SimpleRule
CompoundRule
public RuleSet withRecordCount(java.lang.Double value)
public RuleSet withNbCorrect(java.lang.Double value)
public RuleSet withDefaultScore(java.lang.String value)
public RuleSet withDefaultConfidence(java.lang.Double value)
public RuleSet withRuleSelectionMethods(RuleSelectionMethod... values)
public RuleSet withRuleSelectionMethods(java.util.Collection<RuleSelectionMethod> values)
public RuleSet withScoreDistributions(ScoreDistribution... values)
public RuleSet withScoreDistributions(java.util.Collection<ScoreDistribution> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasRuleSelectionMethods()
public boolean hasScoreDistributions()
public boolean hasRules()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.