public class DefaultBicepsClientImpl extends Object implements IBICEPSClient, CommunicationAdapterCallback
IBICEPSClient and CommunicationAdapterCallback.| Modifier and Type | Field and Description |
|---|---|
protected List<MdibListener> |
mdibListeners |
| Modifier and Type | Method and Description |
|---|---|
void |
addDevice(org.ws4d.java.service.reference.DeviceReference devRef)
Invoked when a device reference is added to the device reference repository.
|
void |
connectDevice(org.ws4d.java.service.reference.DeviceReference devRef)
Triggers a connect to the specified device.
|
void |
deviceBye(org.ws4d.java.service.reference.DeviceReference devRef)
Invoked when announced its upcoming absence.
|
void |
deviceChanged(org.ws4d.java.service.reference.DeviceReference deviceRef)
Invoked when the network endpoint or metadata od a device has been changed.
|
void |
disconnectDevice(org.ws4d.java.service.reference.DeviceReference devRef)
Disconnect from the remote device and remove all cached data of the device.
|
BICEPSAlertCondition |
getAlertCondition(ProxyUniqueID proxyUniqueID)
Gets the alert condition.
|
List<? extends BICEPSAlertCondition> |
getAlertConditions()
Gets the alert conditions.
|
List<? extends BICEPSAlertCondition> |
getAlertConditions(BICEPSMedicalDeviceSystem mds)
Gets the alert conditions.
|
List<? extends BICEPSAlertCondition> |
getAlertConditions(CodedValue code)
Gets the alert conditions.
|
BICEPSAlertSignal |
getAlertSignal(ProxyUniqueID proxyUniqueID)
Gets the alert signal.
|
List<? extends BICEPSAlertSignal> |
getAlertSignals()
Gets the alert signals.
|
List<? extends BICEPSAlertSignal> |
getAlertSignals(BICEPSMedicalDeviceSystem mds)
Gets the alert signals.
|
List<? extends BICEPSAlertSignal> |
getAlertSignals(CodedValue conditionCode)
Gets the alert signals.
|
BICEPSAlertSystem |
getAlertSystem(ProxyUniqueID proxyUniqueID)
Gets the alert system.
|
List<? extends BICEPSAlertSystem> |
getAlertSystems()
Gets the alert systems.
|
List<? extends BICEPSAlertSystem> |
getAlertSystems(BICEPSMedicalDeviceSystem mds)
Gets the alert systems.
|
CommunicationAdapter |
getCommunicationAdapter()
Gets the communication adapter.
|
ContextDiscovery |
getContextDiscovery()
Gets the context discovery.
|
List<String> |
getDeviceBlacklist()
Thread-safe list of UUID strings that represents a black list of devices with which
communication is not desired.
|
List<MdsDescriptor> |
getDevices()
Gets the devices.
|
List<String> |
getDeviceWhitelist()
Thread-safe list of UUID strings that represents a white list of devices with which
communication is desired.
|
static IBICEPSClient |
getInstance()
Gets the single instance of DefaultBicepsClientImpl
|
BICEPSManeuver |
getManeuver(ProxyUniqueID proxyUniqueID)
Gets the maneuver.
|
List<? extends BICEPSManeuver> |
getManeuvers()
Gets the maneuvers.
|
List<? extends BICEPSManeuver> |
getManeuvers(BICEPSMedicalDeviceSystem mds)
Gets the maneuvers.
|
List<BICEPSManeuver> |
getManeuvers(BICEPSMedicalDeviceSystem clientMedicalDeviceSystem,
CodedValue code)
Gets the maneuvers.
|
List<BICEPSManeuver> |
getManeuvers(CodedValue code)
Gets the maneuvers.
|
Set<MDIBStructure> |
getMDIBSearchStructure()
Gets the MDIB search structure.
|
MDIBStructure |
getMDIBSearchStructure(org.ws4d.java.types.EndpointReference epr)
Gets the MDIB search structure.
|
BICEPSMDSContext |
getMDSContext(BICEPSMedicalDeviceSystem mds)
Gets the MDS context.
|
List<BICEPSMDSContext> |
getMDSContexts()
Gets the MDS contexts.
|
List<BICEPSMDSContext> |
getMDSContexts(BICEPSMedicalDeviceSystem mds)
Gets the MDS contexts.
|
Set<BICEPSMedicalDeviceSystem> |
getMedicalDeviceSystems()
Gets the medical device systems.
|
Set<BICEPSMedicalDeviceSystem> |
getMedicalDeviceSystems(org.ws4d.java.types.EndpointReference epr)
Gets the medical device systems.
|
BICEPSMedicalDeviceSystem |
getMedicalDeviceSystems(ProxyUniqueID proxyId)
Gets the medical device system defined by the proxy id.
|
BICEPSMetric |
getMetric(ProxyUniqueID proxyUniqueID)
Gets the metric.
|
List<BICEPSMetric> |
getMetrics(BICEPSMedicalDeviceSystem mds)
Gets the metrics.
|
List<BICEPSMetric> |
getMetrics(BICEPSMedicalDeviceSystem clientMedicalDeviceSystem,
CodedValue code)
Gets the metrics.
|
List<BICEPSMetric> |
getMetrics(CodedValue code)
Gets the metrics.
|
HashMap<org.ws4d.java.types.EndpointReference,HashMap<String,BICEPSSafetyInformationPolicyElement>> |
getSafetyInformationMap()
Gets the safety information for an
EndpointReferences. |
org.ws4d.java.security.SecurityKey |
getSecurityKey() |
BICEPSStream |
getStream(ProxyUniqueID proxyUniqueID)
Gets the stream.
|
List<? extends BICEPSStream> |
getStreams(BICEPSMedicalDeviceSystem mds)
Gets the streams.
|
boolean |
isPnpEnabled()
Checks if plug and play is enabled.
|
boolean |
isVMLocalDeviceDetectionEnabled()
Checks if is VM local device detection enabled.
|
void |
modifiedDescription(org.ws4d.java.service.reference.DeviceReference devRef,
DescriptionModificationReport report)
Invoked when a description in the
Mdib has been modified. |
void |
noDevicesFound(org.ws4d.java.types.SearchParameter search)
Invoked when a search has been triggered and no devices were found.
|
void |
releaseAllProxiesForMedicalDeviceSystemProxy(BICEPSMedicalDeviceSystem mdsProxy)
Release all proxies for a medical device system proxy.
|
void |
releaseDedicatedProxy(BICEPSProxy proxy)
Releases a proxy.
|
List<BICEPSMedicalDeviceSystem> |
retrieveMedicalDeviceSystemForDeviceReference(org.ws4d.java.service.reference.DeviceReference devRef)
Retrieve medical device system for device reference.
|
void |
searchDevices(NetworkSearchQuery search)
Search devices in the network.
|
void |
setPnpEnabled(boolean pnpEnabled)
Configures the plug and play capabilities (implicit discovery) of this
IBICEPSClient
instance. |
protected CommunicationAdapter |
setupMDPWSClient(org.ws4d.java.security.SecurityKey securityKey) |
void |
setVMLocalDeviceDetectionEnabled(boolean vmLocalDetectionEnabled)
Sets the VM local device detection enabled.
|
void |
stop()
Stops this
IBICEPSClient instance. |
void |
subscribe(MdibListener listener)
Adds a subscription for a
MdibListener. |
void |
unsubscribe(MdibListener listener)
Removes a subscription for a
MdibListener. |
protected List<MdibListener> mdibListeners
public static IBICEPSClient getInstance()
public org.ws4d.java.security.SecurityKey getSecurityKey()
getSecurityKey in interface IBICEPSClientpublic HashMap<org.ws4d.java.types.EndpointReference,HashMap<String,BICEPSSafetyInformationPolicyElement>> getSafetyInformationMap()
IBICEPSClientEndpointReferences.getSafetyInformationMap in interface IBICEPSClientEndpointReferences.protected CommunicationAdapter setupMDPWSClient(org.ws4d.java.security.SecurityKey securityKey)
public CommunicationAdapter getCommunicationAdapter()
IBICEPSClientgetCommunicationAdapter in interface IBICEPSClientpublic void stop()
IBICEPSClientIBICEPSClient instance.stop in interface IBICEPSClientpublic boolean isPnpEnabled()
IBICEPSClientisPnpEnabled in interface IBICEPSClienttrue, if is plug and play is enabledpublic void setPnpEnabled(boolean pnpEnabled)
IBICEPSClientIBICEPSClient
instance.setPnpEnabled in interface IBICEPSClientpnpEnabled - if true, this IBICEPSClient instance will react on implicit discovery messagespublic void connectDevice(org.ws4d.java.service.reference.DeviceReference devRef)
IBICEPSClientconnectDevice in interface IBICEPSClientdevRef - the device referencepublic void disconnectDevice(org.ws4d.java.service.reference.DeviceReference devRef)
IBICEPSClientdisconnectDevice in interface IBICEPSClientdevRef - the device referencepublic List<String> getDeviceWhitelist()
IBICEPSClientgetDeviceWhitelist in interface IBICEPSClientpublic List<String> getDeviceBlacklist()
IBICEPSClientgetDeviceBlacklist in interface IBICEPSClientpublic boolean isVMLocalDeviceDetectionEnabled()
IBICEPSClientisVMLocalDeviceDetectionEnabled in interface IBICEPSClienttrue, if is VM local device detection is enabledpublic void setVMLocalDeviceDetectionEnabled(boolean vmLocalDetectionEnabled)
IBICEPSClientsetVMLocalDeviceDetectionEnabled in interface IBICEPSClientvmLocalDetectionEnabled - if true, local device detection is enabledpublic void searchDevices(NetworkSearchQuery search)
IBICEPSClientsearchDevices in interface IBICEPSClientsearch - the searchpublic ContextDiscovery getContextDiscovery()
IBICEPSClientgetContextDiscovery in interface IBICEPSClientpublic void subscribe(MdibListener listener)
IBICEPSClientMdibListener.subscribe in interface IBICEPSClientlistener - the listenerpublic void unsubscribe(MdibListener listener)
IBICEPSClientMdibListener.unsubscribe in interface IBICEPSClientlistener - the listenerpublic BICEPSMetric getMetric(ProxyUniqueID proxyUniqueID)
IBICEPSClientgetMetric in interface IBICEPSClientproxyUniqueID - the proxy unique idpublic List<BICEPSMetric> getMetrics(BICEPSMedicalDeviceSystem mds)
IBICEPSClientgetMetrics in interface IBICEPSClientmds - the client medical device systempublic List<BICEPSMetric> getMetrics(CodedValue code)
IBICEPSClientgetMetrics in interface IBICEPSClientcode - the type codepublic BICEPSAlertSignal getAlertSignal(ProxyUniqueID proxyUniqueID)
IBICEPSClientgetAlertSignal in interface IBICEPSClientproxyUniqueID - the proxy unique idpublic List<? extends BICEPSAlertSignal> getAlertSignals()
IBICEPSClientgetAlertSignals in interface IBICEPSClientpublic List<? extends BICEPSAlertSignal> getAlertSignals(BICEPSMedicalDeviceSystem mds)
IBICEPSClientgetAlertSignals in interface IBICEPSClientmds - the mdspublic List<? extends BICEPSAlertSignal> getAlertSignals(CodedValue conditionCode)
IBICEPSClientgetAlertSignals in interface IBICEPSClientconditionCode - the type codepublic BICEPSAlertCondition getAlertCondition(ProxyUniqueID proxyUniqueID)
IBICEPSClientgetAlertCondition in interface IBICEPSClientproxyUniqueID - the proxy unique idpublic List<? extends BICEPSAlertCondition> getAlertConditions()
IBICEPSClientgetAlertConditions in interface IBICEPSClientpublic List<? extends BICEPSAlertCondition> getAlertConditions(BICEPSMedicalDeviceSystem mds)
IBICEPSClientgetAlertConditions in interface IBICEPSClientmds - the mdspublic List<? extends BICEPSAlertCondition> getAlertConditions(CodedValue code)
IBICEPSClientgetAlertConditions in interface IBICEPSClientcode - the type codepublic BICEPSAlertSystem getAlertSystem(ProxyUniqueID proxyUniqueID)
IBICEPSClientgetAlertSystem in interface IBICEPSClientproxyUniqueID - the proxy unique idpublic List<? extends BICEPSAlertSystem> getAlertSystems()
IBICEPSClientgetAlertSystems in interface IBICEPSClientpublic List<? extends BICEPSAlertSystem> getAlertSystems(BICEPSMedicalDeviceSystem mds)
IBICEPSClientgetAlertSystems in interface IBICEPSClientmds - the mdspublic List<BICEPSMDSContext> getMDSContexts()
IBICEPSClientgetMDSContexts in interface IBICEPSClientpublic List<BICEPSMDSContext> getMDSContexts(BICEPSMedicalDeviceSystem mds)
IBICEPSClientgetMDSContexts in interface IBICEPSClientmds - the mdspublic BICEPSStream getStream(ProxyUniqueID proxyUniqueID)
IBICEPSClientgetStream in interface IBICEPSClientproxyUniqueID - the proxy unique idpublic List<MdsDescriptor> getDevices()
IBICEPSClientgetDevices in interface IBICEPSClientpublic List<? extends BICEPSStream> getStreams(BICEPSMedicalDeviceSystem mds)
IBICEPSClientgetStreams in interface IBICEPSClientmds - the medical device systempublic void deviceBye(org.ws4d.java.service.reference.DeviceReference devRef)
CommunicationAdapterCallbackdeviceBye in interface CommunicationAdapterCallbackdevRef - the device referencepublic void deviceChanged(org.ws4d.java.service.reference.DeviceReference deviceRef)
CommunicationAdapterCallbackdeviceChanged in interface CommunicationAdapterCallbackdeviceRef - the device referencepublic BICEPSMDSContext getMDSContext(BICEPSMedicalDeviceSystem mds)
mds - the mdspublic void modifiedDescription(org.ws4d.java.service.reference.DeviceReference devRef,
DescriptionModificationReport report)
CommunicationAdapterCallbackMdib has been modified.modifiedDescription in interface CommunicationAdapterCallbackdevRef - the device reference to the network device where the MDIB is hostedreport - the DescriptionModificationReport that contains the informationpublic void addDevice(org.ws4d.java.service.reference.DeviceReference devRef)
CommunicationAdapterCallbackaddDevice in interface CommunicationAdapterCallbackdevRef - the device referencepublic void releaseAllProxiesForMedicalDeviceSystemProxy(BICEPSMedicalDeviceSystem mdsProxy)
IBICEPSClientreleaseAllProxiesForMedicalDeviceSystemProxy in interface IBICEPSClientmdsProxy - the mds proxypublic void releaseDedicatedProxy(BICEPSProxy proxy)
IBICEPSClientreleaseDedicatedProxy in interface IBICEPSClientproxy - the proxypublic List<BICEPSMedicalDeviceSystem> retrieveMedicalDeviceSystemForDeviceReference(org.ws4d.java.service.reference.DeviceReference devRef)
IBICEPSClientretrieveMedicalDeviceSystemForDeviceReference in interface IBICEPSClientdevRef - the dev refpublic void noDevicesFound(org.ws4d.java.types.SearchParameter search)
CommunicationAdapterCallbacknoDevicesFound in interface CommunicationAdapterCallbacksearch - the SearchParameter that has been used to trigger the searchpublic BICEPSMedicalDeviceSystem getMedicalDeviceSystems(ProxyUniqueID proxyId)
IBICEPSClientgetMedicalDeviceSystems in interface IBICEPSClientproxyId - the proxy idpublic Set<BICEPSMedicalDeviceSystem> getMedicalDeviceSystems(org.ws4d.java.types.EndpointReference epr)
IBICEPSClientgetMedicalDeviceSystems in interface IBICEPSClientepr - the eprpublic Set<BICEPSMedicalDeviceSystem> getMedicalDeviceSystems()
IBICEPSClientgetMedicalDeviceSystems in interface IBICEPSClientpublic MDIBStructure getMDIBSearchStructure(org.ws4d.java.types.EndpointReference epr)
IBICEPSClientgetMDIBSearchStructure in interface IBICEPSClientepr - the eprpublic Set<MDIBStructure> getMDIBSearchStructure()
IBICEPSClientgetMDIBSearchStructure in interface IBICEPSClientpublic List<BICEPSMetric> getMetrics(BICEPSMedicalDeviceSystem clientMedicalDeviceSystem, CodedValue code)
IBICEPSClientgetMetrics in interface IBICEPSClientclientMedicalDeviceSystem - the client medical device systemcode - the code filterpublic List<BICEPSManeuver> getManeuvers(CodedValue code)
IBICEPSClientgetManeuvers in interface IBICEPSClientcode - the type codepublic List<BICEPSManeuver> getManeuvers(BICEPSMedicalDeviceSystem clientMedicalDeviceSystem, CodedValue code)
clientMedicalDeviceSystem - the client medical device systemcode - the codepublic BICEPSManeuver getManeuver(ProxyUniqueID proxyUniqueID)
IBICEPSClientgetManeuver in interface IBICEPSClientproxyUniqueID - the proxy unique idpublic List<? extends BICEPSManeuver> getManeuvers()
IBICEPSClientgetManeuvers in interface IBICEPSClientpublic List<? extends BICEPSManeuver> getManeuvers(BICEPSMedicalDeviceSystem mds)
IBICEPSClientgetManeuvers in interface IBICEPSClientmds - the mdsCopyright © 2017. All rights reserved.