Package jline.lang

Class ClosedClass

All Implemented Interfaces:
Serializable, Copyable
Direct Known Subclasses:
ClosedSignal, SelfLoopingClass

public class ClosedClass extends JobClass implements Serializable
Class where jobs perpetually loop without arriving or leaving (Closed class)
See Also:
  • Field Details

    • population

      protected double population
    • model

      protected Network model
  • Constructor Details

    • ClosedClass

      public ClosedClass(Network model, String name, double njobs, Station refstat, int priority, double deadline)
      Creates a new closed job class with the specified population, reference station, priority, and deadline. Closed classes have a fixed number of jobs that circulate within the network.
      Parameters:
      model - the network model to add this class to
      name - the name for this closed class
      njobs - the fixed population of jobs in this class
      refstat - the reference station for performance normalization
      priority - the priority level for jobs in this class
      deadline - the relative deadline in time units from arrival, or Double.POSITIVE_INFINITY for no deadline
    • ClosedClass

      public ClosedClass(Network model, String name, int njobs, Station refstat, int priority, double deadline)
    • ClosedClass

      public ClosedClass(Network model, String name, double njobs, Station refstat, int priority)
      Creates a new closed job class with the specified population and reference station. Closed classes have a fixed number of jobs that circulate within the network.
      Parameters:
      model - the network model to add this class to
      name - the name for this closed class
      njobs - the fixed population of jobs in this class
      refstat - the reference station for performance normalization
      priority - the priority level for jobs in this class
    • ClosedClass

      public ClosedClass(Network model, String name, int njobs, Station refstat, int priority)
    • ClosedClass

      public ClosedClass(Network model, String name, double njobs, Station refstat)
      Creates a new closed job class with default priority (0).
      Parameters:
      model - the network model to add this class to
      name - the name for this closed class
      njobs - the fixed population of jobs in this class
      refstat - the reference station for performance normalization
    • ClosedClass

      public ClosedClass(Network model, String name, int njobs, Station refstat)
  • Method Details

    • getNumberOfJobs

      public double getNumberOfJobs()
      Returns the fixed population of jobs in this closed class.
      Overrides:
      getNumberOfJobs in class JobClass
      Returns:
      the number of jobs in this class
    • getPopulation

      public double getPopulation()
      Returns the population size for this closed class.
      Returns:
      the population size
    • setPopulation

      public void setPopulation(double pop)
      Sets the population size for this closed class.
      Parameters:
      pop - the new population size
    • getReferenceStation

      public Station getReferenceStation()
      Returns the reference station for this closed class.
      Overrides:
      getReferenceStation in class JobClass
      Returns:
      the reference station
    • printSummary

      public void printSummary()
      Prints a summary of this closed class configuration.
      Overrides:
      printSummary in class JobClass