Class SimObjectCallable

java.lang.Object
org.bzdev.devqsim.SimObjectCallable

public class SimObjectCallable extends Object
Bind a callable 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 SimObjectCallable, use one of bindCallable methods defined by the SimObject class and with a Callable argument.
  • Method Details

    • getSource

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

      public final Callable getCallable()
      Get the callable.
      Returns:
      the callable
    • getTag

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