Interface OpenableHandle.OpenAutomatonHandle<H>

Type Parameters:
H - The type of the handle.
All Superinterfaces:
OpenableHandle<H>, OpenedHandle<H>
Enclosing interface:
OpenableHandle<H>

public static interface OpenableHandle.OpenAutomatonHandle<H> extends OpenableHandle<H>, OpenedHandle<H>
The OpenableHandle.OpenAutomatonHandle interface defines those methods related to the handle based open/connect life-cycle. The handle reference requires the ConnectionOpenable.ConnectionOpenAutomaton interface to be implemented.
  • Method Details

    • hasOpenAutomaton

      boolean hasOpenAutomaton(H aHandle)
      Determines whether the handle reference is openable by implementing the ConnectionOpenable.ConnectionOpenAutomaton interface.
      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.
    • isOpenable

      boolean isOpenable(H aHandle)
      Determines whether the component identified by the given handle may get opened/connected.
      Parameters:
      aHandle - The handle identifying the component.
      Returns:
      True if OpenableHandle.open(Object) is possible.
      Throws:
      UnknownHandleRuntimeException - in case the given handle is unknown.
      UnsupportedHandleOperationRuntimeException - in case the reference of the handle does not support the requested operation.