public class DaveRequestBlock extends AbstractRequestBlock
AbstractRequestBlock.Statistics| Constructor and Description |
|---|
DaveRequestBlock(java.lang.String id,
java.lang.String name,
java.lang.String mainTypeName,
DaveDevice device,
BundleContext context,
Request request,
boolean enableStatistics,
long period) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createPollRequest()
Create poll request
|
long |
getPollRequestTimeout()
Get the requested timeout in milliseconds
|
Request |
getRequest()
The the configured request
|
int |
getStartAddress() |
boolean |
handleMessage(java.lang.Object message)
Handle an incoming message while the job was active
|
void |
handleResponse(Result response)
Handle a response from the device
|
void |
handleTimeout() |
java.lang.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(java.lang.String id,
java.lang.String name,
java.lang.String mainTypeName,
DaveDevice device,
BundleContext context,
Request request,
boolean enableStatistics,
long period)
public long getPollRequestTimeout()
PollRequestpublic Request getRequest()
public void handleResponse(Result response)
response - the response to handlepublic void handleTimeout()
handleTimeout in interface PollRequesthandleTimeout in class AbstractRequestBlockpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean handleMessage(java.lang.Object message)
PollRequestmessage - the incoming messagepublic java.lang.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 (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0