Class ArraySchlange

java.lang.Object
  extended by ArraySchlange
All Implemented Interfaces:
Schlange

public class ArraySchlange
extends java.lang.Object
implements Schlange

Implementation des Interface Schlange mit Hilfe eines Arrays


Field Summary
private  int count
           
private  int head
           
private  java.lang.Object[] inhalt
           
 
Constructor Summary
ArraySchlange(int N)
           
 
Method Summary
 void deq()
           
 boolean empty()
           
 void enq(java.lang.Object x)
           
 java.lang.Object front()
           
private  boolean full()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inhalt

private java.lang.Object[] inhalt

head

private int head

count

private int count
Constructor Detail

ArraySchlange

public ArraySchlange(int N)
Method Detail

full

private boolean full()

empty

public boolean empty()
Specified by:
empty in interface Schlange

enq

public void enq(java.lang.Object x)
Specified by:
enq in interface Schlange

deq

public void deq()
Specified by:
deq in interface Schlange

front

public java.lang.Object front()
Specified by:
front in interface Schlange