|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cnrg.itx.gtwy.RecordSource
This is abstracted as the source for the voice data packets sent from the Gateway to the computer network.
RecordChannel
,
Source
Field Summary | |
private int |
bytesWritten
Number of bytes written to the computer network. |
private int |
iNumPackets
Number of packets sent to the computer network. |
private boolean |
isMute
true if source is muted; false otherwise. |
private boolean |
isOpen
true if source is able to send voice data; false otherwise. |
private cnrg.itx.datax.Channel |
myChannel
The Channel instance where RecordSource sends the voice data to. |
private Line |
myLine
The Line instance related to RecordSource. |
Constructor Summary | |
RecordSource(cnrg.itx.datax.Channel c,
Line l)
|
Method Summary | |
void |
close()
Method for closing the source. |
Line |
getLine()
Called to get the Line instance associated with RecordSource . |
cnrg.itx.datax.PropertiesCollection |
getProperties()
The Gateway is not concerned about properties. |
cnrg.itx.datax.Stats |
getStatistics()
|
boolean |
mute(boolean mode)
Method to mute and unmute the source. |
void |
sendToNetwork(byte[] data)
Called whenever data is received from a phone. |
void |
setPeerProperties(cnrg.itx.datax.PropertiesCollection pc)
Peer properties are never set. |
void |
setProperties(cnrg.itx.datax.PropertiesCollection pc)
No properties are set. |
void |
start()
Method to start the source. |
void |
stop()
Method to stop the source. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private cnrg.itx.datax.Channel myChannel
private Line myLine
private boolean isOpen
private boolean isMute
private int bytesWritten
private int iNumPackets
Constructor Detail |
public RecordSource(cnrg.itx.datax.Channel c, Line l)
c
- the Channel
instance used for sending packets from a phone to the computer
network.l
- the Line
instance associated with RecordSource
.Line
,
Channel
Method Detail |
public void start()
public void stop()
public boolean mute(boolean mode)
mode
- true if muted; false otherwise.public void close()
public void sendToNetwork(byte[] data)
data
- the voice data in bytespublic Line getLine()
Line
instance associated with RecordSource
.Line
instance.Line
public cnrg.itx.datax.PropertiesCollection getProperties() throws cnrg.itx.datax.DataException
public void setProperties(cnrg.itx.datax.PropertiesCollection pc) throws cnrg.itx.datax.DataException
public void setPeerProperties(cnrg.itx.datax.PropertiesCollection pc) throws cnrg.itx.datax.DataException
public cnrg.itx.datax.Stats getStatistics()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |