origincomment
Class NoeudPalindrome

java.lang.Object
  extended by origincomment.NoeudPalindrome

public class NoeudPalindrome
extends java.lang.Object

Palindromes nodes in a tree of algorithm execution.

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

Field Summary
private  java.util.Vector fils
          Sons of current node : initialized to a new Vector (empty).
private  NoeudPalindrome pere
          Father of current node (default is null).
private  Palindrome1cible[] tableauPalindrome
          Table of palindromes (default is size one and [0] not defined).
 
Constructor Summary
NoeudPalindrome()
          Default constructor.
NoeudPalindrome(Palindrome1cible[] tab)
          Constructor with a given table of palindromes.
NoeudPalindrome(Palindrome1cible[] tab, NoeudPalindrome pere)
          Constructor with given table of palindromes and a father node.
 
Method Summary
 void change_fils(NoeudPalindrome f, int i)
           
 void change_fils(java.util.Vector v)
           
 void change_palindrome(Palindrome1cible p, int i)
           
 void change_pere(NoeudPalindrome p)
           
 void change_tableau(Palindrome1cible[] tab)
           
 NoeudPalindrome quel_fils(int i)
           
 Palindrome1cible quel_palindrome(int i)
           
 NoeudPalindrome quel_pere()
           
 Palindrome1cible[] quel_tableau()
           
 java.util.Vector quels_fils()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pere

private NoeudPalindrome pere
Father of current node (default is null).


tableauPalindrome

private Palindrome1cible[] tableauPalindrome
Table of palindromes (default is size one and [0] not defined).


fils

private java.util.Vector fils
Sons of current node : initialized to a new Vector (empty).

Constructor Detail

NoeudPalindrome

public NoeudPalindrome()
Default constructor. A default palindrome (-1,-1,-1) is put at [0].

See Also:
ArbrePalindrome.ArbrePalindrome()

NoeudPalindrome

public NoeudPalindrome(Palindrome1cible[] tab)
Constructor with a given table of palindromes.

Parameters:
tab - (Palindrome1cible[]) table of palindromes
See Also:
ADN1cible.change_palindromes(Palindrome1cible[])

NoeudPalindrome

public NoeudPalindrome(Palindrome1cible[] tab,
                       NoeudPalindrome pere)
Constructor with given table of palindromes and a father node.

Parameters:
tab - (Palindrome1cible[]) table of palindromes
pere - (NoeudPalindrome) father
Method Detail

quel_pere

public NoeudPalindrome quel_pere()

quels_fils

public java.util.Vector quels_fils()

quel_fils

public NoeudPalindrome quel_fils(int i)

quel_tableau

public Palindrome1cible[] quel_tableau()

quel_palindrome

public Palindrome1cible quel_palindrome(int i)

change_pere

public void change_pere(NoeudPalindrome p)

change_fils

public void change_fils(java.util.Vector v)

change_tableau

public void change_tableau(Palindrome1cible[] tab)

change_palindrome

public void change_palindrome(Palindrome1cible p,
                              int i)

change_fils

public void change_fils(NoeudPalindrome f,
                        int i)