package de.fu.alp5.foreign.distributed;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.concurrent.CopyOnWriteArraySet;
/**
* Provides methods for remote invocation.
*
* @author Konrad Reiche
* @author David Bialik
*
*/
public interface TextAnalyzer extends Remote {
/**
* Adds a new foreign word to the global foreign word list.
*/
public void addForeignWord(String foreignWord) throws RemoteException;
/**
* Gets an object copy of the global foreign word list in order to receive
* all foreign words collected so far.
*/
public CopyOnWriteArraySet<String> getGlobalForeignWordSet()
throws RemoteException;
}