Module org.refcodes.component
Package org.refcodes.component
Interface BidirectionalConnectionOpenableHandle.BidirectionalConnectionOpenAutomatonHandle<H,INPUT,OUTPUT>
- Type Parameters:
H- The type of the handle.INPUT- The type of the input connection to be used.OUTPUT- The type of the output connection to be used.
- All Superinterfaces:
BidirectionalConnectionOpenableHandle<H,,INPUT, OUTPUT> OpenedHandle<H>
- Enclosing interface:
- BidirectionalConnectionOpenableHandle<H,
INPUT, OUTPUT>
public static interface BidirectionalConnectionOpenableHandle.BidirectionalConnectionOpenAutomatonHandle<H,INPUT,OUTPUT>
extends BidirectionalConnectionOpenableHandle<H,INPUT,OUTPUT>, OpenedHandle<H>
The
BidirectionalConnectionOpenableHandle.BidirectionalConnectionOpenAutomatonHandle interface defines
those methods related to the handle based open/connect life-cycle. The
handle reference requires the ConnectionOpenable.ConnectionOpenAutomaton interface
to be implemented.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.BidirectionalConnectionOpenableHandle
BidirectionalConnectionOpenableHandle.BidirectionalConnectionOpenAutomatonHandle<H,INPUT, OUTPUT> -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasBidirectionalConnectionOpenAutomaton(H aHandle) Determines whether the handle reference is configurable by implementing theConnectionOpenable.ConnectionOpenAutomatoninterface.booleanisOpenable(H aHandle, INPUT aInputConnection, OUTPUT aOutputConnection) Determines whether the component identified by the given handle may get opened/connected.Methods inherited from interface org.refcodes.component.BidirectionalConnectionOpenableHandle
hasBidirectionalConnectionOpenable, openMethods inherited from interface org.refcodes.component.OpenedHandle
isOpened
-
Method Details
-
hasBidirectionalConnectionOpenAutomaton
Determines whether the handle reference is configurable by implementing theConnectionOpenable.ConnectionOpenAutomatoninterface.- 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
Determines whether the component identified by the given handle may get opened/connected.- Parameters:
aHandle- The handle identifying the component.aInputConnection- The input connection used for opening the connection.aOutputConnection- The output connection used for opening the connection.- Returns:
- True if
BidirectionalConnectionOpenableHandle.open(Object, Object, 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.
-