public interface Channel extends PropertyContainer
Channels can have string-named properties attached to them. These properties are defined to have meaning only within a given protocol, and can be used by clients to specify the behavior of a channel.
Modifier and Type | Method and Description |
---|---|
void |
connect(Transmitter t,
Receiver r)
Connect this channel between a transmitter and receiver.
|
void |
disconnect()
Disconnect this channel from its transmitter and receiver.
|
Protocol |
getProtocol()
Get the protocol that this channel implements.
|
Receiver |
getReceiver()
Get the Receiver that this channel is attached to, or
null if it is not attached.
|
Transmitter |
getTransmitter()
Get the Transmitter that this channel is attached to, or
null if it is not attached.
|
getProperty, propertyNames, setProperty
Protocol getProtocol()
void connect(Transmitter t, Receiver r)
void disconnect()
Receiver getReceiver()
Transmitter getTransmitter()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.