public abstract class DefaultMedicalDeviceCommunicationInterface extends Object implements MedicalDeviceCommunicationInterface
| Constructor and Description |
|---|
DefaultMedicalDeviceCommunicationInterface() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHandler(MDICommandHandler commandHandler) |
protected abstract void |
addHandlers() |
protected void |
addWaveformGenerator(WaveformGenerator waveformGenerator) |
protected abstract void |
addWaveformGenerators() |
abstract void |
connect()
Connect.
|
abstract void |
disconnect()
Disconnect.
|
Set<Class<? extends MDICommand>> |
getHandledCommands()
Gets the handled commands.
|
abstract BICEPSDeviceNodeInterfaceDescriptionProvider |
getInterfaceDescriptionProvider()
Gets the interface description provider.
|
abstract BICEPSDeviceNodeInterfaceStateProvider |
getInterfaceStateProvider()
Gets the interface state provider.
|
Set<BICEPSQoSPolicy> |
getPoliciesForCommand(Class<? extends MDICommand> commandClz)
Gets the policies for a command class.
|
void |
initialize()
Initializes the communication with the medical device before connecting to it.
|
void |
setMDICommandReceivingQueue(BlockingQueue<MDICommand> commandQueue)
Sets the MDI command receiving queue.
|
void |
setMDINotificationQueue(BlockingQueue<MDINotification> notificationQueue)
Sets the MDI notification queue.
|
void |
setMDIStreamQueue(BlockingQueue<StreamFrame> waveformQueue)
Sets the MDI stream queue.
|
void |
startCommandHandling()
Signals that the medical device should start handling commands now.
|
void |
startupComplete()
Startup complete.
|
void |
stopCommandHandling()
Signals that the medical device may stop handling commands now.
|
public DefaultMedicalDeviceCommunicationInterface()
public void initialize()
MedicalDeviceCommunicationInterfaceinitialize in interface MedicalDeviceCommunicationInterfacepublic abstract BICEPSDeviceNodeInterfaceDescriptionProvider getInterfaceDescriptionProvider()
MedicalDeviceCommunicationInterfacegetInterfaceDescriptionProvider in interface MedicalDeviceCommunicationInterfacepublic abstract BICEPSDeviceNodeInterfaceStateProvider getInterfaceStateProvider()
MedicalDeviceCommunicationInterfacegetInterfaceStateProvider in interface MedicalDeviceCommunicationInterfacepublic abstract void connect()
MedicalDeviceCommunicationInterfaceconnect in interface MedicalDeviceCommunicationInterfacepublic abstract void disconnect()
MedicalDeviceCommunicationInterfacedisconnect in interface MedicalDeviceCommunicationInterfacepublic void setMDICommandReceivingQueue(BlockingQueue<MDICommand> commandQueue)
MedicalDeviceCommunicationInterfacesetMDICommandReceivingQueue in interface MedicalDeviceCommunicationInterfacecommandQueue - the new MDI command receiving queuepublic Set<BICEPSQoSPolicy> getPoliciesForCommand(Class<? extends MDICommand> commandClz)
MedicalDeviceCommunicationInterfacegetPoliciesForCommand in interface MedicalDeviceCommunicationInterfacecommandClz - the cmd clzpublic void setMDINotificationQueue(BlockingQueue<MDINotification> notificationQueue)
MedicalDeviceCommunicationInterfacesetMDINotificationQueue in interface MedicalDeviceCommunicationInterfacenotificationQueue - the new MDI notification queuepublic void setMDIStreamQueue(BlockingQueue<StreamFrame> waveformQueue)
MedicalDeviceCommunicationInterfacesetMDIStreamQueue in interface MedicalDeviceCommunicationInterfacewaveformQueue - the new MDI stream queuepublic void startCommandHandling()
MedicalDeviceCommunicationInterfacestartCommandHandling in interface MedicalDeviceCommunicationInterfacepublic void stopCommandHandling()
MedicalDeviceCommunicationInterfacestopCommandHandling in interface MedicalDeviceCommunicationInterfacepublic Set<Class<? extends MDICommand>> getHandledCommands()
MedicalDeviceCommunicationInterfacegetHandledCommands in interface MedicalDeviceCommunicationInterfaceprotected abstract void addHandlers()
protected void addHandler(MDICommandHandler commandHandler)
protected abstract void addWaveformGenerators()
protected void addWaveformGenerator(WaveformGenerator waveformGenerator)
public void startupComplete()
MedicalDeviceCommunicationInterfacestartupComplete in interface MedicalDeviceCommunicationInterfaceCopyright © 2016. All rights reserved.