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

Method putTask

simulator/src/main/java/simblock/simulator/Timer.java:154–158  ·  view source on GitHub ↗

Schedule task to be executed at the current time incremented by the task duration. @param task the task

(Task task)

Source from the content-addressed store, hash-verified

152 * @param task the task
153 */
154 public static void putTask(Task task) {
155 ScheduledTask scheduledTask = new ScheduledTask(task, currentTime + task.getInterval());
156 taskMap.put(task, scheduledTask);
157 taskQueue.add(scheduledTask);
158 }
159
160 /**
161 * Schedule task to be executed at the provided absolute timestamp.

Callers 4

mintingMethod · 0.80
sendInvMethod · 0.80
receiveMessageMethod · 0.80
sendNextBlockMessageMethod · 0.80

Calls 1

getIntervalMethod · 0.65

Tested by

no test coverage detected