Class LoadDependentStrategy

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

public class LoadDependentStrategy extends ServiceStrategy

Title: Load Dependent Service Time Strategy

Description: This is a load dependent implementation of ServiceStrategy, useful to model macro-portion of network into a single station and to model local area networks.

Author:
Bertoli Marco Date: 6-ott-2005 Time: 16.37.36
  • Constructor Details

    • LoadDependentStrategy

      public LoadDependentStrategy(LDParameter[] parameters)
      Creates a new Load Dependent Service Time Strategy
      Parameters:
      parameters - an array with all parameters in LDParameter format
  • Method Details

    • wait

      public double wait(NodeSection nodeSection, JobClass jobClass) throws NetException
      Calculates the service time using the specified parameters
      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
      Calculates the service mean using the specified parameters
      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
    • getParameters

      public LDParameter[] getParameters()
      Used mainly for the Balking class.
      Returns:
      parameters variable