Class Terminal


public class Terminal extends InputSection
This class implements a terminal: each class has a finite number of customers in the system.
Author:
Stefano Omini
  • Constructor Details

    • Terminal

      public Terminal(int[] jobsPerClass)
      Creates a terminal.
      Parameters:
      jobsPerClass - number of jobs for each class.
    • Terminal

      public Terminal(Integer[] jobsPerClass)
      Creates a terminal.
      Parameters:
      jobsPerClass - number of jobs for each class.
  • 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