public abstract class AbstractConnectableAutomaton extends Object implements ConnectableComponent.ConnectableAutomaton
AbstractConnectableAutomaton
implements the very basic
AbstractConnectableAutomaton
functionality.ConnectableComponent.ConnectableAutomaton
OpenedAccessor.OpenedMutator, OpenedAccessor.OpenedProperty
Closable.CloseAutomaton
ClosedAccessor.ClosedMutator, ClosedAccessor.ClosedProperty
ConnectionStatusAccessor.ConnectionStatusMutator, ConnectionStatusAccessor.ConnectionStatusProperty
Constructor and Description |
---|
AbstractConnectableAutomaton() |
Modifier and Type | Method and 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.
|
protected boolean |
isOpenable() |
boolean |
isOpened()
Retrieves the is-opened property from the opened property.
|
protected void |
open() |
protected void |
setConnectionStatus(ConnectionStatus aConnectionStatus)
Sets the
ConnectionStatus property for the property. |
public boolean isOpened()
Openable.open()
or
ConnectionOpenable.open(Object)
.isOpened
in interface OpenedAccessor
public boolean isClosable()
isClosable
in interface Closable.CloseAutomaton
Closable.close()
is possible.public void close()
Destroyable.destroy()
method, which must not throw
any exception as well.public boolean isClosed()
Closable.close()
.isClosed
in interface ClosedAccessor
public ConnectionStatus getConnectionStatus()
ConnectionStatus
property from the property.
Determines in which ConnectionStatus
status a component is in.getConnectionStatus
in interface ConnectionStatusAccessor
ConnectionStatus
property stored by the
property.protected boolean isOpenable()
Openable.OpenAutomaton.isOpenable()
protected void open() throws OpenException
OpenException
Openable.open()
protected void setConnectionStatus(ConnectionStatus aConnectionStatus)
ConnectionStatus
property for the property.aConnectionStatus
- The ConnectionStatus
property to be
stored by the property.Copyright © 2015. All rights reserved.