public class BICEPSProxyUtil extends Object
| Constructor and Description |
|---|
BICEPSProxyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
augmentWithContainmentTreeInfo(Descriptor d,
MDIBStructure mdib,
BICEPSProxy proxy) |
static String |
builtContainmentTreeStringBasedOnListIndexInternal(Descriptor currentDescriptor,
MDIBStructure mdib,
String containmentTreeid) |
static int |
computeContainmentTreeFacetNo(Descriptor theDescriptor)
Compute containment tree facet no.
|
static String |
createHandleOnEndpointReference(org.ws4d.java.types.EndpointReference deviceEndpointReference)
Creates the handle on endpoint reference.
|
static CodedValue |
getCode(Descriptor descriptor)
Gets the code.
|
static String |
getContainmentTreeListIndex(Descriptor currentDescriptor,
MDIBStructure mdib) |
static <T extends State> |
getCurrentStateFromDevice(BICEPSProxy proxy,
CommunicationAdapter comAdapter,
Class<T> stateClass)
Gets the current state from device.
|
static <T extends State> |
getCurrentStatesFromDevice(BICEPSProxy proxy,
CommunicationAdapter comAdapter,
Class<T> stateClass)
Gets the current states from device.
|
static org.ws4d.java.types.EndpointReference |
getEndpointReferenceFromURIString(String endpointStr)
Gets the endpoint reference from uri string.
|
static 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 State> |
retrieveStatesInternal(BICEPSProxy proxy,
CommunicationAdapter comAdapter,
Class<T> stateClass,
List<T> newStates,
BigInteger mdibSequenceNumber,
String descriptorHandle)
Retrieve states internal.
|
static void |
updateBICEPSProxy(State newState,
BICEPSProxy diceProxy,
BigInteger sequenceNumber)
Update biceps proxy.
|
public static int computeContainmentTreeFacetNo(Descriptor theDescriptor)
theDescriptor - the the descriptorpublic static String createHandleOnEndpointReference(org.ws4d.java.types.EndpointReference deviceEndpointReference)
deviceEndpointReference - the device endpoint referencepublic static <T extends State> List<T> getCurrentStatesFromDevice(BICEPSProxy proxy, CommunicationAdapter comAdapter, Class<T> stateClass)
T - the generic typeproxy - the proxycomAdapter - the com adapterstateClass - the state classpublic static <T extends State> T getCurrentStateFromDevice(BICEPSProxy proxy, CommunicationAdapter comAdapter, Class<T> stateClass)
T - the generic typeproxy - the proxycomAdapter - the com adapterstateClass - the state classpublic static <T extends State> BigInteger retrieveStatesInternal(BICEPSProxy proxy, CommunicationAdapter comAdapter, Class<T> stateClass, List<T> newStates, BigInteger mdibSequenceNumber, 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(State newState, BICEPSProxy diceProxy, BigInteger 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(Descriptor descriptor)
descriptor - the descriptorpublic static String getHandle(BICEPSProxy proxy)
proxy - the proxypublic static org.ws4d.java.types.EndpointReference getEndpointReferenceFromURIString(String endpointStr)
endpointStr - the endpoint strpublic static void augmentWithContainmentTreeInfo(Descriptor d, MDIBStructure mdib, BICEPSProxy proxy)
mdib - public static String builtContainmentTreeStringBasedOnListIndexInternal(Descriptor currentDescriptor, MDIBStructure mdib, String containmentTreeid)
public static String getContainmentTreeListIndex(Descriptor currentDescriptor, MDIBStructure mdib)
Copyright © 2018. All rights reserved.