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)
FlowBuilder
build
in interface FlowBuilder
flow
- the Flow
.inEdges
- the assignable incoming FlowEdge
s.outNodes
- the assignable outgoing FlowNode
s.public void run(List<Resource> inResources, List<Resource> outResources, Node parameters)
Codelet
public Node getEmbeddingParameters()
EmbeddingCodelet
getEmbeddingParameters
in interface EmbeddingCodelet
public void setEmbeddingParameters(Node embeddingParameters)
EmbeddingCodelet
setEmbeddingParameters
in interface EmbeddingCodelet