Package jline.lang

Class OpenClass

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

    
    public class OpenClass
    extends JobClass implements Serializable
                        

    A class of jobs that arrives from the external world to the Network and, after completion, leaves it

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenClass(Network model, String name, int priority) Creates a new open job class with the specified priority.
      OpenClass(Network model, String name) Creates a new open job class with default priority (0).
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void printSummary() Prints a summary of this open class configuration.
      void setReferenceStation(Station source) Sets the reference station for this open class.
      • Methods inherited from class jline.lang.JobClass

        getAttribute, getCompletes, getIndex, getJobClassType, getNumberOfJobs, getPriority, getReferenceStation, isReferenceClass, isReferenceStation, setAttribute, setCompletes, setPriority, setReferenceClass
      • 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

      • OpenClass

        OpenClass(Network model, String name, int priority)
        Creates a new open job class with the specified priority.
        Parameters:
        model - the network model to add this class to
        name - the name for this open class
        priority - the priority level for jobs in this class
      • OpenClass

        OpenClass(Network model, String name)
        Creates a new open job class with default priority (0).
        Parameters:
        model - the network model to add this class to
        name - the name for this open class
    • Method Detail

      • printSummary

         void printSummary()

        Prints a summary of this open class configuration.

      • setReferenceStation

         void setReferenceStation(Station source)

        Sets the reference station for this open class. For open classes, the reference station must be a Source node.

        Parameters:
        source - the source station to use as reference