Package jmsltestsuite

Class EventExample

java.lang.Object
jmsltestsuite.EventExample
All Implemented Interfaces:
ScheduledEvent

public class EventExample
extends java.lang.Object
implements ScheduledEvent
  • Constructor Summary

    Constructors
    Constructor Description
    EventExample​(double playTime, java.lang.String msg)  
  • Method Summary

    Modifier and Type Method Description
    double getPlayTime()  
    static void main​(java.lang.String[] args)  
    void play()
    Called by EventScheduler to cause event to happen.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventExample

      public EventExample​(double playTime, java.lang.String msg)
  • Method Details

    • getPlayTime

      public double getPlayTime()
      Specified by:
      getPlayTime in interface ScheduledEvent
      Returns:
      time that the event should occur.
    • play

      public void play()
      Description copied from interface: ScheduledEvent
      Called by EventScheduler to cause event to happen.
      Specified by:
      play in interface ScheduledEvent
    • main

      public static void main​(java.lang.String[] args)