hp.telephony.media
Class RTC

java.lang.Object
  extended byhp.telephony.media.RTC

public class RTC
extends Object

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.

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.

Since:
OCMP 2.0

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

SigDet_StopPlay

public static final RTC SigDet_StopPlay
The common RTC to stop a prompt when a DTMF is detected.


SigDet_StopRecord

public static final RTC SigDet_StopRecord
The common RTC to stop a recording when a DTMF is detected.

Constructor Detail

RTC

public RTC(Symbol trigger,
           Symbol action)
Create an RTC object linking the 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.

Method Detail

getTrigger

public Symbol getTrigger()
Return the Symbol that defines the trigger condition for this RTC.

Returns:
the Symbol that defines the trigger condition for this RTC.

getAction

public Symbol getAction()
Return the Symbol that defines action for this RTC.

Returns:
the Symbol that defines action for this RTC.