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 doublegetPlayTime()static voidmain(java.lang.String[] args)voidplay()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:
getPlayTimein interfaceScheduledEvent- Returns:
- time that the event should occur.
-
play
public void play()Description copied from interface:ScheduledEventCalled by EventScheduler to cause event to happen.- Specified by:
playin interfaceScheduledEvent
-
main
public static void main(java.lang.String[] args)
-