1 /* Copyright (c) 2012-2014. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
9 import kademlia.Common;
11 import org.simgrid.msg.Task;
14 * @brief Base class for all the tasks related to Kademlia.
16 public class KademliaTask extends Task {
20 protected int senderId;
25 public KademliaTask(int senderId) {
26 super("kademliatask",Common.COMP_SIZE,Common.COMM_SIZE);
27 this.senderId = senderId;
29 public int getSenderId() {