public final class PoisonPill extends Message.Empty implements SystemMessage
Message.Boolean, Message.Double, Message.Empty, Message.Float, Message.Integer, Message.Long, Message.Object<T>| Constructor and Description |
|---|
PoisonPill() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
receivedByVertex(Vertex<? extends java.io.Serializable> agent,
Environment<? extends java.io.Serializable> env)
This method will be called to allow or not the Actions of the agent to happen.
|
public boolean receivedByVertex(Vertex<? extends java.io.Serializable> agent, Environment<? extends java.io.Serializable> env)
SystemMessagereceivedByVertex in interface SystemMessageagent - The Agent on which to apply the changes.env - The Environment of the Agent.