public class SimpleRule extends Rule implements HasExtensions, HasId
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"/>
<group ref="{http://www.dmg.org/PMML-4_2}PREDICATE"/>
<element ref="{http://www.dmg.org/PMML-4_2}ScoreDistribution" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="score" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<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="confidence" type="{http://www.dmg.org/PMML-4_2}NUMBER" default="1" />
<attribute name="weight" type="{http://www.dmg.org/PMML-4_2}NUMBER" default="1" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Double |
confidence |
protected java.util.List<Extension> |
extensions |
protected java.lang.String |
id |
protected java.lang.Double |
nbCorrect |
protected Predicate |
predicate |
protected java.lang.Double |
recordCount |
protected java.lang.String |
score |
protected java.util.List<ScoreDistribution> |
scoreDistributions |
protected java.lang.Double |
weight |
| Constructor and Description |
|---|
SimpleRule() |
SimpleRule(java.lang.String score) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
double |
getConfidence()
Gets the value of the confidence property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.lang.String |
getId()
Gets the value of the id property.
|
java.lang.Double |
getNbCorrect()
Gets the value of the nbCorrect property.
|
Predicate |
getPredicate()
Gets the value of the predicate property.
|
java.lang.Double |
getRecordCount()
Gets the value of the recordCount property.
|
java.lang.String |
getScore()
Gets the value of the score property.
|
java.util.List<ScoreDistribution> |
getScoreDistributions()
Gets the value of the scoreDistributions property.
|
double |
getWeight()
Gets the value of the weight property.
|
boolean |
hasExtensions() |
boolean |
hasScoreDistributions() |
void |
setConfidence(java.lang.Double value)
Sets the value of the confidence property.
|
void |
setId(java.lang.String value)
Sets the value of the id property.
|
void |
setNbCorrect(java.lang.Double value)
Sets the value of the nbCorrect property.
|
void |
setPredicate(Predicate value)
Sets the value of the predicate property.
|
void |
setRecordCount(java.lang.Double value)
Sets the value of the recordCount property.
|
void |
setScore(java.lang.String value)
Sets the value of the score property.
|
void |
setWeight(java.lang.Double value)
Sets the value of the weight property.
|
SimpleRule |
withConfidence(java.lang.Double value) |
SimpleRule |
withExtensions(java.util.Collection<Extension> values) |
SimpleRule |
withExtensions(Extension... values) |
SimpleRule |
withId(java.lang.String value) |
SimpleRule |
withNbCorrect(java.lang.Double value) |
SimpleRule |
withPredicate(Predicate value) |
SimpleRule |
withRecordCount(java.lang.Double value) |
SimpleRule |
withScore(java.lang.String value) |
SimpleRule |
withScoreDistributions(java.util.Collection<ScoreDistribution> values) |
SimpleRule |
withScoreDistributions(ScoreDistribution... values) |
SimpleRule |
withWeight(java.lang.Double value) |
getLocator, setLocatorprotected java.lang.String id
protected java.lang.String score
protected java.lang.Double recordCount
protected java.lang.Double nbCorrect
protected java.lang.Double confidence
protected java.lang.Double weight
protected java.util.List<Extension> extensions
protected Predicate predicate
protected java.util.List<ScoreDistribution> scoreDistributions
public SimpleRule()
public SimpleRule(java.lang.String score)
public java.lang.String getId()
public void setId(java.lang.String value)
public java.lang.String getScore()
Stringpublic void setScore(java.lang.String value)
value - allowed object is
Stringpublic 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 double getConfidence()
Doublepublic void setConfidence(java.lang.Double value)
value - allowed object is
Doublepublic double getWeight()
Doublepublic void setWeight(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 Predicate getPredicate()
getPredicate in class RuleSimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic void setPredicate(Predicate value)
setPredicate in class Rulevalue - allowed object is
SimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic 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 SimpleRule withId(java.lang.String value)
public SimpleRule withScore(java.lang.String value)
public SimpleRule withRecordCount(java.lang.Double value)
public SimpleRule withNbCorrect(java.lang.Double value)
public SimpleRule withConfidence(java.lang.Double value)
public SimpleRule withWeight(java.lang.Double value)
public SimpleRule withExtensions(Extension... values)
public SimpleRule withExtensions(java.util.Collection<Extension> values)
public SimpleRule withPredicate(Predicate value)
public SimpleRule withScoreDistributions(ScoreDistribution... values)
public SimpleRule withScoreDistributions(java.util.Collection<ScoreDistribution> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasScoreDistributions()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.