public class RuleSet
extends java.lang.Object
Set of rules. Defines a set of rules or complex
Constructor and Description |
---|
RuleSet()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRule(Complex regl)
Add a rule to the list
|
void |
addRules(RuleSet r)
Add a set of rules to the list
|
void |
adjuntClassName(java.lang.String nombreClase)
Do a clocal copy of the name of the class variable
|
void |
adjuntClassNames(java.lang.String[] clases)
Do a local copy of the name of the values of the class
|
void |
deleteAll()
Removes the content of a set of rules
|
Complex |
getLastRule()
Returns the last rule(normally the one with best weight)
|
Complex |
getRule(int i)
Returns a rule of the list
|
java.util.LinkedList |
getSetRules()
Returns the complet set if rules
|
void |
print(int nominal)
Prints on the screen the set of rules
|
java.lang.String |
printString(int[] numValues)
Prints on a string the set of rules
|
void |
removeDuplicated(int tam)
Remove repetitive complex(at1 = 0 ^ at2 = 0 -- at2 = 0 ^ at1 = 0)
|
void |
removeNulls()
Remove complex with repetitive attributes
|
void |
removeRule(int i)
Removes a rule from the list
|
void |
removeSubsumed(int tam)
Remove rules are the same ina semantic way(At = 1, At <> 0, At = [0,1])
|
int |
size()
Returns the number of rules we are working with
|
public void addRules(RuleSet r)
Add a set of rules to the list
r
- ConjReglas The set of rulespublic void addRule(Complex regl)
Add a rule to the list
regl
- Rule to addpublic void removeRule(int i)
Removes a rule from the list
i
- index of the rule to removepublic void deleteAll()
Removes the content of a set of rules
public Complex getRule(int i)
Returns a rule of the list
i
- index of the rulepublic int size()
Returns the number of rules we are working with
public java.util.LinkedList getSetRules()
Returns the complet set if rules
public void print(int nominal)
Prints on the screen the set of rules
nominal
- nominal value of the rule.public java.lang.String printString(int[] numValues)
Prints on a string the set of rules
numValues
- number of values.public Complex getLastRule()
Returns the last rule(normally the one with best weight)
public void removeNulls()
Remove complex with repetitive attributes
public void removeDuplicated(int tam)
Remove repetitive complex(at1 = 0 ^ at2 = 0 -- at2 = 0 ^ at1 = 0)
tam
- Size of the starpublic void removeSubsumed(int tam)
Remove rules are the same ina semantic way(At = 1, At <> 0, At = [0,1])
tam
- int Size of the starpublic void adjuntClassName(java.lang.String nombreClase)
Do a clocal copy of the name of the class variable
nombreClase
- Name of the classpublic void adjuntClassNames(java.lang.String[] clases)
Do a local copy of the name of the values of the class
clases
- String[] An array that stores the name of the value of the class