public class VoiceChannel extends AbstractChannel
channelID, subscribers
Constructor and Description |
---|
VoiceChannel(Config config,
int channelID,
StandardWorldModel world)
Create a VoiceChannel.
|
Modifier and Type | Method and Description |
---|---|
protected 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 VoiceChannel(Config config, int channelID, StandardWorldModel world)
config
- The configuration to read.channelID
- The id of this channel.world
- The world model.public void timestep()
Channel
timestep
in interface Channel
timestep
in class AbstractChannel
protected 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