edu.uiuc.cs.seclab.modem.xbee
Class XBeeTxn
java.lang.Object
edu.uiuc.cs.seclab.modem.xbee.XBeeTxn
- Direct Known Subclasses:
- XBeeAtCmdTxn, XBeeTxTxn
public abstract class XBeeTxn
- extends java.lang.Object
XBee modem transaction. Currently supports AT commands and
transmission requests.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
completed
protected boolean completed
endTm
protected long endTm
frameId
protected byte frameId
startTm
protected long startTm
timer
protected XBeeTxn.RespTimer timer
XBeeTxn
public XBeeTxn()
addResp
public abstract void addResp(XBeeTxStatPktImpl resp)
throws ModemException
- Throws:
ModemException
completeTxnImmed
protected void completeTxnImmed()
exec
public abstract int exec(XBeeModem mdm)
throws ModemException
- Execute this transaction on the provided modem.
- Throws:
ModemException
getDuration
public long getDuration()
getFrameId
public byte getFrameId()
isCompleted
public boolean isCompleted()
setFrameId
public void setFrameId(byte id)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
waitForCompletion
public boolean waitForCompletion(long toutMs)
- Wait until transaction completes, or until toutMs milliseconds
have elapsed.
- Returns:
- true if completed.