public interface DeviceComponent extends Openable, Closable
DeviceComponent
interface supports a
connecting. I.e. such a component may be instructed open or close a
connection:
"open" - "close"
In case a connection is to be provided to the Openable.open()
method, you may
use the ConnectionComponent
interface with its
ConnectionOpenable.open(Object)
method, which provides an argument
specifying the connection to be passed to the Component
.
TODO: Think about also extending the Exceptional
interface! This
would require to implement some composite ExceptionWatchdog
class!
Modifier and Type | Interface and Description |
---|---|
static interface |
DeviceComponent.DeviceAutomaton
A system implementing the
DeviceComponent.DeviceAutomaton interface supports
managing DeviceComponent instances and takes care that the
open/close statuses are invoked in the correct order by throwing
according exceptions in case the open/close-cycle is invoked in the wrong
order. |
Openable.OpenAutomaton
Closable.CloseAutomaton
Copyright © 2015. All rights reserved.