Class Pile

java.lang.Object
  |
  +--Pile
Direct Known Subclasses:
PileMVC

public class Pile
extends java.lang.Object
implements PileI

Gestion de la pile d'Object du TP3.

TP 6 Java

See Also:
PileI

Field Summary
private  int ptr
           
private  java.lang.Object[] zone
           
 
Constructor Summary
Pile(int taille)
           
 
Method Summary
 java.lang.Object depiler()
           
 void empiler(java.lang.Object i)
           
 boolean estPleine()
           
 boolean estVide()
           
 java.lang.Object sommet()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

zone

private java.lang.Object[] zone

ptr

private int ptr
Constructor Detail

Pile

public Pile(int taille)
Method Detail

empiler

public void empiler(java.lang.Object i)
             throws PilePleineException
Specified by:
empiler in interface PileI

depiler

public java.lang.Object depiler()
                         throws PileVideException
Specified by:
depiler in interface PileI

sommet

public java.lang.Object sommet()
                        throws PileVideException
Specified by:
sommet in interface PileI

estVide

public boolean estVide()
Specified by:
estVide in interface PileI

estPleine

public boolean estPleine()
Specified by:
estPleine in interface PileI

toString

public java.lang.String toString()
Specified by:
toString in interface PileI
Overrides:
toString in class java.lang.Object