
public class ForkBomb extends Object implements EmbeddingCodelet
EmbeddingCodelet that repeatedly embeds random numbers of copies of itself up to a fixed depth.| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAX_DEPTH
The maximum recursion depth.
|
| Constructor and Description |
|---|
ForkBomb()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build(Flow flow,
List<FlowEdge> inEdges,
List<FlowNode> outNodes)
|
Node |
getEmbeddingParameters()
Gets the server-side embedding parameters.
|
void |
run(List<Resource> inResources,
List<Resource> outResources,
Node parameters)
Executes a unit of work.
|
void |
setEmbeddingParameters(Node embeddingParameters)
Sets the client-side embedding parameters.
|
String |
toString()
Creates a human-readable description of this
Codelet. |
protected static final int MAX_DEPTH
public void build(Flow flow, List<FlowEdge> inEdges, List<FlowNode> outNodes)
FlowBuilderbuild in interface FlowBuilderflow - the Flow.inEdges - the assignable incoming FlowEdges.outNodes - the assignable outgoing FlowNodes.public void run(List<Resource> inResources, List<Resource> outResources, Node parameters)
Codeletpublic Node getEmbeddingParameters()
EmbeddingCodeletgetEmbeddingParameters in interface EmbeddingCodeletpublic void setEmbeddingParameters(Node embeddingParameters)
EmbeddingCodeletsetEmbeddingParameters in interface EmbeddingCodelet