|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecthp.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 |
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 | |
Symbol |
getAction()
Return the Symbol that defines action for this RTC. |
Symbol |
getTrigger()
Return the Symbol that defines the trigger condition for this RTC. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final RTC SigDet_StopPlay
public static final RTC SigDet_StopRecord
| 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>.
| Method Detail |
public Symbol getTrigger()
public Symbol getAction()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||