Class ServiceStation

All Implemented Interfaces:
Serializable, Cloneable, Copyable
Direct Known Subclasses:
Queue

public abstract class ServiceStation extends Station implements Serializable
A station with a service process
See Also:
  • Field Details

    • serviceProcesses

      protected List<ServiceBinding> serviceProcesses
    • serviceWeightClasses

      protected Set<JobClass> serviceWeightClasses
      Classes whose service was set with an explicit weight, as Python's _service_weights records them. The unweighted setService stores the default weight 1 in schedStrategyPar, so that map cannot tell an explicit weight of 1 from no weight at all.
  • Constructor Details

    • ServiceStation

      public ServiceStation(String name)
  • Method Details

    • hasServiceWeights

      public boolean hasServiceWeights()
      Whether any class's service was set with an explicit weight (Python bool(queue._service_weights)), whatever its value.
      Returns:
      true when setService was called with a weight argument
    • getServiceProcess

      public Distribution getServiceProcess(JobClass jobClass)
      Overrides:
      getServiceProcess in class ServiceNode
    • removeJobClass

      public void removeJobClass(JobClass jobClass)
      Description copied from class: Node
      Removes all per-class configuration referencing the given job class from this node. The base implementation drops the class's output (routing) strategies; subclasses extend it to drop service, capacity, arrival and class-switching configuration. Called by Network.removeClass(jline.lang.JobClass).
      Overrides:
      removeJobClass in class Station
      Parameters:
      jobClass - the job class being removed from the model
    • setService

      public void setService(JobClass jobClass, Distribution distribution)
      Overrides:
      setService in class ServiceNode
    • setService

      public void setService(JobClass jobClass, Distribution distribution, double weight)
      Overrides:
      setService in class ServiceNode
    • setService

      public void setService(JobClass jobClass, Object distribution, double weight)