public class SimpleRule extends Rule implements com.sun.xml.bind.Locatable, 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 Double |
confidence |
protected List<Extension> |
extensions |
protected String |
id |
protected Locator |
locator |
protected Double |
nbCorrect |
protected Predicate |
predicate |
protected Double |
recordCount |
protected String |
score |
protected List<ScoreDistribution> |
scoreDistributions |
protected Double |
weight |
| Constructor and Description |
|---|
SimpleRule() |
SimpleRule(String score) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
double |
getConfidence()
Gets the value of the confidence property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
String |
getId()
Gets the value of the id property.
|
Double |
getNbCorrect()
Gets the value of the nbCorrect property.
|
Predicate |
getPredicate()
Gets the value of the predicate property.
|
Double |
getRecordCount()
Gets the value of the recordCount property.
|
String |
getScore()
Gets the value of the score property.
|
List<ScoreDistribution> |
getScoreDistributions()
Gets the value of the scoreDistributions property.
|
double |
getWeight()
Gets the value of the weight property.
|
void |
setConfidence(Double value)
Sets the value of the confidence property.
|
void |
setId(String value)
Sets the value of the id property.
|
void |
setNbCorrect(Double value)
Sets the value of the nbCorrect property.
|
void |
setPredicate(Predicate value)
Sets the value of the predicate property.
|
void |
setRecordCount(Double value)
Sets the value of the recordCount property.
|
void |
setScore(String value)
Sets the value of the score property.
|
void |
setSourceLocation(Locator newLocator) |
void |
setWeight(Double value)
Sets the value of the weight property.
|
Locator |
sourceLocation() |
SimpleRule |
withConfidence(Double value) |
SimpleRule |
withExtensions(Collection<Extension> values) |
SimpleRule |
withExtensions(Extension... values) |
SimpleRule |
withId(String value) |
SimpleRule |
withNbCorrect(Double value) |
SimpleRule |
withPredicate(Predicate value) |
SimpleRule |
withRecordCount(Double value) |
SimpleRule |
withScore(String value) |
SimpleRule |
withScoreDistributions(Collection<ScoreDistribution> values) |
SimpleRule |
withScoreDistributions(ScoreDistribution... values) |
SimpleRule |
withWeight(Double value) |
protected Predicate predicate
protected List<ScoreDistribution> scoreDistributions
protected String id
protected String score
protected Double recordCount
protected Double nbCorrect
protected Double confidence
protected Double weight
protected Locator locator
public SimpleRule()
public SimpleRule(String score)
public 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 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 String getId()
public void setId(String value)
public String getScore()
Stringpublic void setScore(String value)
value - allowed object is
Stringpublic Double getRecordCount()
Doublepublic void setRecordCount(Double value)
value - allowed object is
Doublepublic Double getNbCorrect()
Doublepublic void setNbCorrect(Double value)
value - allowed object is
Doublepublic double getConfidence()
Doublepublic void setConfidence(Double value)
value - allowed object is
Doublepublic double getWeight()
Doublepublic void setWeight(Double value)
value - allowed object is
Doublepublic SimpleRule withExtensions(Extension... values)
public SimpleRule withExtensions(Collection<Extension> values)
public SimpleRule withPredicate(Predicate value)
public SimpleRule withScoreDistributions(ScoreDistribution... values)
public SimpleRule withScoreDistributions(Collection<ScoreDistribution> values)
public SimpleRule withId(String value)
public SimpleRule withScore(String value)
public SimpleRule withRecordCount(Double value)
public SimpleRule withNbCorrect(Double value)
public SimpleRule withConfidence(Double value)
public SimpleRule withWeight(Double value)
public Locator sourceLocation()
sourceLocation in interface com.sun.xml.bind.LocatablesourceLocation in class PMMLObjectpublic void setSourceLocation(Locator newLocator)
setSourceLocation in class PMMLObjectpublic VisitorAction accept(Visitor visitor)
Copyright © 2014 University of Tartu. All Rights Reserved.