modele
Class PalindromeCible

java.lang.Object
  extended by modele.Palindrome
      extended by modele.PalindromeCible

Deprecated. Transfered to Palindrome

public class PalindromeCible
extends Palindrome

Extension of class Palindrome, useful for conversion of Stefan Engelen's implementation of algorithms.
Aim is to have an equivalent Palindrome "unaligned" (??) : translation interface (Interface Design Pattern).

Since:
August, 29 2008
Author:
Gabriel Chandesris (2008)

Field Summary
private  int[] carac_max
          Deprecated. Maximum characteristics ?
private  int[] carac_min
          Deprecated. Minimum characteristics ?
private  int conservationInSequences
          Deprecated. "Number of conservation in sequences"
private  boolean indeci
          Deprecated. "Undecided" (default is false).
private  int nombre_palindromes
          Deprecated. Number of represented palindromes.
private  double poidsequence
          Deprecated. Sequence weight.
private  double pourcentage_conservation
          Deprecated. Conservation rate / percentage (default is 1).
private  int realLength
          Deprecated. "Real length"
 
Constructor Summary
PalindromeCible(int debut, int fin, int longueur)
          Deprecated.  
PalindromeCible(int debut, int fin, int longueur, double score)
          Deprecated.  
 
Method Summary
 void change_position_debut(int pos)
          Deprecated.  
 void change_position_fin(int pos)
          Deprecated.  
 void changer_carac_max(int quelle_carac, int nv_carac)
          Deprecated.  
 void changer_carac_min(int quelle_carac, int nv_carac)
          Deprecated.  
 void changer_conservation(int conservation)
          Deprecated.  
 void changer_indeci(boolean b)
          Deprecated.  
 void changer_longueur_Reelle(int longueur)
          Deprecated.  
 void changer_longueur(int longueur)
          Deprecated.  
 void changer_nb_pal(int nv)
          Deprecated.  
 void changer_poid_sequence(double score)
          Deprecated.  
 void changer_pourcentage_conservation(double nv)
          Deprecated.  
 boolean chevauchant(Palindrome p)
          Deprecated. "Following methods sorted by use order in ADN1 Class". (17)
"to know if two palindrome are crossed together"
 PalindromeCible copie_clone()
          Deprecated. To get a clone of the current instance of PalindromeCible.
 boolean equals(Palindrome toCompare)
          Deprecated. Sucharged method : real length added.
static boolean est_Compatible(PalindromeCible pal1, PalindromeCible pal2)
          Deprecated. "Following methods sorted by use order in ADN1 Class". (5)
"To know if two palindromes are compatibles"
After reading the code, not sure that fully correct...
 boolean est_indeci()
          Deprecated.  
 boolean inclu_dans(Palindrome p)
          Deprecated. "Following methods sorted by use order in ADN1 Class". (16)
"this method to know if current instance is included in argument with common pairwise "
 int nombre_sequence_conserve()
          Deprecated.  
 int quel_nb_pal()
          Deprecated.  
 double quel_poid_sequence()
          Deprecated.  
 double quel_pourcentage_conservation()
          Deprecated.  
 int quelle_carac_max(int i)
          Deprecated.  
 int quelle_carac_min(int i)
          Deprecated.  
 int quelle_longueur_reelle()
          Deprecated.  
 int quelle_position_debut()
          Deprecated.  
 int quelle_position_fin()
          Deprecated.  
 int rechercher_approx(java.util.Vector tabPal)
          Deprecated. "Following methods sorted by use order in ADN1 Class". (15)
"to find an approximate palindrome in a vector of palindromes."
 int rechercher(java.util.Vector tabPal)
          Deprecated. "Following methods sorted by use order in ADN1 Class". (14)
"to find a palindrome in a Vector of palindromes"
 
Methods inherited from class modele.Palindrome
chevauchant, choisir_meilleur, computeNumbers, copie, countPlusPlus, equivalence, est_Compatible, getCount, getLongMut, getNombreErreur, getNombreMutationDouble, getNombreMutationSimple, getPertinence, getPoid, getPositionDebut, getPositionFin, getScore, getSequence, getTaux, isCompatible, isCompatibleWith, isScore, isSelected, isSelectedCible, isSelectedTest, length, nbErreursPlusPlus, nbMutDoublePlusPlus, nbMutSimplePlusPlus, quel_critere, quel_type_critere, quelle_longueur1, quelle_longueur2, rssh, setCountZero, setLength, setLongMut, setNombreErreur, setNombreMutationDouble, setNombreMutationSimple, setPertinence, setPoid, setPositionDebut, setPositionFin, setScore, setSequence, setTaux
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

realLength

private int realLength
Deprecated. 
"Real length"


conservationInSequences

private int conservationInSequences
Deprecated. 
"Number of conservation in sequences"


indeci

private boolean indeci
Deprecated. 
"Undecided" (default is false).


pourcentage_conservation

private double pourcentage_conservation
Deprecated. 
Conservation rate / percentage (default is 1).


poidsequence

private double poidsequence
Deprecated. 
Sequence weight.


carac_max

private int[] carac_max
Deprecated. 
Maximum characteristics ?


carac_min

private int[] carac_min
Deprecated. 
Minimum characteristics ?


nombre_palindromes

private int nombre_palindromes
Deprecated. 
Number of represented palindromes.

Constructor Detail

PalindromeCible

public PalindromeCible(int debut,
                       int fin,
                       int longueur)
Deprecated. 

PalindromeCible

public PalindromeCible(int debut,
                       int fin,
                       int longueur,
                       double score)
Deprecated. 
Method Detail

quelle_position_debut

public int quelle_position_debut()
Deprecated. 
Overrides:
quelle_position_debut in class Palindrome

quelle_position_fin

public int quelle_position_fin()
Deprecated. 
Overrides:
quelle_position_fin in class Palindrome

quelle_longueur_reelle

public int quelle_longueur_reelle()
Deprecated. 
Overrides:
quelle_longueur_reelle in class Palindrome

quel_pourcentage_conservation

public double quel_pourcentage_conservation()
Deprecated. 
Overrides:
quel_pourcentage_conservation in class Palindrome

est_indeci

public boolean est_indeci()
Deprecated. 
Overrides:
est_indeci in class Palindrome

quel_poid_sequence

public double quel_poid_sequence()
Deprecated. 

quelle_carac_max

public int quelle_carac_max(int i)
Deprecated. 
Overrides:
quelle_carac_max in class Palindrome

quelle_carac_min

public int quelle_carac_min(int i)
Deprecated. 
Overrides:
quelle_carac_min in class Palindrome

quel_nb_pal

public int quel_nb_pal()
Deprecated. 
Overrides:
quel_nb_pal in class Palindrome

change_position_debut

public void change_position_debut(int pos)
Deprecated. 
Overrides:
change_position_debut in class Palindrome

change_position_fin

public void change_position_fin(int pos)
Deprecated. 
Overrides:
change_position_fin in class Palindrome

changer_longueur

public void changer_longueur(int longueur)
Deprecated. 
Overrides:
changer_longueur in class Palindrome

changer_longueur_Reelle

public void changer_longueur_Reelle(int longueur)
Deprecated. 
Overrides:
changer_longueur_Reelle in class Palindrome

changer_pourcentage_conservation

public void changer_pourcentage_conservation(double nv)
Deprecated. 
Overrides:
changer_pourcentage_conservation in class Palindrome

changer_indeci

public void changer_indeci(boolean b)
Deprecated. 
Overrides:
changer_indeci in class Palindrome

changer_poid_sequence

public void changer_poid_sequence(double score)
Deprecated. 

changer_carac_max

public void changer_carac_max(int quelle_carac,
                              int nv_carac)
Deprecated. 
Overrides:
changer_carac_max in class Palindrome

changer_carac_min

public void changer_carac_min(int quelle_carac,
                              int nv_carac)
Deprecated. 
Overrides:
changer_carac_min in class Palindrome

changer_nb_pal

public void changer_nb_pal(int nv)
Deprecated. 
Overrides:
changer_nb_pal in class Palindrome

est_Compatible

public static boolean est_Compatible(PalindromeCible pal1,
                                     PalindromeCible pal2)
Deprecated. 
"Following methods sorted by use order in ADN1 Class". (5)
"To know if two palindromes are compatibles"
After reading the code, not sure that fully correct...

Parameters:
pal1 - (PalindromeCible)
pal2 - (PalindromeCible)
Returns:
(boolean) compatible or not
See Also:
OtherAlgorithmsStefan.incompatibilite_plusieurs_choix(PalindromeListeListe, int, int, int, double, boolean, int), OtherAlgorithmsStefan.incompatibilite_un_choix(Palindrome[], int, int), AlgorithmsStefan.incompatibilite_plusieurs_choix(PalindromeListeListe, int, int, int, double, boolean, int), AlgorithmsStefan.incompatibilite_un_choix(Palindrome[], int, int), Palindrome.isCompatible(Palindrome)

chevauchant

public boolean chevauchant(Palindrome p)
Deprecated. 
"Following methods sorted by use order in ADN1 Class". (17)
"to know if two palindrome are crossed together"

Overrides:
chevauchant in class Palindrome
Parameters:
p - (Palindrome)
Returns:
(boolean)
See Also:
AlgorithmsStefan.resultat_commun(PalindromeListeListe)

inclu_dans

public boolean inclu_dans(Palindrome p)
Deprecated. 
"Following methods sorted by use order in ADN1 Class". (16)
"this method to know if current instance is included in argument with common pairwise "

Overrides:
inclu_dans in class Palindrome
Parameters:
p - (Palindrome)
Returns:
(boolean)
See Also:
PalindromeListe.rechercher_approx(Palindrome), OtherAlgorithmsStefan.incompatibilite_plusieurs_choix(PalindromeListeListe, int, int, int, double, boolean, int), OtherAlgorithmsStefan.incompatibilite_un_choix(Palindrome[], int, int), OtherAlgorithmsStefan.palindromes_communs(Palindrome[], Palindrome[], boolean)

equals

public boolean equals(Palindrome toCompare)
Deprecated. 
Sucharged method : real length added.

Overrides:
equals in class Palindrome
Parameters:
toCompare - An other Palindrome.
Returns:
boolean
See Also:
rechercher(Vector), Palindrome.equals(Palindrome)

rechercher

public int rechercher(java.util.Vector tabPal)
Deprecated. 
"Following methods sorted by use order in ADN1 Class". (14)
"to find a palindrome in a Vector of palindromes"

Overrides:
rechercher in class Palindrome
Parameters:
tabPal - (Vector)
Returns:
(int) position
See Also:
OtherAlgorithmsStefan.resultat_commun(PalindromeListeListe), AlgorithmsStefan.resultat_commun(PalindromeListeListe)

rechercher_approx

public int rechercher_approx(java.util.Vector tabPal)
Deprecated. 
"Following methods sorted by use order in ADN1 Class". (15)
"to find an approximate palindrome in a vector of palindromes."

Overrides:
rechercher_approx in class Palindrome
Parameters:
tabPal - (Vector)
Returns:
(int) position
See Also:
OtherAlgorithmsStefan.resultat_commun(PalindromeListeListe), AlgorithmsStefan.resultat_commun(PalindromeListeListe)

copie_clone

public PalindromeCible copie_clone()
Deprecated. 
To get a clone of the current instance of PalindromeCible.

Returns:
(PalindromeCible)
See Also:
OtherAlgorithmsStefan.computing(SequenceListe[], Sequence, boolean, boolean), AlgorithmsStefan.computing(SequenceListe[], Sequence, boolean, boolean)

changer_conservation

public void changer_conservation(int conservation)
Deprecated. 
Overrides:
changer_conservation in class Palindrome

nombre_sequence_conserve

public int nombre_sequence_conserve()
Deprecated. 
Overrides:
nombre_sequence_conserve in class Palindrome