Interface ModelElement.TimeUnitIfc<T>

  • Type Parameters:
    T - the type for the thing that the event might hold as a message
    All Known Implementing Classes:
    ModelElement.EventScheduler
    Enclosing class:
    ModelElement

    public static interface ModelElement.TimeUnitIfc<T>
    A Tagging interface to force builder to specify time timeUnits after calling the in() method.

    Converts the time within EventScheduler to timeUnits for scheduling the event. Ensures that the event has the appropriate time timeUnits.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      JSLEvent<T> days()
      Creates and schedules the event associated carrying the model interpreting the event time in days
      JSLEvent<T> hours()
      Creates and schedules the event associated carrying the model interpreting the event time in hours
      JSLEvent<T> milliseconds()
      Creates and schedules the event associated carrying the model interpreting the event time in milliseconds
      JSLEvent<T> minutes()
      Creates and schedules the event associated carrying the model interpreting the event time in minutes
      JSLEvent<T> seconds()
      Creates and schedules the event associated carrying the model interpreting the event time in seconds
      JSLEvent<T> units()
      Creates and schedules the event reactingWith the base time timeUnits associated carrying the model
      JSLEvent<T> weeks()
      Creates and schedules the event associated carrying the model interpreting the event time in weeks
    • Method Detail

      • days

        JSLEvent<T> days()
        Creates and schedules the event associated carrying the model interpreting the event time in days
        Returns:
        the event that was scheduled
      • minutes

        JSLEvent<T> minutes()
        Creates and schedules the event associated carrying the model interpreting the event time in minutes
        Returns:
        the event that was scheduled
      • hours

        JSLEvent<T> hours()
        Creates and schedules the event associated carrying the model interpreting the event time in hours
        Returns:
        the event that was scheduled
      • seconds

        JSLEvent<T> seconds()
        Creates and schedules the event associated carrying the model interpreting the event time in seconds
        Returns:
        the event that was scheduled
      • weeks

        JSLEvent<T> weeks()
        Creates and schedules the event associated carrying the model interpreting the event time in weeks
        Returns:
        the event that was scheduled
      • milliseconds

        JSLEvent<T> milliseconds()
        Creates and schedules the event associated carrying the model interpreting the event time in milliseconds
        Returns:
        the event that was scheduled
      • units

        JSLEvent<T> units()
        Creates and schedules the event reactingWith the base time timeUnits associated carrying the model
        Returns:
        the event that was scheduled