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, updatePriority
public DaveRequestBlock(String id, String name, String mainTypeName, DaveDevice device, org.osgi.framework.BundleContext context, DaveReadRequest.Request request, boolean enableStatistics, long period)
public long getPollRequestTimeout()
PollRequest
public DaveReadRequest.Request getRequest()
public void handleResponse(DaveReadResult.Result response)
response
- the response to handlepublic void handleTimeout()
handleTimeout
in interface PollRequest
handleTimeout
in class AbstractRequestBlock
public boolean handleMessage(Object message)
PollRequest
message
- the incoming messagepublic Object createPollRequest()
PollRequest
public int getStartAddress()
public void writeBit(int address, int subIndex, boolean value)
MemoryRequestBlock
address
- 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.