origincomment
Class Palindrome1

java.lang.Object
  extended by origincomment.Palindrome1
Direct Known Subclasses:
Palindrome1cible, Palindrome1test

public class Palindrome1
extends java.lang.Object

Main class for palindromes

Author:
Stéfan Engelen (2006) for coding..., Gabriel Chandesris (2008) for comments and makeing the code readable.
See Also:
Palindrome1cible, Palindrome1test, ADN1cible

Field Summary
protected  int positionDebut
          Begin position.
protected  int positionFin
          End position.
 
Constructor Summary
protected Palindrome1()
          Default constructor : nothing happend.
protected Palindrome1(int debut, int fin)
          Constructor with given begin and end of the palindrome.
 
Method Summary
 void change_position_debut(int pos)
           
 void change_position_fin(int pos)
           
protected  void load_File(java.io.BufferedReader entree)
          To read the beginning and the end of a palindrome in a BufferedReader input (two lines).
 int quelle_position_debut()
           
 int quelle_position_fin()
           
protected  void to_File(java.io.PrintWriter sortie)
          To print begin and end of palindrome in a PrintWriter output
 java.lang.String toString_web()
          Some changes to this procedure to make results appears for web / HTML.
 java.lang.String toString()
          "Methode toString pour permettre l'affichage des caracteristiques de chaque palindrome de la sequence."
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

positionDebut

protected int positionDebut
Begin position.


positionFin

protected int positionFin
End position.

Constructor Detail

Palindrome1

protected Palindrome1()
Default constructor : nothing happend.

See Also:
Palindrome1cible.Palindrome1cible()

Palindrome1

protected Palindrome1(int debut,
                      int fin)
Constructor with given begin and end of the palindrome.

Parameters:
debut - (int) begin
fin - (int) end
See Also:
Palindrome1cible.Palindrome1cible(int, int, int), Palindrome1cible.Palindrome1cible(int, int, int, int), Palindrome1cible.Palindrome1cible(int, int, int, int, int), Palindrome1test.Palindrome1test(int, int, int, int)
Method Detail

quelle_position_debut

public int quelle_position_debut()

quelle_position_fin

public int quelle_position_fin()

change_position_debut

public void change_position_debut(int pos)

change_position_fin

public void change_position_fin(int pos)

to_File

protected void to_File(java.io.PrintWriter sortie)
To print begin and end of palindrome in a PrintWriter output

Parameters:
sortie -

load_File

protected void load_File(java.io.BufferedReader entree)
                  throws java.lang.Exception
To read the beginning and the end of a palindrome in a BufferedReader input (two lines).

Parameters:
entree - (BufferedReader)
Throws:
java.lang.Exception - e
See Also:
ADN1cible.load_File(BufferedReader), Palindrome1cible.load_File(BufferedReader), Interface12.setInterface(Profil, String, Palindrome1cible, int)

toString

public java.lang.String toString()
"Methode toString pour permettre l'affichage des caracteristiques de chaque palindrome de la sequence."

Overrides:
toString in class java.lang.Object
See Also:
ADN1cible.afficher_Caracteristique(), Palindrome1cible.toString()

toString_web

public java.lang.String toString_web()
Some changes to this procedure to make results appears for web / HTML.

Returns:
(String)
See Also:
ADN1cible.afficher_Caracteristique_Web(), Palindrome1cible.toString_web()