csli.dialog.app.calo.addressee
Class AddresseeDetector

java.lang.Object
  extended by csli.dialog.app.calo.addressee.AddresseeDetector
All Implemented Interfaces:
Service, AddresseeDetectorService
Direct Known Subclasses:
DummyAddresseeDetector, GenerousAddresseeDetector, NaiveAddresseeDetector

public abstract class AddresseeDetector
extends Object
implements AddresseeDetectorService

An abstract addressee detector

Author:
mpurver

Field Summary
protected static org.apache.log4j.Logger logger
           
protected  Set<CorporaOpi_2_0.NOMOSPerson> speakers
           
protected  List<String> speakIds
           
protected  List<CorporaOpi_2_0.NOMOSSpeak> speaks
           
 
Constructor Summary
AddresseeDetector(CorporaOpi_2_0 model)
           
 
Method Summary
 Set<String> detect(String speak)
          Detect addressee(s) for a given Speak event, but do not assert in the model.
abstract  Set<String> detect(String speak, boolean addToModel)
          Detect addressee(s) for a given Speak event, optionally asserting in the OPI model via the NOMOSAddressee property
 void doMeeting(String meeting)
          Detect addressees for all Speak events within a Meeting, and assert via the NOMOSAddressee property.
 Set<String> doSpeak(String speak)
          Detect addressee(s) for a given Speak event, and assert via the NOMOSAddressee property.
 JPanel getGui()
          Get a Swing JPanel which provides a GUI to this service.
 String getTitle()
          Get the name of this service as it should appear in the GUI.
 void init(CorporaOpi_2_0 model)
          Initialize this addressee detector on a model containing some utterances
 boolean isServiceAlive()
          Is the service happy and alive?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

speaks

protected List<CorporaOpi_2_0.NOMOSSpeak> speaks

speakIds

protected List<String> speakIds

speakers

protected Set<CorporaOpi_2_0.NOMOSPerson> speakers

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

AddresseeDetector

public AddresseeDetector(CorporaOpi_2_0 model)
Method Detail

init

public void init(CorporaOpi_2_0 model)
Initialize this addressee detector on a model containing some utterances

Parameters:
model -

doMeeting

public void doMeeting(String meeting)
Description copied from interface: AddresseeDetectorService
Detect addressees for all Speak events within a Meeting, and assert via the NOMOSAddressee property.

Specified by:
doMeeting in interface AddresseeDetectorService
Parameters:
meeting - the ID of the Meeting to process

doSpeak

public Set<String> doSpeak(String speak)
Description copied from interface: AddresseeDetectorService
Detect addressee(s) for a given Speak event, and assert via the NOMOSAddressee property.

Specified by:
doSpeak in interface AddresseeDetectorService
Parameters:
speak - the ID of the Speak to process
Returns:
the (possibly empty) Set of IDs of the addressed Persons.

detect

public Set<String> detect(String speak)
Description copied from interface: AddresseeDetectorService
Detect addressee(s) for a given Speak event, but do not assert in the model.

Specified by:
detect in interface AddresseeDetectorService
Parameters:
speak - the ID of the Speak to process
Returns:
the (possibly empty) Set of IDs of the addressed Persons.

detect

public abstract Set<String> detect(String speak,
                                   boolean addToModel)
Detect addressee(s) for a given Speak event, optionally asserting in the OPI model via the NOMOSAddressee property

Parameters:
speak - the ID of the Speak
addToModel - if true, assert NOMOSAddressee
Returns:
the (possibly empty) Set of IDs of the addressed Persons.

getGui

public JPanel getGui()
Description copied from interface: Service
Get a Swing JPanel which provides a GUI to this service.

Specified by:
getGui in interface Service

getTitle

public String getTitle()
Description copied from interface: Service
Get the name of this service as it should appear in the GUI.

Specified by:
getTitle in interface Service

isServiceAlive

public boolean isServiceAlive()
Description copied from interface: Service
Is the service happy and alive?

Specified by:
isServiceAlive in interface Service
Returns: