public class AssociationRule extends Entity 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"/>
</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 java.lang.Double |
affinity |
protected java.lang.String |
antecedent |
protected java.lang.Double |
confidence |
protected java.lang.String |
consequent |
protected java.util.List<Extension> |
extensions |
protected java.lang.String |
id |
protected java.lang.Double |
leverage |
protected java.lang.Double |
lift |
protected java.lang.Double |
support |
| Constructor and Description |
|---|
AssociationRule() |
AssociationRule(java.lang.String antecedent,
java.lang.String consequent,
java.lang.Double support,
java.lang.Double confidence) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.lang.Double |
getAffinity()
Gets the value of the affinity property.
|
java.lang.String |
getAntecedent()
Gets the value of the antecedent property.
|
java.lang.Double |
getConfidence()
Gets the value of the confidence property.
|
java.lang.String |
getConsequent()
Gets the value of the consequent 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 |
getLeverage()
Gets the value of the leverage property.
|
java.lang.Double |
getLift()
Gets the value of the lift property.
|
java.lang.Double |
getSupport()
Gets the value of the support property.
|
boolean |
hasExtensions() |
void |
setAffinity(java.lang.Double value)
Sets the value of the affinity property.
|
void |
setAntecedent(java.lang.String value)
Sets the value of the antecedent property.
|
void |
setConfidence(java.lang.Double value)
Sets the value of the confidence property.
|
void |
setConsequent(java.lang.String value)
Sets the value of the consequent property.
|
void |
setId(java.lang.String value)
Sets the value of the id property.
|
void |
setLeverage(java.lang.Double value)
Sets the value of the leverage property.
|
void |
setLift(java.lang.Double value)
Sets the value of the lift property.
|
void |
setSupport(java.lang.Double value)
Sets the value of the support property.
|
AssociationRule |
withAffinity(java.lang.Double value) |
AssociationRule |
withAntecedent(java.lang.String value) |
AssociationRule |
withConfidence(java.lang.Double value) |
AssociationRule |
withConsequent(java.lang.String value) |
AssociationRule |
withExtensions(java.util.Collection<Extension> values) |
AssociationRule |
withExtensions(Extension... values) |
AssociationRule |
withId(java.lang.String value) |
AssociationRule |
withLeverage(java.lang.Double value) |
AssociationRule |
withLift(java.lang.Double value) |
AssociationRule |
withSupport(java.lang.Double value) |
getLocator, setLocatorprotected java.lang.String antecedent
protected java.lang.String consequent
protected java.lang.Double support
protected java.lang.Double confidence
protected java.lang.Double lift
protected java.lang.Double leverage
protected java.lang.Double affinity
protected java.lang.String id
protected java.util.List<Extension> extensions
public AssociationRule()
public AssociationRule(java.lang.String antecedent,
java.lang.String consequent,
java.lang.Double support,
java.lang.Double confidence)
public java.lang.String getAntecedent()
Stringpublic void setAntecedent(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getConsequent()
Stringpublic void setConsequent(java.lang.String value)
value - allowed object is
Stringpublic java.lang.Double getSupport()
Stringpublic void setSupport(java.lang.Double value)
value - allowed object is
Stringpublic java.lang.Double getConfidence()
Stringpublic void setConfidence(java.lang.Double value)
value - allowed object is
Stringpublic java.lang.Double getLift()
Stringpublic void setLift(java.lang.Double value)
value - allowed object is
Stringpublic java.lang.Double getLeverage()
Stringpublic void setLeverage(java.lang.Double value)
value - allowed object is
Stringpublic java.lang.Double getAffinity()
Stringpublic void setAffinity(java.lang.Double value)
value - allowed object is
Stringpublic java.lang.String getId()
public void setId(java.lang.String value)
public 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 AssociationRule withAntecedent(java.lang.String value)
public AssociationRule withConsequent(java.lang.String value)
public AssociationRule withSupport(java.lang.Double value)
public AssociationRule withConfidence(java.lang.Double value)
public AssociationRule withLift(java.lang.Double value)
public AssociationRule withLeverage(java.lang.Double value)
public AssociationRule withAffinity(java.lang.Double value)
public AssociationRule withId(java.lang.String value)
public AssociationRule withExtensions(Extension... values)
public AssociationRule withExtensions(java.util.Collection<Extension> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.