public class ruleSet
extends java.lang.Object
Title: Rule Set
Description: Structure to store a complete rule set
Constructor and Description |
---|
ruleSet()
Builder
|
Modifier and Type | Method and Description |
---|---|
void |
addClassName(java.lang.String nombreClase)
It performs a local copy of the name of the output class
|
void |
addClassNames(java.lang.String[] clases)
It performs a local copy of the names of the output classes
|
void |
addRule(Complex regl)
It adds one rule to the list
|
void |
addRules(ruleSet r)
It adds a whole rule set to the list
|
ruleSet |
copyRuleSet()
It carries out a copy of the full rule-set
|
void |
deleteAll()
It truncates the rule set
|
void |
deleteNull()
It deletes complexes with repeated attributes
|
void |
deleteRule(int i)
It removes one rule of the list
|
void |
deleteSubsumed(int size)
It removes rules that are semantically equal
|
void |
eliminaRepetidos(int size)
It removes those complexes which are repeated (at1 = 0 ^ at2 = 0 -- at2 = 0 ^ at1 = 0)
|
Complex |
getLastRule()
It returns the last rule (normally, the one with best weight)
|
Complex |
getNewRule(int i)
It returns the rule as a new copy
|
Complex |
getRule(int i)
Returns the rule of the list with the given index.
|
java.util.LinkedList |
getruleSet()
It returns the complete rule-set
|
void |
print()
It prints the rule-set
|
java.lang.String |
printString()
It prints on a string the rule-set
|
int |
size()
It returns the size of the rule set
|
public void addRules(ruleSet r)
r
- ruleSet The rule setpublic void addRule(Complex regl)
regl
- Rule to addpublic void deleteRule(int i)
i
- index of the rule to removepublic Complex getRule(int i)
i
- given index.public Complex getNewRule(int i)
i
- i-th rulepublic int size()
public java.util.LinkedList getruleSet()
public void deleteAll()
public ruleSet copyRuleSet()
public void print()
public java.lang.String printString()
public Complex getLastRule()
public void addClassName(java.lang.String nombreClase)
nombreClase
- String Class namepublic void addClassNames(java.lang.String[] clases)
clases
- String[] An array that stores the name of each classpublic void deleteNull()
public void eliminaRepetidos(int size)
size
- starSizepublic void deleteSubsumed(int size)
size
- int Star size