public class BICEPSProxyUtil
extends java.lang.Object
| Constructor and Description |
|---|
BICEPSProxyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
augmentWithContainmentTreeInfo(AbstractDescriptor d,
MDIBStructure mdib,
BICEPSProxy proxy) |
static java.lang.String |
builtContainmentTreeStringBasedOnListIndexInternal(AbstractDescriptor currentDescriptor,
MDIBStructure mdib,
java.lang.String containmentTreeid) |
static int |
computeContainmentTreeFacetNo(AbstractDescriptor theDescriptor)
Compute containment tree facet no.
|
static java.lang.String |
createHandleOnEndpointReference(org.ws4d.java.types.EndpointReference deviceEndpointReference)
Creates the handle on endpoint reference.
|
static CodedValue |
getCode(AbstractDescriptor descriptor)
Gets the code.
|
static java.lang.String |
getContainmentTreeListIndex(AbstractDescriptor currentDescriptor,
MDIBStructure mdib) |
static <T extends AbstractState> |
getCurrentStateFromDevice(BICEPSProxy proxy,
CommunicationAdapter comAdapter,
java.lang.Class<T> stateClass)
Gets the current state from device.
|
static <T extends AbstractState> |
getCurrentStatesFromDevice(BICEPSProxy proxy,
CommunicationAdapter comAdapter,
java.lang.Class<T> stateClass)
Gets the current states from device.
|
static org.ws4d.java.types.EndpointReference |
getEndpointReferenceFromURIString(java.lang.String endpointStr)
Gets the endpoint reference from uri string.
|
static java.lang.String |
getHandle(BICEPSProxy proxy)
Gets the handle.
|
static boolean |
isNumericMetric(BICEPSMetric metric)
Checks if is numeric metric.
|
static boolean |
isStringMetric(BICEPSMetric metric)
Checks if is string metric.
|
static boolean |
isWaveformMetric(BICEPSMetric metric)
Checks if is waveform metric.
|
static <T extends AbstractState> |
retrieveStatesInternal(BICEPSProxy proxy,
CommunicationAdapter comAdapter,
java.lang.Class<T> stateClass,
java.util.List<T> newStates,
java.lang.String mdibSequenceNumber,
java.lang.String descriptorHandle)
Retrieve states internal.
|
static void |
updateBICEPSProxy(AbstractState newState,
BICEPSProxy diceProxy,
java.lang.String sequenceNumber)
Update biceps proxy.
|
public static int computeContainmentTreeFacetNo(AbstractDescriptor theDescriptor)
theDescriptor - the the descriptorpublic static java.lang.String createHandleOnEndpointReference(org.ws4d.java.types.EndpointReference deviceEndpointReference)
deviceEndpointReference - the device endpoint referencepublic static <T extends AbstractState> java.util.List<T> getCurrentStatesFromDevice(BICEPSProxy proxy, CommunicationAdapter comAdapter, java.lang.Class<T> stateClass)
T - the generic typeproxy - the proxycomAdapter - the com adapterstateClass - the state classpublic static <T extends AbstractState> T getCurrentStateFromDevice(BICEPSProxy proxy, CommunicationAdapter comAdapter, java.lang.Class<T> stateClass)
T - the generic typeproxy - the proxycomAdapter - the com adapterstateClass - the state classpublic static <T extends AbstractState> java.lang.String retrieveStatesInternal(BICEPSProxy proxy, CommunicationAdapter comAdapter, java.lang.Class<T> stateClass, java.util.List<T> newStates, java.lang.String mdibSequenceNumber, java.lang.String descriptorHandle)
T - the generic typeproxy - the proxycomAdapter - the com adapterstateClass - the state classnewStates - the new statesmdibSequenceNumber - the mdib sequence numberdescriptorHandle - the descriptor handlepublic static void updateBICEPSProxy(AbstractState newState, BICEPSProxy diceProxy, java.lang.String sequenceNumber)
newState - the new statediceProxy - the dice proxysequenceNumber - the sequence numberpublic static boolean isNumericMetric(BICEPSMetric metric)
metric - the metricpublic static boolean isStringMetric(BICEPSMetric metric)
metric - the metricpublic static boolean isWaveformMetric(BICEPSMetric metric)
metric - the metricpublic static CodedValue getCode(AbstractDescriptor descriptor)
descriptor - the descriptorpublic static java.lang.String getHandle(BICEPSProxy proxy)
proxy - the proxypublic static org.ws4d.java.types.EndpointReference getEndpointReferenceFromURIString(java.lang.String endpointStr)
endpointStr - the endpoint strpublic static void augmentWithContainmentTreeInfo(AbstractDescriptor d, MDIBStructure mdib, BICEPSProxy proxy)
mdib - public static java.lang.String builtContainmentTreeStringBasedOnListIndexInternal(AbstractDescriptor currentDescriptor, MDIBStructure mdib, java.lang.String containmentTreeid)
public static java.lang.String getContainmentTreeListIndex(AbstractDescriptor currentDescriptor, MDIBStructure mdib)