Overview | Package | Class | Tree | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--javax.speech.SpeechEvent | +--javax.speech.EngineEvent
EngineEvent
notifies changes in state of a
speech synthesis or recognition engine. EngineEvents
are issued to each EngineListener
attached to an engine.
The RecognizerEvent
and SynthesizerEvent
classes both extend EngineEvent
to provide specific
events for recognizers and synthesizers.
Field Summary | |
static int | ENGINE_ALLOCATED
Identifier for event issued when engine allocation is complete. |
static int | ENGINE_ALLOCATING_RESOURCES
Identifier for event issued when engine allocation has commenced. |
static int | ENGINE_DEALLOCATED
Identifier for event issued when engine deallocation is complete. |
static int | ENGINE_DEALLOCATING_RESOURCES
Identifier for event issued when engine deallocation has commenced. |
static int | ENGINE_PAUSED
Identifier for event issued when engine is paused. |
static int | ENGINE_RESUMED
Identifier for event issued when engine is resumed. |
long | newEngineState
Engine state following this event. |
long | oldEngineState
Engine state following prior to this event. |
Fields inherited from class javax.speech.SpeechEvent | |
id |
Fields inherited from class java.util.EventObject | |
source |
Constructor Summary | |
EngineEvent(Engine source,
int id,
long oldEngineState,
long newEngineState)
Constructs an EngineEvent with an event identifier, old
engine state and new engine state.
|
Method Summary | |
long | getNewEngineState()
Return the state following this EngineEvent .
|
long | getOldEngineState()
Return the state prior to this EngineEvent .
|
String | paramString()
Returns a parameter string identifying this event. |
Methods inherited from class javax.speech.SpeechEvent | |
getId, paramString, toString |
Methods inherited from class java.util.EventObject | |
getSource, toString |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
public static final int ENGINE_ALLOCATED
ALLOCATED
flag of the newEngineState
is set.
public static final int ENGINE_DEALLOCATED
DEALLOCATED
flag of the newEngineState
is set.
public static final int ENGINE_ALLOCATING_RESOURCES
ALLOCATING_RESOURCES
flag of the newEngineState
is set.
public static final int ENGINE_DEALLOCATING_RESOURCES
DEALLOCATING_RESOURCES
flag of the newEngineState
is set.
public static final int ENGINE_PAUSED
PAUSED
flag of the newEngineState
is set.
public static final int ENGINE_RESUMED
RESUMED
flag of the newEngineState
is set.
protected long newEngineState
protected long oldEngineState
Constructor Detail |
public EngineEvent(Engine source, int id, long oldEngineState, long newEngineState)
EngineEvent
with an event identifier, old
engine state and new engine state.
source
- the object that issued the event
id
- the identifier for the event type
oldEngineState
- engine state prior to this event
newEngineState
- engine state following this eventMethod Detail |
public long getNewEngineState()
EngineEvent
.
The value matches the getEngineState
method.
public long getOldEngineState()
EngineEvent
.
The value matches the getEngineState
method.
public String paramString()
Overview | Package | Class | Tree | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com