Class DisabledServiceTimeStrategy

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

public class DisabledServiceTimeStrategy extends ServiceStrategy
This service strategy always raises a warning.
Author:
Giuliano Casale
  • Constructor Details

    • DisabledServiceTimeStrategy

      public DisabledServiceTimeStrategy()
      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 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 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