The interface Task. A task can be run and has its execution duration.
| 20 | * The interface Task. A task can be run and has its execution duration. |
| 21 | */ |
| 22 | public interface Task { |
| 23 | /** |
| 24 | * Gets the execution duration of the task in milliseconds of simulated time. |
| 25 | * |
| 26 | * @return the execution duration of the task |
| 27 | */ |
| 28 | // TODO this is not an interval this is a duration |
| 29 | long getInterval(); |
| 30 | |
| 31 | /** |
| 32 | * Run the task. |
| 33 | */ |
| 34 | void run(); |
| 35 | } |
no outgoing calls
no test coverage detected