Constructor and Description |
---|
ChainedNoise()
Create a ChainedNoise object with no children.
|
ChainedNoise(java.util.Collection<Noise> chain)
Create a ChainedNoise object with a set of children.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Noise child)
Add a child.
|
AKSpeak |
applyNoise(AKSpeak message)
Optionally apply some noise to a message and return either the original message or a replacement.
|
void |
removeChild(Noise child)
Remove a child.
|
public ChainedNoise()
public ChainedNoise(java.util.Collection<Noise> chain)
chain
- The child noise objects.public AKSpeak applyNoise(AKSpeak message)
Noise
applyNoise
in interface Noise
message
- The message to tinker with.public void addChild(Noise child)
child
- The child to add. This may be null.public void removeChild(Noise child)
child
- The child to remove.