MCPcopy Create free account
hub / github.com/dsg-titech/simblock / Task

Interface Task

simulator/src/main/java/simblock/task/Task.java:22–35  ·  view source on GitHub ↗

The interface Task. A task can be run and has its execution duration.

Source from the content-addressed store, hash-verified

20 * The interface Task. A task can be run and has its execution duration.
21 */
22public 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}

Callers 4

putTaskMethod · 0.65
runTaskMethod · 0.95
runMethod · 0.65
runMethod · 0.65

Implementers 4

AbstractMessageTasksimulator/src/main/java/simblock/task/
AbstractMintingTasksimulator/src/main/java/simblock/task/
BlockMessageTasksimulator/src/main/java/simblock/task/
CmpctBlockMessageTasksimulator/src/main/java/simblock/task/

Calls

no outgoing calls

Tested by

no test coverage detected