public class ConjReglas
extends java.lang.Object
Set of rules. Defines a set of rules or complex
Constructor and Description |
---|
ConjReglas()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRegla(Complejo regl)
Add a rule to the list
|
void |
addReglas(ConjReglas r)
Add a set of rules to the list
|
void |
adjuntaNombreClase(java.lang.String nombreClase)
Do a clocal copy of the name of the class variable
|
void |
adjuntaNombreClases(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
|
void |
deleteRegla(int i)
Removes a rule from the list
|
void |
eliminaNulos()
Remove complex with repetitive attributes
|
void |
eliminaRepetidos(int tam)
Remove repetitive complex(at1 = 0 ^ at2 = 0 -- at2 = 0 ^ at1 = 0)
|
void |
eliminaSubsumidos(int tam)
Remove rules are the same ina semantic way(At = 1, At <> 0, At = [0,1])
|
java.util.LinkedList |
getConjReglas()
Returns the complet set if rules
|
Complejo |
getRegla(int i)
Returns a rule of the list
|
Complejo |
getUltimaRegla()
Returns the last rule(normally the one with best weight)
|
void |
print()
Prints on the screen the set of rules
|
java.lang.String |
printString()
Prints on a string the set of rules
|
int |
size()
Returns the number of rules we are working with
|
public void addReglas(ConjReglas r)
Add a set of rules to the list
r
- ConjReglas The set of rulespublic void addRegla(Complejo regl)
Add a rule to the list
regl
- Rule to addpublic void deleteRegla(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 Complejo getRegla(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 getConjReglas()
Returns the complet set if rules
public void print()
Prints on the screen the set of rules
public java.lang.String printString()
Prints on a string the set of rules
public Complejo getUltimaRegla()
Returns the last rule(normally the one with best weight)
public void eliminaNulos()
Remove complex with repetitive attributes
public void eliminaRepetidos(int tam)
Remove repetitive complex(at1 = 0 ^ at2 = 0 -- at2 = 0 ^ at1 = 0)
tam
- Size of the starpublic void eliminaSubsumidos(int tam)
Remove rules are the same ina semantic way(At = 1, At <> 0, At = [0,1])
tam
- int Size of the starpublic void adjuntaNombreClase(java.lang.String nombreClase)
Do a clocal copy of the name of the class variable
nombreClase
- Name of the classpublic void adjuntaNombreClases(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