sims.mdt.nd
Class Fifo

java.lang.Object
  extended by sims.mdt.nd.Fifo

public class Fifo
extends java.lang.Object


Constructor Summary
Fifo()
           
Fifo(MConfig c)
           
 
Method Summary
 void add(MConfig c)
          Add an element at the bottom of the FIFO
 MConfig getFirst()
           
 int getSize()
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fifo

public Fifo()

Fifo

public Fifo(MConfig c)
Method Detail

add

public void add(MConfig c)
Add an element at the bottom of the FIFO

Parameters:
c - the MConfig to add to the FIFO.

isEmpty

public boolean isEmpty()
Returns:
true if is the FIFO is empty (contains no MConfig (anymore)).

getFirst

public MConfig getFirst()
Returns:
the top of the FIFO, and delete it, shifting all elements consequently.

getSize

public int getSize()
Returns:
the number of MConfigs in the Fifo.