Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / examples / java / kademlia / KademliaTask.java
1 /* Copyright (c) 2012-2014, 2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 package kademlia;
8 import kademlia.Common;
9
10 import org.simgrid.msg.Task;
11
12 public class KademliaTask extends Task {
13   protected int senderId;
14
15   public KademliaTask(int senderId) {
16     super("kademliatask",Common.COMP_SIZE,Common.COMM_SIZE);
17     this.senderId = senderId;
18   }
19
20   public int getSenderId() {
21     return senderId;
22   }
23 }