public class DaveRequestBlock extends AbstractRequestBlock
AbstractRequestBlock.Statistics| Constructor and Description |
|---|
DaveRequestBlock(String id,
String name,
String mainTypeName,
DaveDevice device,
org.osgi.framework.BundleContext context,
DaveReadRequest.Request request,
boolean enableStatistics,
long period) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createPollRequest()
Create poll request
|
long |
getPollRequestTimeout()
Get the requested timeout in milliseconds
|
DaveReadRequest.Request |
getRequest()
The the configured request
|
int |
getStartAddress() |
boolean |
handleMessage(Object message)
Handle an incoming message while the job was active
|
void |
handleResponse(DaveReadResult.Result response)
Handle a response from the device
|
void |
handleTimeout() |
String |
toString() |
void |
writeBit(int address,
int subIndex,
boolean value)
Write a bit
|
void |
writeData(int blockAddress,
byte[] data) |
calculatePriority, dispose, handleData, handleDisconnect, handleError, handleFailure, initialize, recordChecksumError, recordUpdate, requestUpdate, setVariables, updatePrioritypublic DaveRequestBlock(String id, String name, String mainTypeName, DaveDevice device, org.osgi.framework.BundleContext context, DaveReadRequest.Request request, boolean enableStatistics, long period)
public long getPollRequestTimeout()
PollRequestpublic DaveReadRequest.Request getRequest()
public void handleResponse(DaveReadResult.Result response)
response - the response to handlepublic void handleTimeout()
handleTimeout in interface PollRequesthandleTimeout in class AbstractRequestBlockpublic boolean handleMessage(Object message)
PollRequestmessage - the incoming messagepublic Object createPollRequest()
PollRequestpublic int getStartAddress()
public void writeBit(int address,
int subIndex,
boolean value)
MemoryRequestBlockaddress - the address relative to the block start addresssubIndex - the bit index at the block address (normally 0..8)value - the value to writepublic void writeData(int blockAddress,
byte[] data)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.