Class InputSection

Direct Known Subclasses:
BlockingQueue, Enabling, JobSink, Join, Queue, RandomSource, Semaphore, Storage, Terminal

public abstract class InputSection extends PipeSection
This abstract class implements a generic input section of a NetNode.
Author:
Francesco Radaelli
  • Constructor Details

    • InputSection

      public InputSection()
      Creates a new instance of inputSection.
    • InputSection

      public InputSection(boolean auto)
      Creates a new instance of inputSection.
      Parameters:
      auto - Auto refresh of the jobsList attribute.
    • InputSection

      public InputSection(boolean auto, boolean nodeAuto)
      Creates a new instance of inputSection
      Parameters:
      auto - Auto refresh of the jobsList attribute.
      nodeAuto - Auto refresh the jobsList attribute at node level.
  • Method Details

    • sendForward

      protected RemoveToken sendForward(Job job, double delay)
      Sends a job to the service section.
      Parameters:
      job - Job to be sent.
      delay - Scheduling delay.
      Returns:
      a token to remove sent event.
    • sendForward

      protected RemoveToken sendForward(int event, Object data, double delay)
      Sends a message to the service section.
      Parameters:
      event - Message tag.
      data - Data to be sent.
      delay - Scheduling delay.
      Returns:
      a token to remove sent event.