Class RandomSource


public class RandomSource extends InputSection
This class implements a job source (generator): a job is created every t simulation time units using a statistical distribution according to its class.
Author:
Francesco Radaelli, Federico Granata
  • Constructor Details

    • RandomSource

      public RandomSource(ServiceStrategy[] strategies)
      Creates a new instance of RandomSource. strategies[i] = null, if the i-th class is closed.
  • Method Details

    • nodeLinked

      protected void nodeLinked(NetNode node) throws NetException
      Description copied from class: NodeSection
      This method should be overridden to implement a specific behaviour of the node section when the node section itself is linked to the owner node. This method should be used to set node section properties depending on the owner node ones.
      Overrides:
      nodeLinked in class NodeSection
      Parameters:
      node - Owner node.
      Throws:
      NetException
    • process

      protected int process(NetMessage message) throws NetException
      Description copied from class: NodeSection
      This method should be overridden to implement a specific NetMessage processor.
      Specified by:
      process in class NodeSection
      Parameters:
      message - message to be processed.
      Returns:
      message processing result.
      Throws:
      NetException