Interface ModelElement.EventBuilderIfc<T>

    • Method Detail

      • withMessage

        ModelElement.EventBuilderIfc<T> withMessage​(T message)
        An object of type T that is attached to the event
        Parameters:
        message - the message to attach
        Returns:
        the builder
      • havingPriority

        ModelElement.EventBuilderIfc<T> havingPriority​(int priority)
        Sets the scheduling priority of the event, lower is faster
        Parameters:
        priority - the priority
        Returns:
        the builder
      • name

        ModelElement.EventBuilderIfc<T> name​(java.lang.String name)
        Sets the name of the event being built
        Parameters:
        name - the name of the event
        Returns:
        the builder
      • now

        JSLEvent<T> now()
        Causes the event that is being built to be scheduled at the current simulation time (no time offset)
        Returns:
        the event that was scheduled
      • in

        ModelElement.TimeUnitIfc<T> in​(GetValueIfc value)
        Sets the time of the event being built to current time + value.getValue()
        Parameters:
        value - an object that can compute the time via getValue()
        Returns:
        the builder
      • in

        ModelElement.TimeUnitIfc<T> in​(double time)
        Sets the time of the event being built to current time + time
        Parameters:
        time - the time until the event should occur
        Returns:
        the builder