cnrg.itx.gtwy
Class PlayChannel

java.lang.Object
  |
  +--cnrg.itx.gtwy.PlayChannel

public class PlayChannel
extends java.lang.Object
implements java.lang.Runnable

This class controls the second channel in a data connection. Second channel's only purpose is to send data to the phone.

See Also:
Runnable

Field Summary
private  Line myLine
          The Line instance corresponding to PlayChannel's line.
 
Constructor Summary
protected PlayChannel(Line lin)
           
 
Method Summary
(package private) static void ()
           
private  void playPacket(int chDev, int lineNumber)
          Plays voice data from a buffer to a phone.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

myLine

private Line myLine
The Line instance corresponding to PlayChannel's line.
Constructor Detail

PlayChannel

protected PlayChannel(Line lin)
Parameters:
lin - the Line instance corresponding to PlayChannel's line. Contains information regarding that line.
See Also:
Line
Method Detail

static void ()

run

public void run()
Specified by:
run in interface java.lang.Runnable

playPacket

private void playPacket(int chDev,
                        int lineNumber)
Plays voice data from a buffer to a phone.
Parameters:
chDev - the channel's device handler.
lineNumber - the channel's corresponding line number.