public class ProxyValueHolder extends ProxyItemSupport
| Modifier and Type | Field and Description |
|---|---|
protected ItemUpdateListener |
listener |
protected java.util.Map<ProxySubConnectionId,DataItemValue.Builder> |
values |
currentConnection, prefix, proxyItemId, separator| Constructor and Description |
|---|
ProxyValueHolder(java.lang.String separator,
ProxyPrefixName prefix,
ProxySubConnectionId currentConnection,
java.lang.String itemId) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,Variant> |
getAttributes() |
DataItemValue |
getCurrentValue() |
protected DataItemValue.Builder |
getItemValue(ProxySubConnectionId id)
must be called synchronized
|
Variant |
getValue() |
void |
setListener(ItemUpdateListener listener) |
void |
switchTo(ProxySubConnectionId newConnection)
Switch between connections
|
void |
updateData(ProxySubConnectionId connection,
Variant value,
java.util.Map<java.lang.String,Variant> attributes,
AttributeMode mode) |
void |
updateSubscriptionState(ProxySubConnectionId connection,
SubscriptionState subscriptionState,
java.lang.Throwable subscriptionError) |
getItemIdprotected final java.util.Map<ProxySubConnectionId,DataItemValue.Builder> values
protected ItemUpdateListener listener
public ProxyValueHolder(java.lang.String separator,
ProxyPrefixName prefix,
ProxySubConnectionId currentConnection,
java.lang.String itemId)
currentConnection - public void switchTo(ProxySubConnectionId newConnection)
ProxyItemSupportswitchTo in class ProxyItemSupportpublic void updateData(ProxySubConnectionId connection, Variant value, java.util.Map<java.lang.String,Variant> attributes, AttributeMode mode)
connection - value - attributes - mode - protected DataItemValue.Builder getItemValue(ProxySubConnectionId id)
id - if the connectionpublic java.util.Map<java.lang.String,Variant> getAttributes()
public Variant getValue()
public void setListener(ItemUpdateListener listener)
listener - public void updateSubscriptionState(ProxySubConnectionId connection, SubscriptionState subscriptionState, java.lang.Throwable subscriptionError)
connection - subscriptionState - subscriptionError - public DataItemValue getCurrentValue()
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