public class AssociationRule extends Entity 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"/>
</sequence>
<attribute name="antecedent" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="consequent" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="support" use="required" type="{http://www.dmg.org/PMML-4_2}PROB-NUMBER" />
<attribute name="confidence" use="required" type="{http://www.dmg.org/PMML-4_2}PROB-NUMBER" />
<attribute name="lift" type="{http://www.w3.org/2001/XMLSchema}float" />
<attribute name="leverage" type="{http://www.w3.org/2001/XMLSchema}float" />
<attribute name="affinity" type="{http://www.dmg.org/PMML-4_2}PROB-NUMBER" />
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Double |
affinity |
protected String |
antecedent |
protected Double |
confidence |
protected String |
consequent |
protected List<Extension> |
extensions |
protected String |
id |
protected Double |
leverage |
protected Double |
lift |
protected Locator |
locator |
protected Double |
support |
| Constructor and Description |
|---|
AssociationRule() |
AssociationRule(String antecedent,
String consequent,
Double support,
Double confidence) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
Double |
getAffinity()
Gets the value of the affinity property.
|
String |
getAntecedent()
Gets the value of the antecedent property.
|
Double |
getConfidence()
Gets the value of the confidence property.
|
String |
getConsequent()
Gets the value of the consequent property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
String |
getId()
Gets the value of the id property.
|
Double |
getLeverage()
Gets the value of the leverage property.
|
Double |
getLift()
Gets the value of the lift property.
|
Double |
getSupport()
Gets the value of the support property.
|
void |
setAffinity(Double value)
Sets the value of the affinity property.
|
void |
setAntecedent(String value)
Sets the value of the antecedent property.
|
void |
setConfidence(Double value)
Sets the value of the confidence property.
|
void |
setConsequent(String value)
Sets the value of the consequent property.
|
void |
setId(String value)
Sets the value of the id property.
|
void |
setLeverage(Double value)
Sets the value of the leverage property.
|
void |
setLift(Double value)
Sets the value of the lift property.
|
void |
setSourceLocation(Locator newLocator) |
void |
setSupport(Double value)
Sets the value of the support property.
|
Locator |
sourceLocation() |
AssociationRule |
withAffinity(Double value) |
AssociationRule |
withAntecedent(String value) |
AssociationRule |
withConfidence(Double value) |
AssociationRule |
withConsequent(String value) |
AssociationRule |
withExtensions(Collection<Extension> values) |
AssociationRule |
withExtensions(Extension... values) |
AssociationRule |
withId(String value) |
AssociationRule |
withLeverage(Double value) |
AssociationRule |
withLift(Double value) |
AssociationRule |
withSupport(Double value) |
protected String antecedent
protected String consequent
protected Double support
protected Double confidence
protected Double lift
protected Double leverage
protected Double affinity
protected String id
protected Locator locator
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 String getAntecedent()
Stringpublic void setAntecedent(String value)
value - allowed object is
Stringpublic String getConsequent()
Stringpublic void setConsequent(String value)
value - allowed object is
Stringpublic Double getSupport()
Stringpublic void setSupport(Double value)
value - allowed object is
Stringpublic Double getConfidence()
Stringpublic void setConfidence(Double value)
value - allowed object is
Stringpublic Double getLift()
Stringpublic void setLift(Double value)
value - allowed object is
Stringpublic Double getLeverage()
Stringpublic void setLeverage(Double value)
value - allowed object is
Stringpublic Double getAffinity()
Stringpublic void setAffinity(Double value)
value - allowed object is
Stringpublic String getId()
public void setId(String value)
public AssociationRule withExtensions(Extension... values)
public AssociationRule withExtensions(Collection<Extension> values)
public AssociationRule withAntecedent(String value)
public AssociationRule withConsequent(String value)
public AssociationRule withSupport(Double value)
public AssociationRule withConfidence(Double value)
public AssociationRule withLift(Double value)
public AssociationRule withLeverage(Double value)
public AssociationRule withAffinity(Double value)
public AssociationRule withId(String 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.