public abstract class RequestFrame extends DataFrame implements SendFrame
Modifier and Type | Field and Description |
---|---|
protected RequestFrameListener |
listener |
protected int |
parameterIndex |
Constructor and Description |
---|
RequestFrame(RequestFrameListener listener,
byte functionID) |
RequestFrame(RequestFrameListener listener,
byte functionID,
int functionParameterCount) |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(byte parameter) |
void |
completeContent() |
protected static byte |
generateCallback() |
int |
getNumberRetransmission() |
abstract Session |
getSession() |
void |
handleRequest(ZwaveController controller,
DataFrame dataFrame) |
void |
handleResponse(ZwaveController controller,
DataFrame dataFrame) |
void |
notifyComplete() |
void |
notifyError(RequestFrameListener.RequestFrameError error) |
void |
send(OutputStream os)
Send the content of this frame.
|
computeChecksum, getBytes, getFunctionId, getType, isValid
protected RequestFrameListener listener
protected int parameterIndex
public RequestFrame(RequestFrameListener listener, byte functionID)
functionID
- listener
- public RequestFrame(RequestFrameListener listener, byte functionID, int functionParameterCount)
functionID
- functionParameterCount
- listener
- IllegalArgumentException
public void addParameter(byte parameter)
public void completeContent()
protected static byte generateCallback()
public int getNumberRetransmission()
public abstract Session getSession()
public void handleRequest(ZwaveController controller, DataFrame dataFrame) throws IOException
IOException
public void handleResponse(ZwaveController controller, DataFrame dataFrame) throws IOException
IOException
public void notifyComplete()
public void notifyError(RequestFrameListener.RequestFrameError error)
error
- public void send(OutputStream os) throws IOException
SendFrame
send
in interface SendFrame
os
- the output stream to write the content of this frame.IOException