Request message to transmit a frame using physical agent.
Type | Name and description |
---|---|
boolean |
16BitTS |
boolean |
timestamped |
Long |
txTime |
int |
type |
Constructor and description |
---|
TxFrameReq
() |
TxFrameReq
(DatagramReq req) Constructs TxFrameReq from a DatagramReq. |
Type Params | Return Type | Name and description |
---|---|---|
|
Long |
getTxTime() Gets the time at which it needs to be transmitted. |
|
int |
getType() Gets the type of channel. |
|
boolean |
getWakeup() Checks whether a wakeup signal should be sent before the frame. |
|
boolean |
is16BitTS() Checks if timestamp inside frame should be 16 bit. |
|
boolean |
isTimestamped() Checks if transmission request needs to be timestamped PhysicalCapability.TIMESTAMPED_TX. |
|
void |
set16BitTS(boolean is16BitTS) Configure requested transmitting frame to contain 16 bit timestamp value. |
|
void |
setTimestamped(boolean enabled) Sets true if transmission request needs to be timestamped. |
|
void |
setTxTime(Long time) Sets transmission timestamp. transmission will be triggered at the specified time. |
|
void |
setType(int type) Sets the channel type. |
|
void |
setWakeup(boolean enabled) Enables/disables sending of wakeup signal before frame. |
|
String |
toString() |
Methods inherited from class | Name |
---|---|
class DatagramReq |
setData, toString, setPriority, getPriority, getProtocol, getData, setTo, getTo, setTtl, setProtocol, getReliability, setReliability, getTtl, getShortcircuit, setShortcircuit, setPerformative, getSender, setMessageID, getSentAt, setRecipient, getInReplyTo, setSentAt, setSender, getPerformative, getRecipient, getMessageID, setInReplyTo, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Constructs TxFrameReq from a DatagramReq.
req
- DatagramReq messsageGets the time at which it needs to be transmitted.
Gets the type of channel.
Checks whether a wakeup signal should be sent before the frame.
Checks if timestamp inside frame should be 16 bit.
Checks if transmission request needs to be timestamped PhysicalCapability.TIMESTAMPED_TX.
Configure requested transmitting frame to contain 16 bit timestamp value.
is16BitTS
- true if 16 bit timestampSets true if transmission request needs to be timestamped.
enabled
- true if timestamped frameSets transmission timestamp. transmission will be triggered at the specified time. PhysicalCapability.TIMED_TX
time
- transmission time in us, or nullSets the channel type.
type
- of channel (Physical.DATA or Physical.CONTROL)Enables/disables sending of wakeup signal before frame.
enabled
- true if wakeup signal to be sentCopyright 2013-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd