Class SimObjQueueRunnable<Server extends QueueServer>

java.lang.Object
org.bzdev.devqsim.SimObjQueueRunnable<Server>

public class SimObjQueueRunnable<Server extends QueueServer> extends Object
Bind a queue runnable to a simulation object. This allows a simulation listener to attribute events to specific simulation objects in cases where this cannot be done directly. To create an instance of SimObjQueueRunnable, use one of the bindRunnable methods defined by the SimObject class and with a QueueRunnable argument.
  • Method Details

    • getSource

      public final SimObject getSource()
      Get the source that will be used for a simulation event.
      Returns:
      the source simulation object
    • getRunnable

      public final QueueRunnable<Server> getRunnable()
      Get the runnable.
      Returns:
      the runnable
    • getTag

      public final String getTag()
      Get a descriptive tag.
      Returns:
      the string tagging the runnable; null if none provided