Closable, Closable.CloseAutomaton, ClosedAccessor, ConnectionStatusAccessor, LinkComponent, LinkComponent.LinkAutomaton, Openable, Openable.OpenAutomaton, OpenedAccessorpublic class DeviceAutomatonImpl extends Object implements LinkComponent.LinkAutomaton
LifeCycleComponent.LifeCycleAutomaton.Closable.CloseAutomaton, Closable.CloseBuilder<B extends Closable.CloseBuilder<B>>ClosedAccessor.ClosedMutator, ClosedAccessor.ClosedPropertyConnectionStatusAccessor.ConnectionStatusMutator, ConnectionStatusAccessor.ConnectionStatusPropertyLinkComponent.LinkAutomaton, LinkComponent.LinkComponentBuilder<B extends LinkComponent.LinkComponentBuilder<B>>Openable.OpenAutomaton, Openable.OpenBuilder<B extends Openable.OpenBuilder<B>>OpenedAccessor.OpenedMutator, OpenedAccessor.OpenedProperty| Modifier and Type | Field | Description |
|---|---|---|
protected LinkComponent |
_connectionComponent |
| Constructor | Description |
|---|---|
DeviceAutomatonImpl() |
Empty constructor, such
LifeCycleComponent.LifeCycleAutomaton cannot do much more
than decline the various LifeCycleStatus states for you. |
DeviceAutomatonImpl(LinkComponent aConnectionComponent) |
This constructor uses a
LifeCycleStatus for wrapping it inside
the DeviceAutomatonImpl, making sure of obeying and guarding the
correct LifeCycleStatus's order of LifeCycleStatus states
for you. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the component's connection(s).
|
ConnectionStatus |
getConnectionStatus() |
Retrieves the
ConnectionStatus property from the property. |
boolean |
isClosable() |
Determines whether the component's connection(s) may get closed.
|
boolean |
isClosed() |
Retrieves the is-closed status.
|
boolean |
isOpenable() |
Determines whether the component's connection(s) may get opened.
|
boolean |
isOpened() |
Retrieves the is-opened property from the opened property.
|
void |
open() |
Open the component's connection(s).
|
closeIn, closeQuietly, closeUncheckedisConnectionOpenedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenUncheckedprotected LinkComponent _connectionComponent
public DeviceAutomatonImpl()
LifeCycleComponent.LifeCycleAutomaton cannot do much more
than decline the various LifeCycleStatus states for you.public DeviceAutomatonImpl(LinkComponent aConnectionComponent)
LifeCycleStatus for wrapping it inside
the DeviceAutomatonImpl, making sure of obeying and guarding the
correct LifeCycleStatus's order of LifeCycleStatus states
for you.aConnectionComponent - The component to be guarded regarding the
correct declination of the LifeCycleStatus states.public ConnectionStatus getConnectionStatus()
ConnectionStatus property from the property.
Determines in which ConnectionStatus status a component is in.getConnectionStatus in interface ConnectionStatusAccessorConnectionStatus property stored by the
property.public boolean isOpenable()
isOpenable in interface Openable.OpenAutomatonOpenable.open() is possible.public void open()
throws OpenException
open in interface OpenableOpenException - Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.public boolean isOpened()
Openable.open() or
ConnectionOpenable.open(Object).isOpened in interface OpenedAccessorpublic boolean isClosable()
isClosable in interface Closable.CloseAutomatonClosable.close() is possible.public boolean isClosed()
Closable.close().isClosed in interface ClosedAccessorpublic void close()
CloseException as
upon close we may have to do things like flushing buffers which can fail
(and would otherwise fail unhandled or even worse unnoticed).Copyright © 2018. All rights reserved.