modele
Class NoeudArbreExecListe

java.lang.Object
  extended by modele.ObjectListe
      extended by modele.NoeudArbreExecListe

public class NoeudArbreExecListe
extends ObjectListe

This class to provide easy-to-use NoeudArbreExec tables / Lists.

Author:
Gabriel Chandesris (2008)

Field Summary
private  NoeudArbreExec[] liste
          The list of Palindrome's
 
Constructor Summary
NoeudArbreExecListe()
          Default constructor with a list of 0 elements.
NoeudArbreExecListe(NoeudArbreExec[] liste)
          Constructor with a pre-made table of NoeudArbreExec's.
 
Method Summary
 void addNoeudArbreExec(NoeudArbreExec fils, NoeudArbreExec pere)
          To add a NoeudArbreExec at the end of the list.
 boolean equals(NoeudArbreExecListe toCompare)
          To know if two NoeudArbreExecListe are equals (local instance and an other).
 NoeudArbreExec[] getListe()
           
 NoeudArbreExec getNoeudArbreExec(int i)
           
 boolean has(NoeudArbreExec elt)
          To know if a NoeudArbreExec is in this list.
 boolean hasNoeudArbreExecWith(Palindrome elt)
          To know if a NoeudArbreExec of this list contain a specific Palindrome.
 int length()
          To get the length of the current list of Object's
 void removeNoeudArbreExec(int nbElt)
          To remove a NoeudArbreExec at a specific place in the list.
 void removeNoeudArbreExec(NoeudArbreExec elt)
          To remove a specific NoeudArbreExec
 void removeNoeudArbreExec(Palindrome elt)
          To remove a specific NoeudArbreExec with Palindrome (first one remove).
 void setListe(NoeudArbreExec[] liste)
           
 void setNoeudArbreExec(NoeudArbreExec elt, int i)
           
 
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

liste

private NoeudArbreExec[] liste
The list of Palindrome's

Constructor Detail

NoeudArbreExecListe

public NoeudArbreExecListe()
Default constructor with a list of 0 elements.


NoeudArbreExecListe

public NoeudArbreExecListe(NoeudArbreExec[] liste)
Constructor with a pre-made table of NoeudArbreExec's.

Parameters:
liste -
Method Detail

length

public int length()
Description copied from class: ObjectListe
To get the length of the current list of Object's

Specified by:
length in class ObjectListe
Returns:
int

getListe

public NoeudArbreExec[] getListe()

getNoeudArbreExec

public NoeudArbreExec getNoeudArbreExec(int i)

setListe

public void setListe(NoeudArbreExec[] liste)

setNoeudArbreExec

public void setNoeudArbreExec(NoeudArbreExec elt,
                              int i)

addNoeudArbreExec

public void addNoeudArbreExec(NoeudArbreExec fils,
                              NoeudArbreExec pere)
To add a NoeudArbreExec at the end of the list.

Parameters:
fils - NoeudArbreExec to add.
pere - NoeudArbreExec father of fils.

has

public boolean has(NoeudArbreExec elt)
To know if a NoeudArbreExec is in this list.

Parameters:
elt - NoeudArbreExec.
Returns:
boolean

hasNoeudArbreExecWith

public boolean hasNoeudArbreExecWith(Palindrome elt)
To know if a NoeudArbreExec of this list contain a specific Palindrome.

Parameters:
elt - Palindrome
Returns:
boolean

removeNoeudArbreExec

public void removeNoeudArbreExec(NoeudArbreExec elt)
To remove a specific NoeudArbreExec

Parameters:
elt - NoeudArbreExec

removeNoeudArbreExec

public void removeNoeudArbreExec(Palindrome elt)
To remove a specific NoeudArbreExec with Palindrome (first one remove). If others NoeudArbreExec contain the same Palindrome they will stay.

Parameters:
elt - NoeudArbreExec to remove
See Also:
hasNoeudArbreExecWith(Palindrome)

removeNoeudArbreExec

public void removeNoeudArbreExec(int nbElt)
To remove a NoeudArbreExec at a specific place in the list.

Parameters:
nbElt - Position of the NoeudArbreExec.

equals

public boolean equals(NoeudArbreExecListe toCompare)
To know if two NoeudArbreExecListe are equals (local instance and an other).

Parameters:
toCompare - Other NoeudArbreExecListe.
Returns:
boolean