Class Queue


public class Queue extends InputSection

Name: Queue

Description:

Date: 15/nov/2009 Time: 23.08.16

Version:
3.0
Author:
Bertoli Marco [marco.bertoli@neptuny.com]
  • Field Details

  • Constructor Details

  • Method Details

    • isRedirectionON

      public boolean isRedirectionON()
      Tells whether the "redirecting queue" behaviour has been turned on.
      Returns:
      true, if the "redirecting queue" behaviour is on; false otherwise.
    • redirectionTurnON

      public void redirectionTurnON(BlockingRegion region)
      Turns on the "redirecting queue" behaviour.
      Parameters:
      region - the blocking region to which the owner node of this queue belongs.
    • redirectionTurnOFF

      public void redirectionTurnOFF()
      Turns off the "redirecting queue" behaviour.
    • 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
    • preloadJobs

      public void preloadJobs(int[] jobsPerClass) throws NetException
      Preloads the specified numbers of jobs for each class.
      Parameters:
      jobsPerClass - the specified numbers of jobs for each class.
      Throws:
      NetException
    • process

      protected int process(NetMessage message) throws NetException
      This method implements a generic finite/infinite queue.
      Specified by:
      process in class NodeSection
      Parameters:
      message - message to be processed.
      Returns:
      the resulting int
      Throws:
      NetException
    • getStationCapacity

      public int getStationCapacity()
      This method returns the capacity of the station (queue+server).
    • analyzeFJ

      public void analyzeFJ(int name, JobClass jobClass, Measure measurement) throws NetException
      Overrides:
      analyzeFJ in class NodeSection
      Throws:
      NetException
    • isStationWorkingAsATransition

      public boolean isStationWorkingAsATransition()
    • setSoftDeadlines

      public void setSoftDeadlines(double[] softDeadlines)