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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Fork(Network model) Creates a new fork node with default name "Fork".
      Fork(Network model, String name) Creates a new fork node with the specified name.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Network getModel() Returns the network model containing this node.
      void setTasksPerLink(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
      • Fork

        Fork(Network model, String name)
        Creates a new fork node with the specified name.
        Parameters:
        model - the network model to add this fork node to
        name - the name for this fork node
    • 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