public interface Channel
Modifier and Type | Method and Description |
---|---|
void |
addSubscriber(Entity e)
Add a subscriber to this channel.
|
java.util.Collection<AKSpeak> |
getMessagesForAgent(Entity agent)
Get the messages that should be send to an agent.
|
java.util.Collection<Entity> |
getSubscribers()
Get all subscribers.
|
void |
push(AKSpeak message)
Push a message through this channel.
|
void |
removeSubscriber(Entity e)
Remove a subscriber from this channel.
|
void |
setInputNoise(Noise noise)
Set the input noise object for this channel.
|
void |
setOutputNoise(Noise noise)
Set the output noise object for this channel.
|
void |
timestep()
Notify the channel that a timestep has elapsed.
|
void timestep()
void addSubscriber(Entity e)
e
- The subscriber.void removeSubscriber(Entity e)
e
- The subscriber.java.util.Collection<Entity> getSubscribers()
void push(AKSpeak message) throws InvalidMessageException
message
- The message to push.InvalidMessageException
- If the message is invalid.java.util.Collection<AKSpeak> getMessagesForAgent(Entity agent)
agent
- The agent to look up.void setInputNoise(Noise noise)
noise
- The input noise.void setOutputNoise(Noise noise)
noise
- The output noise.