public class RfPassThroughCommand extends java.lang.Object implements IAsciiCommand, IAsciiCommandResponder
Modifier and Type | Method and Description |
---|---|
void |
clearLastResponse()
Clears the values from the last response
Derived classes must call super class to ensure correct operation
|
byte[] |
getCommandData()
Gets or sets the data for the HF/LF command
|
java.lang.String |
getCommandLine()
Returns the Ascii command line (including terminators) to be sent to the device to execute the command
|
java.lang.String |
getCommandName()
Gets the Ascii command identifier e.g.
|
double |
getMaxSynchronousWaitTime()
Gets or sets the maximum time (in seconds) to wait for this command to complete when invoked synchronously
|
byte[] |
getResponseData()
Gets the data for the HF/LF command response
|
IAsciiCommandResponder |
getSynchronousCommandResponder()
Gets or sets the IAsciiCommandResponder to make this command execute synchronously
|
boolean |
isResponseFinished()
Gets a value indicating whether the response is complete (i.e.
|
boolean |
processReceivedLine(java.lang.String fullLine,
boolean moreLinesAvailable)
Each correctly terminated line from the device is passed to this method for processing
|
void |
setCommandData(byte[] value) |
void |
setMaxSynchronousWaitTime(double value) |
void |
setSynchronousCommandResponder(IAsciiCommandResponder value) |
static RfPassThroughCommand |
synchronousCommand()
Returns a new instance of the command class that will execute synchronously (as its own responder)
|
public final byte[] getCommandData()
public final void setCommandData(byte[] value)
public final byte[] getResponseData()
public static RfPassThroughCommand synchronousCommand()
public java.lang.String getCommandName()
IAsciiCommand
getCommandName
in interface IAsciiCommand
public double getMaxSynchronousWaitTime()
IAsciiCommand
getMaxSynchronousWaitTime
in interface IAsciiCommand
public void setMaxSynchronousWaitTime(double value)
setMaxSynchronousWaitTime
in interface IAsciiCommand
public final IAsciiCommandResponder getSynchronousCommandResponder()
getSynchronousCommandResponder
in interface IAsciiCommand
public final void setSynchronousCommandResponder(IAsciiCommandResponder value)
setSynchronousCommandResponder
in interface IAsciiCommand
public java.lang.String getCommandLine()
IAsciiCommand
getCommandLine
in interface IAsciiCommand
public boolean isResponseFinished()
IAsciiCommandResponder
isResponseFinished
in interface IAsciiCommandResponder
public void clearLastResponse()
IAsciiCommandResponder
clearLastResponse
in interface IAsciiCommandResponder
public boolean processReceivedLine(java.lang.String fullLine, boolean moreLinesAvailable) throws java.lang.Exception
IAsciiCommandResponder
processReceivedLine
in interface IAsciiCommandResponder
fullLine
- The line to be processedmoreLinesAvailable
- When true indicates there are additional lines to be processed (and will also be passed to this method)java.lang.Exception