public abstract class AsciiSelfResponderCommandBase extends AsciiCommandLibraryResponderBase implements IAsciiCommand
LibraryCommandId
Modifier | Constructor and Description |
---|---|
protected |
AsciiSelfResponderCommandBase(java.lang.String commandName)
Initializes a new instance of the AsciiSelfResponderCommandBase class
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildCommandLine(java.lang.StringBuilder line)
Builds the command line to send to the reader to execute the command
|
double |
getMaxSynchronousWaitTime()
Gets or sets the maximum time (in seconds) to wait for this command to complete when invoked synchronously
|
IAsciiCommandResponder |
getSynchronousCommandResponder()
Gets or sets the IAsciiCommandResponder that will cause this command to execute synchronously
|
void |
setMaxSynchronousWaitTime(double value) |
void |
setSynchronousCommandResponder(IAsciiCommandResponder value) |
captureNonLibraryResponses, processReceivedLine, setCaptureNonLibraryResponses
clearLastResponse, getCommandLine, getCommandName, getResponseLifecycleDelegate, getResponseStarted, isResponseFinished, parseParameters, processReceivedLine, responseDidFinish, responseDidReceiveParameter, responseDidStart, setCommandName, setResponseLifecycleDelegate, setResponseStarted, splitParameters
appendToMessages, appendToParameters, appendToResponse, getErrorCode, getMessages, getParameters, getResponse, isSuccessful, setErrorCode, setIsSuccessful, setResponse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommandLine, getCommandName
protected AsciiSelfResponderCommandBase(java.lang.String commandName)
commandName
- The command name e.g. ".iv" for Inventorypublic final double getMaxSynchronousWaitTime()
IAsciiCommand
getMaxSynchronousWaitTime
in interface IAsciiCommand
public final void setMaxSynchronousWaitTime(double value)
setMaxSynchronousWaitTime
in interface IAsciiCommand
public final IAsciiCommandResponder getSynchronousCommandResponder()
IAsciiCommand
getSynchronousCommandResponder
in interface IAsciiCommand
public final void setSynchronousCommandResponder(IAsciiCommandResponder value)
setSynchronousCommandResponder
in interface IAsciiCommand
protected void buildCommandLine(java.lang.StringBuilder line)
buildCommandLine
in class AsciiCommandLibraryResponderBase
line
- The command line to append to
When overriding this method call the base class to construct the command line as known to the base class and
then append the additional parameters to the end of the line