Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
and now a dht package + cmake factoring
[simgrid.git] / examples / java / dht / 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 dht.kademlia;
8 import dht.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 }