public class RadioChannel extends AbstractChannel
channelID, subscribers| Constructor and Description |
|---|
RadioChannel(Config config,
int channelID)
Create a RadioChannel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
pushImpl(AKSpeak speak,
int originalSize)
Push a message after input noise has been applied.
|
void |
timestep()
Notify the channel that a timestep has elapsed.
|
java.lang.String |
toString() |
addMessageForAgent, addMessageForSubscribers, addSubscriber, getMessagesForAgent, getSubscribers, isSubscribed, push, removeSubscriber, setInputNoise, setOutputNoisepublic RadioChannel(Config config, int channelID)
config - The configuration to read.channelID - The id of this channel.public void timestep()
Channeltimestep in interface Channeltimestep in class AbstractChannelpublic void pushImpl(AKSpeak speak, int originalSize) throws InvalidMessageException
AbstractChannelpushImpl in class AbstractChannelspeak - The message.InvalidMessageException - If the message is invalid.public java.lang.String toString()
toString in class java.lang.Object