Package jline.lang.nodes
Class Fork
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
public class Fork extends Node implements Serializable
A node that forks an incoming job into a set of sibling tasks
-
-
Field Summary
Fields Modifier and Type Field Description public final NodeAttributeattributepublic Networkmodelprotected InputSectioninputprotected OutputSectionoutputprotected ServiceSectionserverprotected DropStrategydropStrategyprotected intstatefulIdxprotected intnodeIndexprotected intstationIdxprotected Matrixstateprotected Stringname
-
Method Summary
Modifier and Type Method Description NetworkgetModel()Returns the network model containing this node. voidsetTasksPerLink(intĀ nTasks)Sets the number of tasks sent out on each outgoing link -
Methods inherited from class jline.lang.nodes.Node
getAttribute, getCap, getClassCap, getDropStrategy, getInput, getNodeIndex, getOutput, getOutputStrategies, getRoutingStrategy, getSections, getServer, getState, getStatefulIdx, getStationIdx, isReferenceStation, isStateful, printSummary, reset, resetRouting, setModel, setNodeIdx, setProbRouting, setRouting, setRouting, setState, setStationIdx -
Methods inherited from class jline.lang.Element
getName, setName -
Methods inherited from class jline.lang.Copyable
copy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Fork
Fork(Network model)
Creates a new fork node with default name "Fork".- Parameters:
model- the network model to add this fork node to
-
-
Method Detail
-
getModel
Network getModel()
Returns the network model containing this node.
- Returns:
the parent network model
-
setTasksPerLink
void setTasksPerLink(intĀ nTasks)
Sets the number of tasks sent out on each outgoing link
- Parameters:
nTasks- - the number of tasks
-
-
-
-