SimpleChannel

public abstract class SimpleChannel<PT extends PortType> implements ChannelCore<PT>
Author:Lars Kroll <lkroll@kth.se>

Fields

destroyed

protected volatile boolean destroyed

negativePort

protected final PortCore<PT> negativePort

portType

protected final PT portType

positivePort

protected final PortCore<PT> positivePort

Constructors

SimpleChannel

public SimpleChannel(PortCore<PT> positivePort, PortCore<PT> negativePort)

Methods

disconnect

public void disconnect()

getPortType

public PT getPortType()

hasNegativePort

public boolean hasNegativePort(Port<PT> port)

hasPositivePort

public boolean hasPositivePort(Port<PT> port)

isDestroyed

public boolean isDestroyed()