public class SetRules
extends java.lang.Object
Defines a set of rules or complex
Constructor and Description |
---|
SetRules()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addNameClass(java.lang.String nameClass)
Copy the name of the class
|
void |
addNameClasses(java.lang.String[] classes)
Copy the complete names of the classes
|
void |
addRegla(Complex regl)
Add a rule to the list
|
void |
addReglas(SetRules r)
Add a set of rules to the list
|
void |
deleteAll()
Delete all the content of the list
|
void |
deleteEqual(int tam)
Delete rules with the same complex
|
void |
deleteEqualAttributes(int beamWidth)
Delete rules with the same attribute
|
void |
deleteNull()
Delete rules with the same attributes
|
void |
deleteRegla(int i)
Delete a rule of the list
|
void |
deleteRulesLowSupport(int beamWidth,
float minSup)
Delete rules with low support
|
void |
eliminaSubsumidos(int tam)
Delete rules with equal semantics
|
java.util.LinkedList |
getConjReglas()
Return the set of rules
|
Complex |
getRule(int i)
Return a complex of the rule
|
Complex |
getUltimaRegla()
Return the last rule
|
void |
print()
Show the set of rules
|
java.lang.String |
printString()
Print string the set of rules
|
int |
size()
Return the number of rules
|
public void addReglas(SetRules r)
Add a set of rules to the list
r
- The set of rules to addpublic void addRegla(Complex regl)
Add a rule to the list
regl
- Complex to addpublic void deleteRegla(int i)
Delete a rule of the list
i
- Number of complex to deletepublic void deleteAll()
Delete all the content of the list
public Complex getRule(int i)
Return a complex of the rule
i
- Index of the rulepublic int size()
Return the number of rules
public java.util.LinkedList getConjReglas()
Return the set of rules
public void print()
Show the set of rules
public java.lang.String printString()
Print string the set of rules
public Complex getUltimaRegla()
Return the last rule
public void deleteNull()
Delete rules with the same attributes
public void deleteEqual(int tam)
Delete rules with the same complex
tam
- Size of the set of rulespublic void eliminaSubsumidos(int tam)
Delete rules with equal semantics
tam
- Size of the set of rulespublic void deleteEqualAttributes(int beamWidth)
Delete rules with the same attribute
beamWidth
- Size of the beampublic void deleteRulesLowSupport(int beamWidth, float minSup)
Delete rules with low support
beamWidth
- Size of the beamminSup
- Minimum supportpublic void addNameClass(java.lang.String nameClass)
Copy the name of the class
nameClass
- The name of the classpublic void addNameClasses(java.lang.String[] classes)
Copy the complete names of the classes
classes
- The complete names of the classes