public class SimpleRule extends Rule implements HasExtensions, HasPredicate
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>
| Constructor and Description |
|---|
SimpleRule() |
SimpleRule(String score) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
SimpleRule |
addExtensions(Extension... extensions) |
SimpleRule |
addScoreDistributions(ScoreDistribution... scoreDistributions) |
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.
|
boolean |
hasExtensions() |
boolean |
hasScoreDistributions() |
SimpleRule |
setConfidence(Double confidence)
Sets the value of the confidence property.
|
SimpleRule |
setId(String id)
Sets the value of the id property.
|
SimpleRule |
setNbCorrect(Double nbCorrect)
Sets the value of the nbCorrect property.
|
SimpleRule |
setPredicate(Predicate predicate)
Sets the value of the predicate property.
|
SimpleRule |
setRecordCount(Double recordCount)
Sets the value of the recordCount property.
|
SimpleRule |
setScore(String score)
Sets the value of the score property.
|
SimpleRule |
setWeight(Double weight)
Sets the value of the weight property.
|
getLocator, setLocatorpublic SimpleRule()
public SimpleRule(String score)
public String getId()
public SimpleRule setId(String id)
public String getScore()
Stringpublic SimpleRule setScore(String score)
score - allowed object is
Stringpublic Double getRecordCount()
Doublepublic SimpleRule setRecordCount(Double recordCount)
recordCount - allowed object is
Doublepublic Double getNbCorrect()
Doublepublic SimpleRule setNbCorrect(Double nbCorrect)
nbCorrect - allowed object is
Doublepublic Double getConfidence()
Doublepublic SimpleRule setConfidence(Double confidence)
confidence - allowed object is
Doublepublic Double getWeight()
Doublepublic SimpleRule setWeight(Double weight)
weight - allowed object is
Doublepublic 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 interface HasPredicategetPredicate in class RuleSimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic SimpleRule setPredicate(Predicate predicate)
setPredicate in interface HasPredicatesetPredicate in class Rulepredicate - 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 boolean hasExtensions()
hasExtensions in interface HasExtensionspublic SimpleRule addExtensions(Extension... extensions)
public boolean hasScoreDistributions()
public SimpleRule addScoreDistributions(ScoreDistribution... scoreDistributions)
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.