Class ServiceSection

All Implemented Interfaces:
Serializable, Cloneable, Copyable
Direct Known Subclasses:
ClassSwitcher, PollingServer, PreemptiveServer, Server, ServiceTunnel, SharedServer, Timing

public class ServiceSection extends Section implements Serializable
A section offering a service
See Also:
  • Field Details

    • numberOfServers

      protected double numberOfServers
    • serviceProcesses

      protected Map<JobClass,ServiceBinding> serviceProcesses
  • Constructor Details

    • ServiceSection

      public ServiceSection(String className)
  • Method Details

    • copyElement

      public ServiceSection copyElement()
      Description copied from class: Section
      Returns a copy of this section, twin of the MATLAB copyElement of a Copyable section. The copy is shallow in the same sense as MATLAB's: the section object and its containers are new, while the model elements they refer to (job classes, destination nodes, distributions) stay shared. Subclasses holding containers override this to copy them.
      Overrides:
      copyElement in class Section
      Returns:
      a copy of this section
    • containsJobClass

      public boolean containsJobClass(JobClass jobClass)
    • getServiceDistribution

      public Distribution getServiceDistribution(JobClass jobClass)
    • getServiceProcess

      public ServiceBinding getServiceProcess(JobClass jobClass)
    • removeServiceProcess

      public void removeServiceProcess(JobClass jobClass)
    • setServiceProcesses

      public void setServiceProcesses(ServiceBinding serviceProcess)