public abstract class ScalarVariable extends java.lang.Object implements Variable
| Modifier and Type | Field and Description |
|---|---|
protected MemoryRequestBlock |
block |
protected int |
index |
protected MemoryDeviceDataitem |
item |
| Constructor and Description |
|---|
ScalarVariable(java.lang.String name,
int index,
java.util.concurrent.Executor executor,
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Variant |
extractValue(IoBuffer data,
java.util.Map<java.lang.String,Variant> attributes) |
java.util.Map<java.lang.String,WriteAttributeResult> |
handleAttributes(java.util.Map<java.lang.String,Variant> requests) |
void |
handleData(IoBuffer data,
Variant timestamp) |
void |
handleDisconnect() |
void |
handleError(int errorCode) |
void |
handleFailure(java.lang.Throwable e) |
protected |
handleWrite(Variant value) |
void |
start(java.lang.String parentName,
BundleContext context,
MemoryRequestBlock block,
int offset) |
void |
stop(BundleContext context) |
protected int |
toAddress(int localAddress) |
protected final int index
protected MemoryDeviceDataitem item
protected MemoryRequestBlock block
public ScalarVariable(java.lang.String name,
int index,
java.util.concurrent.Executor executor,
itemPool,
Attribute... attributes)
public void handleError(int errorCode)
handleError in interface Variablepublic void handleDisconnect()
handleDisconnect in interface Variablepublic void handleFailure(java.lang.Throwable e)
handleFailure in interface Variablepublic void start(java.lang.String parentName,
BundleContext context,
MemoryRequestBlock block,
int offset)
protectedhandleWrite(Variant value)
protected abstract Variant extractValue(IoBuffer data,
java.util.Map<java.lang.String,Variant> attributes)
public void handleData(IoBuffer data,
Variant timestamp)
handleData in interface Variableprotected int toAddress(int localAddress)
public java.util.Map<java.lang.String,WriteAttributeResult> handleAttributes(java.util.Map<java.lang.String,Variant> requests)
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