org.jscience.linguistics
Class Locutor

java.lang.Object
  extended by org.jscience.sociology.Role
      extended by org.jscience.linguistics.Locutor
All Implemented Interfaces:
Named

public class Locutor
extends Role

A class representing an individual in an talking situation (cocktail, etc.).


Field Summary
 
Fields inherited from class org.jscience.sociology.Role
CLIENT, OBSERVER, SERVER, SUPERVISOR
 
Constructor Summary
Locutor(Individual individual, ChatSituation situation)
          Creates a new Locutor object.
 
Method Summary
 void addLanguage(Language language)
          DOCUMENT ME!
 java.util.Set getKnownLanguages()
          DOCUMENT ME!
 void removeLanguage(Language language)
          DOCUMENT ME!
 void setLanguages(java.util.Set languages)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.sociology.Role
getIndividual, getKind, getName, getSituation, setSituation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Locutor

public Locutor(Individual individual,
               ChatSituation situation)
Creates a new Locutor object.

Parameters:
individual - DOCUMENT ME!
situation - DOCUMENT ME!
Method Detail

getKnownLanguages

public java.util.Set getKnownLanguages()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addLanguage

public void addLanguage(Language language)
DOCUMENT ME!

Parameters:
language - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

removeLanguage

public void removeLanguage(Language language)
DOCUMENT ME!

Parameters:
language - DOCUMENT ME!

setLanguages

public void setLanguages(java.util.Set languages)
DOCUMENT ME!

Parameters:
languages - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!