Class SchedulingElement

    • Constructor Detail

      • SchedulingElement

        public SchedulingElement​(ModelElement parent)
        Parameters:
        parent - the parent
      • SchedulingElement

        public SchedulingElement​(ModelElement parent,
                                 java.lang.String name)
        Parameters:
        parent - the parent
        name - the name
    • Method Detail

      • cancelEvent

        protected final void cancelEvent​(JSLEvent e)
        Tells the scheduler to cancel the provided event.
        Parameters:
        e - A reference to the event to be canceled.
      • rescheduleEvent

        protected final <T> void rescheduleEvent​(JSLEvent<T> event,
                                                 double time)
        This method allows a previously *executed* event to be reused The event must have already been removed from the calendar through the natural execute event mechanism and have been executed. The user can reset the action, priority, and message as required directly on the event prior to rescheduling.
        Type Parameters:
        T - the type associated with the events message
        Parameters:
        event - The event that needs rescheduling
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
      • rescheduleEvent

        protected final <T> void rescheduleEvent​(JSLEvent<T> event,
                                                 double time,
                                                 T message)
        This method allows a previously *executed* event to be reused The event must have already been removed from the calendar through the natural execute event mechanism and have been executed. The user can reset the action, priority, and message as required directly on the event prior to rescheduling.
        Type Parameters:
        T - the type associated with the events message
        Parameters:
        event - The event that needs rescheduling
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        message - an Object to attach to the event
      • rescheduleEvent

        protected final <T> void rescheduleEvent​(JSLEvent<T> event,
                                                 GetValueIfc time)
        This method allows a previously *executed* event to be reused The event must have already been removed from the calendar through the natural execute event mechanism and have been executed. The user can reset the action, priority, and message as required directly on the event prior to rescheduling.
        Type Parameters:
        T - the type associated with the events message
        Parameters:
        event - The event that needs rescheduling
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
      • rescheduleEvent

        protected final <T> void rescheduleEvent​(JSLEvent<T> event,
                                                 GetValueIfc time,
                                                 T message)
        This method allows a previously *executed* event to be reused The event must have already been removed from the calendar through the natural execute event mechanism and have been executed. The user can reset the action, priority, and message as required directly on the event prior to rescheduling.
        Type Parameters:
        T - the type of the message
        Parameters:
        event - The event that needs rescheduling
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        message - an Object to attach to the event
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      double time,
                                                      int priority,
                                                      T message,
                                                      java.lang.String name)
        Creates an event and schedules it onto the event calendar. This is the main scheduling method that all other scheduling methods call. The other methods are just convenience methods for this method.
        Type Parameters:
        T - the type associated with the attached message
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        priority - is used to influence the ordering of events
        message - is a generic Object that may represent data to be transmitted with the event
        name - the name of the event
        Returns:
        a valid JSLEvent
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      double time,
                                                      T message,
                                                      java.lang.String name)
        Creates an event and schedules it onto the event calendar. This is the main scheduling method that all other scheduling methods call. The other methods are just convenience methods for this method.
        Type Parameters:
        T - the type associated with the attached message
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        message - is a generic Object that may represent data to be transmitted with the event
        name - the name of the event
        Returns:
        a valid JSLEvent
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      double time)
        Creates an event and schedules it onto the event calendar
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        Returns:
        a valid JSLEvent
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      GetValueIfc time)
        Creates an event and schedules it onto the event calendar
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        Returns:
        a valid JSLEvent
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      double time,
                                                      int priority)
        Creates an event and schedules it onto the event calendar
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        priority - is used to influence the ordering of events
        Returns:
        a valid JSLEvent
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      GetValueIfc time,
                                                      int priority)
        Creates an event and schedules it onto the event calendar
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        priority - is used to influence the ordering of events
        Returns:
        a valid JSLEvent
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      double time,
                                                      T message)
        Creates an event and schedules it onto the event calendar
        Type Parameters:
        T - the type associated with the attached message
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        message - is a generic Object that may represent data to be transmitted with the event
        Returns:
        a valid JSLEvent
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      GetValueIfc time,
                                                      T message)
        Creates an event and schedules it onto the event calendar
        Type Parameters:
        T - the type associated with the attached message
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        message - is a generic Object that may represent data to be transmitted with the event
        Returns:
        a valid JSLEvent
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      double time,
                                                      int priority,
                                                      T message)
        Creates an event and schedules it onto the event calendar
        Type Parameters:
        T - the type associated with the attached message
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        priority - is used to influence the ordering of events
        message - is a generic Object that may represent data to be transmitted with the event
        Returns:
        a valid JSLEvent
      • scheduleEvent

        protected final <T> JSLEvent<T> scheduleEvent​(EventActionIfc<T> action,
                                                      GetValueIfc time,
                                                      int priority,
                                                      T message)
        Creates an event and schedules it onto the event calendar
        Type Parameters:
        T - the type associated with the attached message
        Parameters:
        action - represents an ActionListener that will handle the change of state logic
        time - represents the inter-event time, i.e. the interval from the current time to when the event will need to occur
        priority - is used to influence the ordering of events
        message - is a generic Object that may represent data to be transmitted with the event
        Returns:
        a valid JSLEvent