Package org.refcodes.component
Interface ConnectionStatusAccessor
-
- All Known Subinterfaces:
BidirectionalConnectionComponent.BidirectionalConnectionAutomaton<INPUT,OUTPUT>,ConnectableComponent.ConnectableAutomaton,ConnectionComponent.ConnectionAutomaton<CON>,ConnectionStatusAccessor.ConnectionStatusProperty,LinkComponent.LinkAutomaton
- All Known Implementing Classes:
AbstractConnectableAutomaton,AbstractDeviceAutomaton,ConnectionAutomatonImpl,DeviceAutomatonImpl
public interface ConnectionStatusAccessorProvides an accessor for aConnectionStatusproperty.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceConnectionStatusAccessor.ConnectionStatusMutatorProvides a mutator for aConnectionStatusproperty.static interfaceConnectionStatusAccessor.ConnectionStatusPropertyProvides aConnectionStatusproperty.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConnectionStatusgetConnectionStatus()Retrieves theConnectionStatusproperty from the property.default booleanisConnectionOpened()Determines whether the connection is ought to be open or not.
-
-
-
Method Detail
-
getConnectionStatus
ConnectionStatus getConnectionStatus()
Retrieves theConnectionStatusproperty from the property. Determines in whichConnectionStatusstatus a component is in.- Returns:
- Returns the
ConnectionStatusproperty stored by the property.
-
isConnectionOpened
default boolean isConnectionOpened()
Determines whether the connection is ought to be open or not.- Returns:
- True in case the connection is open, else the connection is
either closed or of a status
ConnectionStatus.NONE.
-
-