|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodele.NoeudArbreExec
public class NoeudArbreExec
This class is useful for an following execution tree in structural search of Palindrome's and definite each node.
Field Summary | |
---|---|
private NoeudArbreExecListe |
fils
Descendants in the tree of the current node. |
private PalindromeListe |
palindromes
The node contain a list of Palindrome's. |
private NoeudArbreExec |
pere
Father of current node. |
Constructor Summary | |
---|---|
NoeudArbreExec()
Default constructor, a first node which has no father and contain an empty list of Palindrome's and has no descendants (empty list). |
|
NoeudArbreExec(Palindrome[] palindromes)
Constrcutor with a given table of Palindrome's. |
|
NoeudArbreExec(Palindrome[] palindromes,
NoeudArbreExec father)
Constructor with a given table of Palindrome's and a father node. |
|
NoeudArbreExec(PalindromeListe palindromes)
Constrcutor with a given list of Palindrome's. |
|
NoeudArbreExec(PalindromeListe palindromes,
NoeudArbreExec father)
Constructor with a given list of Palindrome's and a father node. |
Method Summary | |
---|---|
void |
addExecutionNodes(PalindromeListeListe Em)
This method to add new son's to current Node. |
void |
addFils(NoeudArbreExec newSon)
|
void |
addFils(NoeudArbreExecListe newSons)
|
boolean |
equals(NoeudArbreExec toCompare)
|
PalindromeListe |
getAllPalindromes()
A simple recursive ethod to get whole Palindrome's in the execution tree. |
PalindromeListeListe |
getAllStructures()
A simple recursive mehtod to get all structures computed by algorithms. |
NoeudArbreExecListe |
getFils()
|
NoeudArbreExec |
getFils(int i)
|
int |
getGeneration()
To get the generation level of current node in the execution tree. |
int |
getGenerationIter()
To get the generation level of current node in the execution tree. |
Palindrome |
getPalindrome(int i)
|
PalindromeListe |
getPalindromes()
|
NoeudArbreExec |
getPere()
|
boolean |
hasFils()
|
boolean |
hasPalindrome(Palindrome elt)
|
boolean |
isTreeNotFull(int canlimit)
This method to know if palindrome's search can continue or not. |
void |
setFils(NoeudArbreExecListe fils)
|
void |
setPalindromes(Palindrome[] palindromes)
|
void |
setPalindromes(PalindromeListe palindromes)
|
void |
setPere(NoeudArbreExec pere)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private NoeudArbreExec pere
private NoeudArbreExecListe fils
private PalindromeListe palindromes
Constructor Detail |
---|
public NoeudArbreExec()
public NoeudArbreExec(PalindromeListe palindromes)
palindromes
- (PalindromeListe)public NoeudArbreExec(Palindrome[] palindromes)
palindromes
- (Palindrome[])public NoeudArbreExec(PalindromeListe palindromes, NoeudArbreExec father)
palindromes
- (PalindromeListe)father
- (NoeudArbreExec)public NoeudArbreExec(Palindrome[] palindromes, NoeudArbreExec father)
palindromes
- (Palindrome[])father
- (NoeudArbreExec)Method Detail |
---|
public NoeudArbreExec getFils(int i)
public NoeudArbreExecListe getFils()
public PalindromeListe getPalindromes()
public Palindrome getPalindrome(int i)
public NoeudArbreExec getPere()
public boolean hasFils()
public boolean hasPalindrome(Palindrome elt)
public void setFils(NoeudArbreExecListe fils)
public void setPere(NoeudArbreExec pere)
public void addFils(NoeudArbreExec newSon)
public void addFils(NoeudArbreExecListe newSons)
public void setPalindromes(PalindromeListe palindromes)
public void setPalindromes(Palindrome[] palindromes)
public void addExecutionNodes(PalindromeListeListe Em)
Em
- PalindromeListe[] (tab of PalindromeListe)public int getGeneration()
getGenerationIter()
public int getGenerationIter()
getGeneration()
public boolean isTreeNotFull(int canlimit)
canlimit
- (int)Maximal number of palindromes / alternate structures accepted.
Algorithms.Ms
public PalindromeListe getAllPalindromes()
TODO SERVLET tester methode getAllPalindromes
public PalindromeListeListe getAllStructures()
public boolean equals(NoeudArbreExec toCompare)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |