- All Superinterfaces:
OpenedAccessor
- All Known Subinterfaces:
BidirectionalConnectionComponent.BidirectionalConnectionAutomaton<INPUT,
,OUTPUT> ConnectableComponent.ConnectableAutomaton
,ConnectionComponent.ConnectionAutomaton<CON>
,ConnectionStatusAccessor.ConnectionStatusProperty
,LinkComponent.LinkAutomaton
- All Known Implementing Classes:
AbstractConnectableAutomaton
,AbstractDeviceAutomaton
,ConnectionAutomatonImpl
,LinkAutomatonImpl
Provides an accessor for a
ConnectionStatus
property.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Provides a mutator for aConnectionStatus
property.static interface
Provides aConnectionStatus
property.Nested classes/interfaces inherited from interface org.refcodes.component.OpenedAccessor
OpenedAccessor.OpenedMutator, OpenedAccessor.OpenedProperty
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves theConnectionStatus
property from the property.default boolean
isOpened()
Determines whether the connection is ought to be open or not.
-
Method Details
-
getConnectionStatus
ConnectionStatus getConnectionStatus()Retrieves theConnectionStatus
property from the property. Determines in whichConnectionStatus
status a component is in.- Returns:
- Returns the
ConnectionStatus
property stored by the property.
-
isOpened
default boolean isOpened()Determines whether the connection is ought to be open or not.- Specified by:
isOpened
in interfaceOpenedAccessor
- Returns:
- True in case the connection is open, else the connection is
either closed or of a status
ConnectionStatus.NONE
.
-