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, setOutputNoise
public RadioChannel(Config config, int channelID)
config
- The configuration to read.channelID
- The id of this channel.public void timestep()
Channel
timestep
in interface Channel
timestep
in class AbstractChannel
public void pushImpl(AKSpeak speak, int originalSize) throws InvalidMessageException
AbstractChannel
pushImpl
in class AbstractChannel
speak
- The message.InvalidMessageException
- If the message is invalid.public java.lang.String toString()
toString
in class java.lang.Object