|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodele.ObjectListe
modele.PalindromeListe
public class PalindromeListe
This class to provide easy-to-use Palindrome tables / Lists.
| Field Summary | |
|---|---|
private Palindrome[] |
liste
The list of Palindrome's |
private double |
Stest
Average of weight of Palindrome |
| Constructor Summary | |
|---|---|
PalindromeListe()
Default constructor with a list of 0 elements. |
|
PalindromeListe(Palindrome[] liste)
Constructor with a pre-made table of Palindrome's. |
|
| Method Summary | |
|---|---|
void |
addPalindrome(Palindrome elt)
To add a Palindrome at the end of the list. |
private void |
computeAverageTest()
This procedure to compute the score average of the table each time it changes. |
boolean |
equals(PalindromeListe toCompare)
To know if two PalindromeListe are equals (local instance and an other). |
Palindrome[] |
getListe()
|
PalindromeListe |
getListeCount(int countmin)
To get a PalindromeListe, sublist of current instance of PalindromeListe, whith a minimum count. |
int |
getMaxCount()
To get the maximum number of count for a Palindrome in current instance of PalindromeListe. |
Palindrome |
getPalindrome(int i)
|
double |
getStest()
|
boolean |
has(Palindrome elt)
To know if a Palindrome is in this list. |
int |
length()
To get the length of the current list of Object's |
int |
rechercher_approx(Palindrome toSearch)
Deprecated. Tranformed to whichPositionApprox(Palindrome) |
int |
rechercher(Palindrome toSearch)
Deprecated. Transformed to whichPosition(Palindrome) |
void |
removePalindrome(int nbElt)
To remove a Palindrome at a specific place in the list. |
void |
removePalindrome(Palindrome elt)
To remove a specific Palindrome. |
void |
setListe(Palindrome[] liste)
|
void |
setPalindrome(Palindrome elt,
int i)
|
void |
sortByBeginPositionGrowing()
To sort the table of Palindrome's by growing begin position. |
void |
sortByDecreasingRelevance()
To sort the table of Palindrome's by decreasing relevance. |
void |
sortByEndPositionGrowing()
To sort the table of Palindrome's by growing end position. |
int |
whichPosition(Palindrome elt)
If a palindrome is present, give his position. |
int |
whichPositionApprox(Palindrome elt)
If a palindrome is appromately present, give his position. |
| Methods inherited from class modele.ObjectListe |
|---|
addObjet, equals, getListeObjects, getObject, has, removeObject, removeObject, setListe, setObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Palindrome[] liste
private double Stest
| Constructor Detail |
|---|
public PalindromeListe()
public PalindromeListe(Palindrome[] liste)
liste - | Method Detail |
|---|
public int length()
ObjectListe
length in class ObjectListepublic double getStest()
public Palindrome[] getListe()
public Palindrome getPalindrome(int i)
public void setListe(Palindrome[] liste)
public void setPalindrome(Palindrome elt,
int i)
public int getMaxCount()
Palindrome.countPlusPlus(),
Palindrome.getCount(),
Palindrome.setCountZero(),
Palindrome.count,
Algorithms.commonPrediction(Sequence, SequenceListe[])public PalindromeListe getListeCount(int countmin)
countmin - (int) minimal count
public void addPalindrome(Palindrome elt)
elt - Palindrome to add.public boolean has(Palindrome elt)
elt - Palindrome.
public int whichPosition(Palindrome elt)
elt - (Palindrome)
public int whichPositionApprox(Palindrome elt)
elt - (Palindrome)
public void removePalindrome(Palindrome elt)
elt - Palindrome to removepublic void removePalindrome(int nbElt)
nbElt - Position of the Palindrome.private void computeAverageTest()
addPalindrome(Palindrome),
removePalindrome(int),
removePalindrome(Palindrome),
PalindromeListe(Palindrome[])public void sortByDecreasingRelevance()
Palindrome.isSelectedCible(double, double, boolean),
Palindrome.getPertinence()public void sortByEndPositionGrowing()
Palindrome.getPositionFin()public void sortByBeginPositionGrowing()
Palindrome.getPositionDebut()public boolean equals(PalindromeListe toCompare)
toCompare - Other PalindromeListe.
public int rechercher(Palindrome toSearch)
toSearch - (Palindrome)
OtherAlgorithmsStefan.resultat_commun(PalindromeListeListe)public int rechercher_approx(Palindrome toSearch)
toSearch - (Vector)
OtherAlgorithmsStefan.resultat_commun(PalindromeListeListe)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||