|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.telephony.media.RTC
An RTC (Run Time Control) object associates a trigger condition with some action. When the Resource identified by the trigger condition emits an event that corresponds to that condition, the action command is sent to the Resource whose operation is being controlled by the RTC.
The RTC trigger Symbols are a subset of the event Symbols. The events available as RTC triggers are defined by the resource that generates them.
rtcc_<EventName>
.
rtca_<CommandName>
.
For example:
static RTC speedUp = new RTC(SignalDetector.rtcc_Pattern[2], Player.rtca_SpeedUp); RTC[] rtcs = {speedUp}; playEvent = play(..., rtcs, ...);In this case, when the signal detector resource matches Pattern 2, the Player resource recieves the
Player.rtca_speedUp
command.
RTC objects typically appear in media transaction commands
as elements of the RTC[] rtc
argument.
Field Summary | |
static RTC |
ASR_StopPlay
The common RTC to stop a prompt when ASR recognises voice energy. |
static RTC |
SigDet_StopPlay
The common RTC to stop a prompt when a DTMF is detected. |
static RTC |
SigDet_StopRecord
The common RTC to stop a recording when a DTMF is detected. |
Constructor Summary | |
RTC(Symbol trigger,
Symbol action)
Create an RTC object linking the trigger
condition to the action command. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Two RTCs are equal if both the trigger and action Symbols (respectively) are equal. |
Symbol |
getAction()
Return the Symbol that defines action for this RTC. |
Symbol |
getTrigger()
Return the Symbol that defines the trigger condition for this RTC. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final RTC SigDet_StopPlay
public static final RTC SigDet_StopRecord
public static final RTC ASR_StopPlay
Constructor Detail |
public RTC(Symbol trigger, Symbol action)
trigger
condition to the action
command.
The Symbols used to define an RTC trigger are a subset of the EventID Symbols. The applicable RTC triggers are defined by the resource that generates the event.
rtcc_<EventName>
.
rtca_<CommandName>
.
trigger
- a Symbol, typically named with rtcc_action
- a Symbol, typically named with rtca_Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the Object to be compared to this RTC Objectpublic Symbol getTrigger()
public Symbol getAction()
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |