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,
org.eclipse.scada.utils.osgi.pool.ManageableObjectPool<DataItem> itemPool,
Attribute... attributes) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.eclipse.scada.core.Variant |
extractValue(org.apache.mina.core.buffer.IoBuffer data,
Map<String,org.eclipse.scada.core.Variant> attributes) |
Map<String,WriteAttributeResult> |
handleAttributes(Map<String,org.eclipse.scada.core.Variant> requests) |
void |
handleData(org.apache.mina.core.buffer.IoBuffer data,
org.eclipse.scada.core.Variant timestamp) |
void |
handleDisconnect() |
void |
handleError(int errorCode) |
void |
handleFailure(Throwable e) |
protected org.eclipse.scada.utils.concurrent.NotifyFuture<WriteResult> |
handleWrite(org.eclipse.scada.core.Variant value) |
protected org.eclipse.scada.core.Variant |
makeGlobalIndexValue() |
void |
start(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 int offset
protected MemoryRequestBlock block
public void handleError(int errorCode)
handleError in interface Variablepublic void handleDisconnect()
handleDisconnect in interface Variablepublic void handleFailure(Throwable e)
handleFailure in interface Variablepublic void start(String parentName, BundleContext context, MemoryRequestBlock block, int offset)
protected org.eclipse.scada.utils.concurrent.NotifyFuture<WriteResult> handleWrite(org.eclipse.scada.core.Variant value)
public void stop(BundleContext context)
protected abstract org.eclipse.scada.core.Variant extractValue(org.apache.mina.core.buffer.IoBuffer data,
Map<String,org.eclipse.scada.core.Variant> attributes)
public void handleData(org.apache.mina.core.buffer.IoBuffer data,
org.eclipse.scada.core.Variant timestamp)
handleData in interface Variableprotected org.eclipse.scada.core.Variant makeGlobalIndexValue()
protected int toAddress(int localAddress)
public Map<String,WriteAttributeResult> handleAttributes(Map<String,org.eclipse.scada.core.Variant> requests)