Class ZeroServiceTimeStrategy

java.lang.Object
NetStrategies.ServiceStrategy
NetStrategies.ServiceStrategies.ZeroServiceTimeStrategy
All Implemented Interfaces:
AutoCheck

public class ZeroServiceTimeStrategy extends ServiceStrategy
This service strategy always returns a service time equal to 0.0.
Author:
Stefano Omini
  • Constructor Details

    • ZeroServiceTimeStrategy

      public ZeroServiceTimeStrategy()
      Creates a new instance of ServiceTime.
  • Method Details

    • wait

      public double wait(NodeSection nodeSection, JobClass jobClass) throws NetException
      Returns the service time, which is always equal to 0.0.
      Specified by:
      wait in class ServiceStrategy
      Parameters:
      nodeSection - the node section which applies this strategy.
      jobClass - the job class which follows this strategy.
      Returns:
      the value of service time.
      Throws:
      NetException
    • expect

      public double expect(NodeSection nodeSection, JobClass jobClass) throws NetException
      Returns the service mean, which is always equal to 0.0.
      Specified by:
      expect in class ServiceStrategy
      Parameters:
      nodeSection - the node section which applies this strategy.
      jobClass - the job class which follows this strategy.
      Returns:
      the value of service mean.
      Throws:
      NetException