| 89 | // An example of an action() that inserts a |
| 90 | // new one of itself into the event list: |
| 91 | public class Bell extends Event { |
| 92 | public Bell(long delayTime) { |
| 93 | super(delayTime); |
| 94 | } |
| 95 | @Override public void action() { |
| 96 | addEvent(new Bell(delayTime.toMillis())); |
| 97 | } |
| 98 | @Override public String toString() { |
| 99 | return "Bing!"; |
| 100 | } |
| 101 | } |
| 102 | public class Restart extends Event { |
| 103 | private Event[] eventList; |
| 104 | public |
nothing calls this directly
no outgoing calls
no test coverage detected