org.alchar.jdtk.jsapi
Class DTKEngineEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.speech.SpeechEvent
          extended by javax.speech.EngineEvent
              extended by org.alchar.jdtk.jsapi.DTKEngineEvent
All Implemented Interfaces:
Serializable

public class DTKEngineEvent
extends EngineEvent

This class extends the JSAPI EngineEvent class. It provides a more verbose textual event representation than the default one.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.speech.EngineEvent
ENGINE_ALLOCATED, ENGINE_ALLOCATING_RESOURCES, ENGINE_DEALLOCATED, ENGINE_DEALLOCATING_RESOURCES, ENGINE_PAUSED, ENGINE_RESUMED, newEngineState, oldEngineState
 
Fields inherited from class javax.speech.SpeechEvent
id
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DTKEngineEvent(Engine source, int id, long oldState, long newState)
          Create a new engine event with the given parameters.
 
Method Summary
 void paramString(StringBuilder sb)
          Add a textual representation to the given string builder.
 
Methods inherited from class javax.speech.EngineEvent
getNewEngineState, getOldEngineState
 
Methods inherited from class javax.speech.SpeechEvent
getId, paramString, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DTKEngineEvent

public DTKEngineEvent(Engine source,
                      int id,
                      long oldState,
                      long newState)
Create a new engine event with the given parameters.

Parameters:
source - Event source
id - Event id
oldState - Old engine state
newState - New engine state
Method Detail

paramString

public void paramString(StringBuilder sb)
Add a textual representation to the given string builder.

Overrides:
paramString in class EngineEvent
Parameters:
sb - String builder


Copyright © 2007-2009 Kris Van Hees. All Rights Reserved.