Package se.sics.kompics
Class SimpleChannel<PT extends PortType>
java.lang.Object
se.sics.kompics.SimpleChannel<PT>
- All Implemented Interfaces:
Channel<PT>
,ChannelCore<PT>
- Direct Known Subclasses:
BiDirectionalChannel
,UniDirectionalChannel
public abstract class SimpleChannel<PT extends PortType> extends Object implements ChannelCore<PT>
- Author:
- Lars Kroll <[email protected]>
-
Field Summary
Fields Modifier and Type Field Description protected boolean
destroyed
protected PortCore<PT>
negativePort
protected PT
portType
protected PortCore<PT>
positivePort
-
Constructor Summary
Constructors Constructor Description SimpleChannel(PortCore<PT> positivePort, PortCore<PT> negativePort)
-
Method Summary
Modifier and Type Method Description void
disconnect()
PT
getPortType()
Gets the port type.boolean
hasNegativePort(Port<PT> port)
boolean
hasPositivePort(Port<PT> port)
boolean
isDestroyed()
-
Field Details
-
Constructor Details
-
Method Details
-
isDestroyed
- Specified by:
isDestroyed
in interfaceChannelCore<PT extends PortType>
-
hasPositivePort
- Specified by:
hasPositivePort
in interfaceChannelCore<PT extends PortType>
-
hasNegativePort
- Specified by:
hasNegativePort
in interfaceChannelCore<PT extends PortType>
-
disconnect
- Specified by:
disconnect
in interfaceChannel<PT extends PortType>
-
getPortType
Description copied from interface:Channel
Gets the port type.- Specified by:
getPortType
in interfaceChannel<PT extends PortType>
- Returns:
- the port type
-