Package jline.lang

Class ClosedClass

  • All Implemented Interfaces:
    java.io.Serializable , jline.lang.Copyable

    
    public class ClosedClass
    extends JobClass implements Serializable
                        

    Class where jobs perpetually loop without arriving or leaving (Closed class)

    • Constructor Detail

      • ClosedClass

        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.
        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.
      • ClosedClass

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

        ClosedClass(Network model, String name, double njobs, Station refstat, int priority)
        Creates a new closed job class with the specified population and reference station.
        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

        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
    • Method Detail

      • getNumberOfJobs

         double getNumberOfJobs()

        Returns the fixed population of jobs in this closed class.

        Returns:

        the number of jobs in this class

      • getPopulation

         double getPopulation()

        Returns the population size for this closed class.

        Returns:

        the population size

      • setPopulation

         void setPopulation(double pop)

        Sets the population size for this closed class.

        Parameters:
        pop - the new population size
      • getReferenceStation

         Station getReferenceStation()

        Returns the reference station for this closed class.

        Returns:

        the reference station

      • printSummary

         void printSummary()

        Prints a summary of this closed class configuration.