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)

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      double getNumberOfJobs() Returns the fixed population of jobs in this closed class.
      double getPopulation() Returns the population size for this closed class.
      void setPopulation(double pop) Sets the population size for this closed class.
      Station getReferenceStation() Returns the reference station for this closed class.
      void printSummary() Prints a summary of this closed class configuration.
      • Methods inherited from class jline.lang.JobClass

        getAttribute, getCompletes, getIndex, getJobClassType, getPriority, isReferenceClass, isReferenceStation, setAttribute, setCompletes, setPriority, setReferenceClass, setReferenceStation
      • Methods inherited from class jline.lang.Element

        getName, setName
      • Methods inherited from class jline.lang.Copyable

        copy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

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