Package org.refcodes.component
Interface ConnectionStatusHandle<H>
-
- Type Parameters:
H- the generic type
- All Known Subinterfaces:
ConnectionComponentHandle.ConnectionAutomatonHandle<H,CON>,LinkComponentHandle.DeviceAutomatonHandle<H>
public interface ConnectionStatusHandle<H>The Interface ConnectionStatusHandle.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionStatusgetConnectionStatus(H aHandle)Retrieves theConnectionStatusrelated to the given handle.booleanhasConnectionStatus(H aHandle)Determines whether the handle reference provides aConnectionStatusby implementing theConnectionStatusAccessorinterface.
-
-
-
Method Detail
-
hasConnectionStatus
boolean hasConnectionStatus(H aHandle) throws UnknownHandleRuntimeException
Determines whether the handle reference provides aConnectionStatusby implementing theConnectionStatusAccessorinterface.- Parameters:
aHandle- The handle to test whether the reference provides the according functionality.- Returns:
- True in case the reference provides the according functionality.
- Throws:
UnknownHandleRuntimeException- in case the handle is unknown.
-
getConnectionStatus
ConnectionStatus getConnectionStatus(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
Retrieves theConnectionStatusrelated to the given handle. Determines in whichConnectionStatusstatus a component related to the given handle is in.- Parameters:
aHandle- The handle for which to retrieve theConnectionStatus.- Returns:
- Returns the
ConnectionStatusrelated to the given handle. - Throws:
UnknownHandleRuntimeException- in case the given handle is unknown.UnsupportedHandleOperationRuntimeException- in case the reference of the handle does not support the requested operation.
-
-