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>
TheBidirectionalConnectionOpenableHandle.BidirectionalConnectionOpenAutomatonHandleinterface defines those methods related to the handle based open/connect life-cycle. The handle reference requires theConnectionOpenable.ConnectionOpenAutomatoninterface to be implemented.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.BidirectionalConnectionOpenableHandle
BidirectionalConnectionOpenableHandle.BidirectionalConnectionOpenAutomatonHandle<H,INPUT,OUTPUT>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasBidirectionalConnectionOpenAutomaton(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, open
-
Methods inherited from interface org.refcodes.component.OpenedHandle
isOpened
-
-
-
-
Method Detail
-
hasBidirectionalConnectionOpenAutomaton
boolean hasBidirectionalConnectionOpenAutomaton(H aHandle) throws UnknownHandleRuntimeException
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
boolean isOpenable(H aHandle, INPUT aInputConnection, OUTPUT aOutputConnection) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
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.
-
-