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
|
ruleSet |
copyRuleSet()
It carries out a copy of the full rule-set
|
void |
deleteRule(int i)
It removes one rule of the list
|
void |
deleteSubsumed(int size)
It removes rules that are semantically equal
|
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 index given.
|
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 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 ruleSet copyRuleSet()
public void print()
public java.lang.String printString()
public Complex getLastRule()
public void deleteSubsumed(int size)
size
- int Star sizepublic 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 class