 
public interface Sorting_Machine
{
    //An Entry Keeper needs to provide a structure for holding
    // data and a boolean for determining whether or not the
    // sorting machine is in accepting mode.
    
    public abstract void addEntry(int x);
    //put a new entry into the Sorting machine
    
    public abstract void changeModes ( );
    // set the boolean to the opposite mode indicating that no more
    // entries may be made or to accepting mode if more
    // entries may be made after a clearing of the machine
    
    public abstract int getSmallest ( );
    // get the currently smallest entry from the machine
    
    public abstract int entryCount ( );
    // return the number of entries currently in the machine
    
    public abstract boolean isAccepting( );
    // returns true or false depending on whether or not the
    // machine is ready to accept more entries or is in the
    // mode for giving out the smallest value
    
}

