1. package de.fu.alp5.foreign.distributed;
  2.  
  3. import java.rmi.Remote;
  4. import java.rmi.RemoteException;
  5. import java.util.concurrent.CopyOnWriteArraySet;
  6.  
  7. /**
  8.  * Provides methods for remote invocation.
  9.  *
  10.  * @author Konrad Reiche
  11.  * @author David Bialik
  12.  *
  13.  */
  14. public interface TextAnalyzer extends Remote {
  15.  
  16.     /**
  17.      * Adds a new foreign word to the global foreign word list.
  18.      */
  19.     public void addForeignWord(String foreignWord) throws RemoteException;
  20.  
  21.     /**
  22.      * Gets an object copy of the global foreign word list in order to receive
  23.      * all foreign words collected so far.
  24.      */
  25.     public CopyOnWriteArraySet<String> getGlobalForeignWordSet()
  26.             throws RemoteException;
  27.  
  28. }