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, double deadline) Creates a new open job class with the specified priority and deadline.
      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

        expectsReply, getAttribute, getBalkingStrategy, getBalkingThresholds, getCompletes, getDeadline, getImpatienceType, getIndex, getJobClassType, getMaxRetrialAttempts, getNumberOfJobs, getPatience, getPriority, getReferenceStation, getReplySignalClassIndex, getRetrialDelayDistribution, hasBalking, hasImmediateFeedback, hasPatience, hasRetrial, isReferenceClass, isReferenceStation, setAttribute, setBalking, setBalking, setCompletes, setDeadline, setImmediateFeedback, setPatience, setPatience, setPriority, setReferenceClass, setReplySignalClassIndex, setRetrial, setRetrial
      • 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, double deadline)
        Creates a new open job class with the specified priority and deadline.
        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.
      • 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