csli.dialog.app.calo.addressee
Class DummyAddresseeDetector

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

public class DummyAddresseeDetector
extends AddresseeDetector

A dummy detector - always returns an empty set of addressees for an utterance, and never actually asserts them in the OPI model

Author:
mpurver

Field Summary
 
Fields inherited from class csli.dialog.app.calo.addressee.AddresseeDetector
logger, speakers, speakIds, speaks
 
Constructor Summary
DummyAddresseeDetector()
          As this class is only a dummy, we can initialize it without a model
 
Method Summary
 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 init(CorporaOpi_2_0 model)
          Initialize this addressee detector on a model containing some utterances
 
Methods inherited from class csli.dialog.app.calo.addressee.AddresseeDetector
detect, doMeeting, doSpeak, getGui, getTitle, isServiceAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyAddresseeDetector

public DummyAddresseeDetector()
As this class is only a dummy, we can initialize it without a model

Method Detail

init

public void init(CorporaOpi_2_0 model)
Description copied from class: AddresseeDetector
Initialize this addressee detector on a model containing some utterances

Overrides:
init in class AddresseeDetector

detect

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

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