|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--javax.telephony.media.provider.EventObject | +--javax.telephony.media.provider.Base.Event | +--javax.telephony.media.provider.Base.MediaServiceEvent | +--javax.telephony.media.provider.Base.ResourceEvent | +--javax.telephony.media.provider.Base_ASREvent | +--javax.telephony.media.provider.S200_ASREvent
Defines the accessor methods used by S.200 ASR Events.
Inner classes inherited from class javax.telephony.media.provider.Base.Event |
Base.Event.SyncInterruptedException |
Inner classes inherited from class javax.telephony.media.ASREvent |
ASREvent.TokenSequence |
Fields inherited from interface javax.telephony.media.MediaConstants |
e_OK, q_Duration, q_Standard, q_Stop |
Fields inherited from interface javax.telephony.media.ResourceConstants |
e_Disconnected, FOREVER, q_Disconnected, q_RTC, rtcc_Disconnected, rtcc_TriggerRTC, v_Forever |
Constructor Summary | |
S200_ASREvent(java.lang.Object source,
Symbol eventID)
Create specific completion or non-transaction event from ASR. |
|
S200_ASREvent(java.lang.Object source,
Symbol eventID,
boolean isNonTrans)
Constructor for non-trans vesion |
Method Summary | |
java.util.Dictionary |
getContextDictionary()
Return a Dictionary containing the context parameters. |
java.lang.String |
getContextName()
Return the name of the affected context. |
int |
getNumberOfSequences()
The number of TokenSequences available. |
Symbol |
getReadiness()
Return a Symbol telling if the word has been sufficiently trained. |
Symbol |
getResultPresentation()
Return a Symbol indicating the type of results. |
java.lang.String |
getRuleExpansion()
Return the rule expansion from getRuleExpansion. |
ASREvent.TokenSequence |
getTokenSequence(int seqNum)
Return one recognition sequence. |
Symbol |
getTrainingResult()
Return a Symbol describing the results of training. |
java.lang.String |
getWordName()
Return the name of the affected word. |
void |
setFields()
extract Result values from payload into local fields. |
Methods inherited from class javax.telephony.media.provider.Base_ASREvent |
dispatch |
Methods inherited from class javax.telephony.media.provider.Base.ResourceEvent |
getRTCTrigger, throwIfMediaResourceException |
Methods inherited from class javax.telephony.media.provider.Base.MediaServiceEvent |
getMediaService |
Methods inherited from class javax.telephony.media.provider.Base.Event |
done, getError, getEventID, getException, getPayload, getQualifier, getSubError, getWarning, isDone, setError, setFields, setFields, setPayload, setQualifier, setSubError, throwIfRuntimeException, toString, waitForEventDone, waitForEventDone, waitForListenersDone |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.telephony.media.async.Async.ResourceEvent |
throwIfMediaResourceException |
Methods inherited from interface javax.telephony.media.async.Async.Event |
isDone, throwIfRuntimeException, waitForEventDone, waitForEventDone, waitForListenersDone |
Methods inherited from interface javax.telephony.media.MediaEvent |
getError, getEventID, getException, getPayload, getQualifier, getSubError, getWarning |
Methods inherited from interface javax.telephony.media.MediaServiceEvent |
getMediaService |
Methods inherited from interface javax.telephony.media.ResourceEvent |
getRTCTrigger |
Constructor Detail |
public S200_ASREvent(java.lang.Object source, Symbol eventID)
source
- the Object that created this EventObject.eventID
- a Symbol that identifies this event:
ASR.ev_Recognizepublic S200_ASREvent(java.lang.Object source, Symbol eventID, boolean isNonTrans)
Method Detail |
public void setFields()
public Symbol getResultPresentation()
ASREvent
getResultPresentation
in class Base_ASREvent
javax.telephony.media.ASREvent
ASRConstants.v_TypeI
or
ASRConstants.v_TypeII
.public int getNumberOfSequences()
ASREvent
getNumberOfSequences
in class Base_ASREvent
javax.telephony.media.ASREvent
public ASREvent.TokenSequence getTokenSequence(int seqNum)
ASREvent
This presentation may be sub-optimal for Type-I results.
If sequenceNumber is out of range null is returned.
getTokenSequence
in class Base_ASREvent
javax.telephony.media.ASREvent
sequenceNumber
- an int specifying the sequence to be returned;
valid values are non-negative and less than getNumberOfSequences().ASR.getResults()
,
ASR.getFinalResults()
,
ASR.recognize()
public java.util.Dictionary getContextDictionary()
ASREvent
getContextDictionary
in class Base_ASREvent
javax.telephony.media.ASREvent
ASR.contextGetParameters
public java.lang.String getRuleExpansion()
ASREvent
getRuleExpansion
in class Base_ASREvent
javax.telephony.media.ASREvent
ASR.getRuleExpansion()
public java.lang.String getWordName()
ASREvent
getWordName
in class Base_ASREvent
javax.telephony.media.ASREvent
ASR.wordCommit()
,
ASR.wordCreate()
,
ASR.wordDeleteTraining()
,
ASR.wordDestroy()
,
ASR.wordTrain()
public java.lang.String getContextName()
ASREvent
getContextName
in class Base_ASREvent
javax.telephony.media.ASREvent
ASR.contextRemove()
,
ASR.wordCommit()
,
ASR.wordCreate()
,
ASR.wordDeleteLastUtterance()
,
ASR.wordDeleteTraining()
,
ASR.wordDestroy()
,
ASR.wordTrain()
public Symbol getReadiness()
ASREvent
getReadiness
in class Base_ASREvent
javax.telephony.media.ASREvent
ASRConstants.v_Ready
,
ASRConstants.v_NotReady
,
ASRConstants.v_Complete
.ASR.wordTrain()
public Symbol getTrainingResult()
ASREvent
getTrainingResult
in class Base_ASREvent
javax.telephony.media.ASREvent
ASRConstants.v_Success
,
ASRConstants.v_Collision
,
ASRConstants.v_Inconsistent
,
ASRConstants.v_Noisy
.ASR.wordTrain()
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |