public class KillTrigger extends Bead
Bead
to be killed (Bead.kill()
) in response to a specific event.Constructor and Description |
---|
KillTrigger(Bead receiver)
Instantiates a new KillTrigger which will stop the given
Bead when triggered. |
Modifier and Type | Method and Description |
---|---|
void |
messageReceived(Bead message)
Any incoming message will cause the specified
Bead to be killed. |
public void messageReceived(Bead message)
Bead
to be killed.messageReceived
in class Bead
message
- the messageBead.message(Bead)