public abstract class ScalarVariable extends Object implements Variable
Modifier and Type | Field and Description |
---|---|
protected MemoryRequestBlock |
block |
protected int |
index |
protected MemoryDeviceDataitem |
item |
protected int |
offset |
Constructor and Description |
---|
ScalarVariable(String name,
int index,
Executor executor,
ManageableObjectPool<DataItem> itemPool,
Attribute... attributes) |
Modifier and Type | Method and Description |
---|---|
protected abstract Variant |
extractValue(org.apache.mina.core.buffer.IoBuffer data,
Map<String,Variant> attributes) |
Map<String,WriteAttributeResult> |
handleAttributes(Map<String,Variant> requests) |
void |
handleData(org.apache.mina.core.buffer.IoBuffer data,
Variant timestamp) |
void |
handleDisconnect() |
void |
handleError(int errorCode) |
void |
handleFailure(Throwable e) |
protected NotifyFuture<WriteResult> |
handleWrite(Variant value) |
protected Variant |
makeGlobalIndexValue() |
void |
start(String parentName,
org.osgi.framework.BundleContext context,
MemoryRequestBlock block,
int offset) |
void |
stop(org.osgi.framework.BundleContext context) |
protected int |
toAddress(int localAddress) |
protected final int index
protected MemoryDeviceDataitem item
protected int offset
protected MemoryRequestBlock block
public ScalarVariable(String name, int index, Executor executor, ManageableObjectPool<DataItem> itemPool, Attribute... attributes)
public void handleError(int errorCode)
handleError
in interface Variable
public void handleDisconnect()
handleDisconnect
in interface Variable
public void handleFailure(Throwable e)
handleFailure
in interface Variable
public void start(String parentName, org.osgi.framework.BundleContext context, MemoryRequestBlock block, int offset)
protected NotifyFuture<WriteResult> handleWrite(Variant value)
public void stop(org.osgi.framework.BundleContext context)
protected abstract Variant extractValue(org.apache.mina.core.buffer.IoBuffer data, Map<String,Variant> attributes)
public void handleData(org.apache.mina.core.buffer.IoBuffer data, Variant timestamp)
handleData
in interface Variable
protected Variant makeGlobalIndexValue()
protected int toAddress(int localAddress)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.