public class DaveDevice extends AbstractConnectionDevice
AbstractConnectionDevice.ConnectionStatecontext, executor, id, itemFactory| Constructor and Description |
|---|
DaveDevice(BundleContext context,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlock(java.lang.String name,
AbstractRequestBlock deviceBlock) |
protected void |
configure(java.util.Map<java.lang.String,java.lang.String> properties) |
protected void |
configureConnector(NioSocketConnector connector) |
java.util.concurrent.ScheduledExecutorService |
getExecutor() |
java.lang.String |
getId() |
java.lang.String |
getItemId(java.lang.String localId) |
protected void |
handleMessageReceived(IoSession session,
java.lang.Object message) |
protected void |
handleSessionCreated(IoSession session) |
protected void |
handleSessionDisconnected() |
protected void |
performDispose() |
void |
removeBlock(java.lang.String block) |
void |
writeBit(DaveRequestBlock block,
int index,
int subIndex,
boolean value) |
void |
writeData(DaveRequestBlock block,
int index,
byte[] data) |
checkSession, disconnect, dispose, getTimeout, getVarItemId, handleExceptionCaught, handleMessageSent, handleSessionClosed, handleSessionIdle, handleSessionOpened, setSessionpublic DaveDevice(BundleContext context,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> properties)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getItemId(java.lang.String localId)
getItemId in class AbstractConnectionDeviceprotected void performDispose()
performDispose in class AbstractConnectionDeviceprotected void configure(java.util.Map<java.lang.String,java.lang.String> properties)
throws java.lang.Exception
configure in class AbstractConnectionDevicejava.lang.Exceptionprotected void configureConnector(NioSocketConnector connector)
configureConnector in class AbstractConnectionDevicepublic java.util.concurrent.ScheduledExecutorService getExecutor()
getExecutor in class AbstractConnectionDevicepublic java.lang.String getId()
public void writeBit(DaveRequestBlock block, int index, int subIndex, boolean value)
public void writeData(DaveRequestBlock block, int index, byte[] data)
public void addBlock(java.lang.String name,
AbstractRequestBlock deviceBlock)
public void removeBlock(java.lang.String block)
protected void handleSessionCreated(IoSession session)
throws java.lang.Exception
handleSessionCreated in class AbstractConnectionDevicejava.lang.Exceptionprotected void handleSessionDisconnected()
handleSessionDisconnected in class AbstractConnectionDeviceprotected void handleMessageReceived(IoSession session,
java.lang.Object message)
throws java.lang.Exception
handleMessageReceived in class AbstractConnectionDevicejava.lang.Exception
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