Package jline.lang

Class OpenClass

All Implemented Interfaces:
Serializable, Copyable
Direct Known Subclasses:
OpenSignal

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
See Also:
  • Field Details

  • Constructor Details

    • OpenClass

      public OpenClass(Network model, String name, int priority, double deadline)
      Creates a new open job class with the specified priority and deadline. Open classes represent jobs that arrive from external sources and leave the system after service completion.
      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
      deadline - the relative deadline in time units from arrival, or Double.POSITIVE_INFINITY for no deadline
    • OpenClass

      public OpenClass(Network model, String name, int priority)
      Creates a new open job class with the specified priority. Open classes represent jobs that arrive from external sources and leave the system after service completion.
      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

      public 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 Details

    • printSummary

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

      public void setReferenceStation(Station source) throws Exception
      Sets the reference station for this open class. For open classes, the reference station must be a Source node.
      Overrides:
      setReferenceStation in class JobClass
      Parameters:
      source - the source station to use as reference
      Throws:
      Exception - if the station is not a Source